Slash Commands

Slash Commands

Type / in the chat input to see all available commands. An autocomplete dropdown appears as you type, with descriptions and keyboard navigation (arrow keys, Tab/Enter to select, Escape to dismiss).

Command reference

Command Description
/reset Clear conversation history
/undo Revert all AI file changes
/export Export chat as Markdown file
/model <name> Switch model mid-conversation
/help Show available commands
/batch Run multiple tasks
/doc Generate documentation
/spec Generate structured requirements
/insight Activity analytics
/save <name> Save current session
/sessions Browse saved conversations
/scan Scan staged files for secrets
/usage Token usage dashboard
/context Visualize context window
/test Generate tests
/lint Run linter
/arena [models] Side-by-side model comparison (chat or agent mode)
/deps Scan dependencies for drift and vulnerabilities
/scaffold <type> Generate boilerplate
/commit Generate commit and push
/audit Agent action audit log
/insights Conversation pattern analysis
/mcp MCP server status
/init Generate SIDECAR.md project notes
/bg <task> Run a task in the background
/verbose Toggle verbose mode
/prompt Show system prompt

The following commands are also available from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

Command Description
SideCar: Review Changes AI-powered review of uncommitted changes
SideCar: Summarize PR Generate a PR summary from the current branch

Conversation

/reset

Clears the conversation history and starts a new chat. Equivalent to clicking the “New Chat” button.

/export

Exports the full conversation as a Markdown file. A save dialog lets you choose the location.

/save <name>

Saves the current conversation with a name. Named sessions persist across VS Code restarts.

/sessions

Opens the session browser panel. Browse, load, or delete saved conversations. Sessions auto-save after each assistant response.


Code generation

/doc

Generates JSDoc or docstring documentation for the active file or selected code. Detects the language and uses the appropriate documentation format.

Diagrams: Models can also generate Mermaid diagrams in documentation. Architecture diagrams, flowcharts, sequence diagrams, ER diagrams, and other Mermaid types are rendered natively in chat with full interactivity. Click “Copy SVG” to export diagram graphics.

/test

Generates tests for the active file or selection. Auto-detects your test framework:

  • JavaScript/TypeScript: Vitest, Jest
  • Python: pytest
  • Go: Go test
  • Rust: Cargo test
  • Java: JUnit

Creates a properly named test file (e.g., foo.test.ts for foo.ts).

/scaffold <type>

Generates boilerplate code from built-in templates. Available types:

Type What it generates
component React/Vue/Svelte component
api REST API endpoint
test Test file with framework setup
model Data model / schema
cli CLI tool scaffold
hook React hook
middleware Express/Koa middleware
service Service class with dependency injection

Run /scaffold with no arguments to see all available templates.

/spec

Generates structured requirements using EARS notation (Easy Approach to Requirements Syntax). Includes design decisions and dependency-sequenced implementation tasks. Specs are saved to .sidecar/specs/.


Code quality

/lint

Runs your project’s linter with auto-detection:

  • ESLint (JavaScript/TypeScript)
  • Ruff (Python)
  • golangci-lint (Go)

Pass a custom command: /lint npx eslint --fix .

/scan

Scans staged git files for secrets and vulnerabilities before committing. See Security Scanning for details.

/deps

Triggers a Dependency Drift scan across all manifest files in the workspace (package.json, requirements*.txt, Cargo.toml, go.mod):

  • Fetches latest versions from npm, PyPI, crates.io, and the Go module proxy
  • Queries the OSV vulnerability database for CVE/GHSA matches
  • Surfaces findings in the VS Code Problems panel (source: sidecar-deps): Information for outdated packages, Warning for medium/high vulnerabilities, Error for critical ones

Same action as SideCar: Scan Dependencies for Drift & Vulnerabilities in the Command Palette, or calling the check_dependencies agent tool.

Configure via sidecar.deps.enabled and sidecar.deps.checkVulnerabilities.


Observability

/usage

Shows a token usage dashboard:

  • Cumulative token consumption
  • Estimated Anthropic API cost
  • Per-run history
  • Tool usage breakdown

/context

Visualizes what’s in the current context window:

  • System prompt
  • SIDECAR.md content
  • Workspace files with token counts
  • Conversation history
  • Visual usage bar showing total utilization

/audit

Opens the agent action audit log — a structured record of every tool call made by the agent. Supports filters:

/audit                    Last 50 entries
/audit errors             Only failed calls
/audit tool:grep          Filter by tool name
/audit last:20            Limit to 20 entries
/audit since:2026-04-01   Entries after a date
/audit clear              Clear the log

Each entry includes timestamp, tool name, duration, input parameters, result preview, and error status. See Observability for details.

/insights

Generates a comprehensive conversation pattern analysis from audit log, metrics, and agent memory:

  • Tool performance (calls, errors, avg duration)
  • Usage distribution chart
  • Common tool sequences and co-occurrence
  • Hourly activity heatmap
  • Error clusters
  • Actionable suggestions
  • Learned patterns from memory

See Observability for the full report breakdown.

/mcp

Shows the connection status of all configured MCP servers:

  • Server name and status (connected/failed/connecting)
  • Transport type (stdio/http/sse)
  • Tool count per server
  • Uptime and error messages

If no servers are configured, shows setup instructions. See MCP Servers for configuration.

/insight

Generates an activity analytics report:

  • Tool call frequency and duration
  • Error rates
  • Token statistics per run

Task management

/batch

Run multiple tasks sequentially or in parallel:

/batch Fix all TypeScript errors; Add missing tests; Run the linter

Use --parallel to run tasks concurrently:

/batch --parallel Generate docs for auth.ts; Generate docs for api.ts

Git

/commit

Generates a commit message from the current diff, stages all changes, and commits. The commit includes a Co-Authored-By: SideCar trailer.

/undo

Reverts all file changes made by SideCar in the current session. SideCar snapshots every file before modifying it, so undo restores the exact original content.

Review Changes (Command Palette)

Run SideCar: Review Changes from the Command Palette to get an AI-powered review of your uncommitted changes. The review covers potential bugs, security concerns, and code quality.

Summarize PR (Command Palette)

Run SideCar: Summarize PR from the Command Palette to generate a pull request summary from the current branch’s changes against the base branch.


Model

/model <name>

Switches to a different model mid-conversation. The conversation history is preserved. Updates the status bar and saves the preference.

/model claude-sonnet-4-6
/model qwen3-coder:8b

Debugging

/verbose

Toggles verbose mode on or off. When enabled, SideCar shows:

  • The full assembled system prompt at the start of each run
  • Per-iteration summaries with elapsed time and token counts
  • Tool selection explanations before each tool call

Verbose output appears in yellow-bordered collapsible blocks, visually distinct from normal responses.

You can also enable verbose mode permanently via sidecar.verboseMode in settings.

/prompt

Shows the current system prompt in a collapsible block — the base prompt, SIDECAR.md content, and any custom system prompt you’ve configured. Useful for debugging unexpected agent behavior.


Project setup

/init

Scans the codebase and generates a .sidecar/SIDECAR.md file that provides project context for all future conversations. The generated file includes:

  • Project summary and unique value proposition
  • Tech stack (architecturally significant dependencies only)
  • Architecture overview with module relationships
  • Key files and directories table
  • Development commands (install, build, test)
  • Code conventions observed from source samples
  • Important notes and gotchas

Context gathering: /init reads configuration files (package.json, tsconfig.json, etc.), the workspace file tree, file statistics, and up to 8 sample source files. It prioritizes entry-point files (main, index, app, extension, server, cli) and selects samples from diverse directories. If CLAUDE.md, .github/copilot-instructions.md, or AGENTS.md files exist, their contents are included in the analysis.

Overwrite protection: If SIDECAR.md already exists, a confirmation dialog asks before overwriting. Cancel to keep the existing file.

The generated file opens in the editor for manual refinement. See SIDECAR.md for details on how this file is used.

/bg <task>

Spawns a background agent that works autonomously without blocking the main conversation.

/bg Write unit tests for src/utils/parser.ts
/bg Refactor the logger to use structured output

Background agents:

  • Run with their own independent LLM client (no shared state with the main chat)
  • Execute in autonomous mode with a 15-iteration cap
  • Stream output to a collapsible dashboard panel below the chat header
  • Can be stopped individually via the dashboard

Up to 3 agents run concurrently (configurable via sidecar.bgMaxConcurrent). Additional tasks queue automatically. When an agent completes, a summary is posted to the main chat.

See Agent Mode — Background agents for details.

Model Arena (new in v0.90)

/arena [models]

Opens the Model Arena — a full-editor panel that streams the same prompt through 2–4 models in parallel side-by-side columns.

/arena                               # QuickPick to choose models
/arena llama3.2:3b,qwen3:8b         # pre-fill two models (comma-separated)
/arena agent refactor the auth module  # agent-mode: run task via fork dispatch

Chat mode (/arena or /arena model1,model2): the panel opens with one streaming column per model. Vote buttons (👑 Best) appear once any lane produces output. Each vote updates a local ELO leaderboard persisted to .sidecar/arena/elo.json. Multi-turn: a new prompt bar re-enables after each vote so you can continue the conversation. “Change models” lets you swap models without closing the panel.

Agent mode (/arena agent <task>): runs the task through each chosen model inside its own Shadow Workspace (one fork per model), then opens the normal Fork diff-review UI. The winner’s ELO is updated when you pick a diff.

Configured via sidecar.arena.enabled (default true) and sidecar.arena.defaultModels (pre-fill list so the QuickPick is skipped). Also available from the Command Palette as SideCar: Open Model Arena (Chat) and SideCar: Open Model Arena (Agent Task).

Fork & Parallel Solve (new in v0.67)

/fork <task>

Spawns N parallel approaches to the same task. Each fork runs a full agent loop inside its own Shadow Workspace off the current HEAD, with bounded concurrency. When every fork settles, the pick-the-winner review opens: a QuickPick lists every reviewable fork, vscode.diff shows the chosen fork’s patch, and on confirm SideCar applies the winner via git apply while discarding the losing forks.

/fork refactor the auth middleware to use async/await
/fork add input validation to the user-create endpoint

Semantic differs from /bg (one background agent, runs autonomously) and Facets (N specialists on different subtasks, multi-select review): Fork runs N attempts at the same task, and you pick one winner.

SideCar: Fork & Compare (Command Palette)

Same flow as /fork <task> but prompts for the task via an input box rather than reading it from the chat line. Useful when you want to fork without a chat session active.

Configured via sidecar.fork.enabled (default true), sidecar.fork.defaultCount (default 3, clamp 2–10), sidecar.fork.maxConcurrent (default 3, clamp 1–10).

Facets (new in v0.66)

SideCar: Facets: Dispatch Specialists (Command Palette)

Dispatches one or more named specialists against a shared task. Opens a multi-select QuickPick to choose facets, then prompts for the task.

Built-in facets: general-coder · latex-writer · signal-processing · frontend · test-author · technical-writer · security-reviewer · data-engineer.

Each facet runs in its own isolated Shadow Workspace with its own tool allowlist, preferred model, and composed system prompt. Multi-facet batches coalesce into a single aggregated review flow at the end — you review all the diffs in one pass instead of getting hit with per-facet prompts mid-run. The review UI detects cross-facet file overlaps (two facets touching the same file gets flagged), opens vscode.diff per facet, and applies accepted diffs via git apply.

Add project-local facets by dropping markdown files under <workspace>/.sidecar/facets/*.md with a YAML frontmatter declaring id, displayName, optional preferredModel, optional toolAllowlist, optional dependsOn. User-level facets go under paths listed in sidecar.facets.registry.

Configured via sidecar.facets.enabled (default true), sidecar.facets.maxConcurrent (default 3), sidecar.facets.rpcTimeoutMs (default 30000), sidecar.facets.registry (default []).

See Extending SideCar — Facets for the full schema, dispatch model, and trust semantics.

Kickstand model & adapter management (new in v0.67)

Palette-only entries — no slash-command form. Kickstand exposes a backend-native API for model lifecycle, HuggingFace repo browsing, and LoRA adapter hot-swap that SideCar wires directly into the command palette when the active backend is Kickstand.

SideCar: Kickstand: Load Model (Command Palette)

Pick a model from Kickstand’s registry (unloaded models are listed) and load it. Shows a progress notification while the model streams into memory.

SideCar: Kickstand: Unload Model (Command Palette)

Pick a currently-loaded model and unload it. Useful for freeing GPU memory before loading a larger model.

SideCar: Kickstand: Load LoRA Adapter (Command Palette)

Attach a LoRA adapter to a loaded model without reloading the base. Prompts for:

  1. The loaded model to attach to (QuickPick of currently-loaded models)
  2. The adapter file path (absolute path to a GGUF adapter)
  3. The adapter scale (0.0–2.0, default 1.0 — controls how strongly the adapter’s weights blend with the base)

Multiple adapters stack on one base model, each with its own scale. Kickstand assigns an adapter_id on load that the unload command uses to refer back to it.

SideCar: Kickstand: Unload LoRA Adapter (Command Palette)

Pick a loaded model, then pick one of its attached adapters to detach. If the model has zero adapters, shows an info toast and exits.

SideCar: Browse & Pull Models (Command Palette)

Browse a HuggingFace repo directly from VS Code. Prompts for the repo (e.g. bartowski/Meta-Llama-3-8B-Instruct-GGUF), lists every GGUF/MLX file with its size + quantization (e.g. 4.4GB · Q4_K_M · gguf), and pulls the pick via Kickstand’s streaming pull endpoint. Much faster than opening the HuggingFace page in a browser + copy-pasting the file name into the model pull flow.

See Kickstand model lifecycle for the backend configuration. See the Kickstand project for the server API.