FAQ
FAQ
Setup & Compatibility
What version of VS Code does SideCar require?
VS Code 1.116.0 or later — the Marketplace refuses to install on anything older (engines.vscode: ^1.116.0).
Does SideCar work in Cursor, VSCodium, or other VS Code forks?
Cursor and VSCodium are broadly compatible — they share the VS Code extension API. Features that depend on platform-specific APIs (macOS Seatbelt sandbox, shell-integration terminal routing) may behave differently. There is no dedicated test matrix for forks; report issues on GitHub with the fork name and version.
Can I use SideCar without installing Ollama?
Yes. Ollama is the default backend but is not required. You can connect SideCar to the Anthropic API, OpenAI, OpenRouter, Groq, Fireworks, Google Gemini, AWS Bedrock, your GitHub Copilot subscription, LM Studio, or any OpenAI-compatible server instead. Switch backends via the ☰ menu in the chat header (Backend). See getting started for per-backend setup.
Can I run SideCar in a Dev Container or over remote SSH?
Yes. Agent shell commands route through VS Code’s shell-integration API, which inherits the remote shell session. That means run_command and run_tests execute inside the container or on the remote host, not on your local machine. sidecar.terminalExecution.enabled controls this; it falls back to a child_process session automatically when shell integration is unavailable.
Does SideCar work in VS Code Web (vscode.dev / GitHub Codespaces)?
The extension targets the desktop API surface. Some capabilities (native file system access, child process execution, Seatbelt sandbox) are not available in the browser host. Basic chat works in Codespaces via the remote extension host. Full agent mode requires the desktop or a connected remote.
Models & Backends
Which model should I start with?
For Ollama: gemma4:e4b (the default, ~10 GB VRAM) is the most-tested starting point. On lighter hardware, try ministral-3:latest (6 GB), granite4.1:3b, or qwen2.5-coder:7b. For agent tasks that require reliable tool use, qwen3-coder variants perform well. For the Anthropic API: claude-sonnet-5-5 is a good default for agent work (the backend menu selects the cheaper claude-haiku-5-5 until you change it).
How do I connect to OpenRouter, Groq, or Fireworks?
The quickest way is the ☰ menu in the chat header → Backend → the provider, then paste your API key when asked. All three are OpenAI-compatible; to configure by hand, set sidecar.baseUrl to the provider’s endpoint, paste your API key via SideCar: Set / Refresh API Key, and set sidecar.model to the model name.
| Provider | Base URL |
|---|---|
| OpenRouter | https://openrouter.ai/api/v1 |
| Groq | https://api.groq.com/openai/v1 |
| Fireworks | https://api.fireworks.ai/inference/v1 |
With sidecar.provider on auto, SideCar detects each provider from its URL. To set it explicitly, use openrouter, groq, or fireworks — not openai, which skips provider-specific handling such as OpenRouter’s cost accounting. Groq’s free tier can’t run agent requests (its 8K tokens-per-minute limit is smaller than one ~11.5K-token request); a paid Dev Tier is required. See getting started for the full provider table.
How do I connect to LM Studio?
Point sidecar.baseUrl at http://localhost:1234 (LM Studio’s default). SideCar auto-detects it as OpenAI-compatible. No API key is needed for local servers. Make sure LM Studio has the OpenAI-compatible server enabled in its settings.
Some models fail to use tools. What is happening?
Not all models support function calling. On the Ollama backend SideCar detects this automatically: if a model reports no tool support, or fails to invoke tools after 3 attempts, it stops sending tool definitions and falls back to chat-only mode. Other backends always send tool definitions, so a model without tool support fails agent requests there — pick a tool-capable model. For full agent capabilities, use models tagged Full Features (Tools) in the model dropdown. If a capable model is behaving incorrectly, try lowering sidecar.agentTemperature (default 0.2) and confirming the model version supports the JSON tool-call format your server is configured for.
How do I reduce my Anthropic API bill?
Several levers:
- Prompt caching: SideCar enables Anthropic prompt caching automatically, reducing input token costs by ~90% on cache hits.
- Editor model: set
sidecar.editorModelto a cheaper model (e.g.claude-haiku-5-5) for execution turns while keeping Sonnet for planning turns. - Prompt pruning:
sidecar.promptPruning.enabled(default on) collapses whitespace and truncates oversized tool results. Tunesidecar.promptPruning.maxToolResultTokensdown for exploration-heavy tasks. - Delegate task:
sidecar.delegateTask.enabled(default on) offloads read-only codebase research to a free local Ollama worker, saving 60–80% of input tokens on file-heavy turns. - Spending budgets: set
sidecar.dailyBudgetorsidecar.weeklyBudgetin USD. Agent runs are blocked at 100% and warned at 80%. Track current spend withSideCar: Show Session Spendor/usage.
See configuration — cost controls for details.
Can I use different models for different tasks within the same session?
Yes, via model routing. Set sidecar.modelRouting.enabled: true and define rules in sidecar.modelRouting.rules. Rules can match on role (agent-loop, chat, planner, summarize, and others), file glob, prompt regex, or task complexity. A cheaper model handles chat; a frontier model handles agent planning. Per-rule budget caps auto-downgrade to a fallback model when hit. See configuration — model routing.
Agent Behavior
The agent is repeating the same action. How do I stop it?
SideCar has cycle detection built in. A normalized-signature buffer catches “same tool, same file, different content” loops after 10 repeats (configurable via sidecar.scaffolding.cycleDetectionMinRepeats). Byte-identical repeats stop sooner, at a fixed threshold the setting doesn’t change: 4 consecutive identical calls, or the same edit/write call 4 times in the recent window. When either trips, the agent halts automatically and posts a message in chat explaining what happened.
If you are seeing a loop that was not caught: press Escape or click Stop to abort the run, then steer the agent with a follow-up message. You can also lower sidecar.agentMaxIterations (default 50, or 150 for strong-tier models such as Claude) to set a harder cap.
How do I prevent the agent from touching certain files?
Three approaches:
- .sidecarignore: create a
.sidecarignorefile in the workspace root (a subset of.gitignoresyntax; see Ignoring patterns). Files matching those patterns are excluded from the workspace index, the symbol index and semantic search. The agent won’t discover those files during relevance-scored context building. - Per-tool deny: add
"write_file": "deny"and"edit_file": "deny"tosidecar.toolPermissionsto block all writes globally, or use a custom mode with those restrictions for specific sessions. - Review mode: in
reviewmode all writes are buffered and nothing hits disk until you explicitly accept. You can discard individual files without accepting the full batch.
What is the difference between cautious, autonomous, review, and manual modes?
| Mode | File reads | File writes | Destructive ops (shell, git) |
|---|---|---|---|
| Cautious (default) | Auto | Diff preview — you confirm | Confirm |
| Autonomous | Auto | Auto | Auto, except irrecoverable |
| Manual | Confirm | Confirm | Confirm |
| Review | Auto | Buffered — nothing hits disk | Confirm |
Cautious is the recommended default. Autonomous is for trusted batch tasks. Review is for large multi-file refactors where you want to audit everything before anything is written. Manual is for high-stakes work where you want visibility into every operation. See agent mode — approval modes.
The agent declared the task done but the task is not complete. Why?
A few possible causes:
- Completion gate disabled or exhausted:
sidecar.completionGate.enabled(default on) forces the agent to run lint and colocated tests before declaring a turn finished. If it fired but the model still reported completion, enablesidecar.autoFixOnFailureto feed diagnostic errors back automatically. - Missing verification: rephrase the task to include an explicit verification step — “Fix the bug and confirm the test suite passes.”
- Context gap: the agent may not have seen all relevant files. Use
@pin:pathto pin specific files, or ask “What files did you check?” as a follow-up. - Model quality: chat-only models and smaller models are more likely to hallucinate completion. Switch to a tool-capable model with stronger instruction following.
Can I send the agent a new instruction while it is still running?
Yes. The chat input stays active during agent runs, and what you send goes to the steer queue rather than starting a new run. Enter (or the Send button) queues a nudge, which the agent reads at the next iteration boundary without aborting the current tool call. Ctrl+Enter (Cmd+Enter on macOS) queues an interrupt, which aborts the in-flight turn immediately; its text is delivered at the same boundary. Press Escape with an empty input, or click Stop, to abort the run.
How do I run multiple agent tasks in parallel?
Use /bg <task> to launch background agents. Up to 3 run simultaneously (configurable via sidecar.bgMaxConcurrent). Each background agent gets its own client instance and streams output to the dashboard panel below the chat header.
For specialist parallel work, Facets (SideCar: Facets: Dispatch Specialists) dispatches named role-based sub-agents — test-author, security-reviewer, frontend, etc. — each with its own tool allowlist and model, all running in isolated Shadow Workspaces with a single aggregated review at the end. See agent mode — typed sub-agent facets.
Context & Memory
How much of my codebase does the agent actually see?
Context is assembled from three layers:
- Active file: the file open in the editor (always included by default).
- Workspace relevance scoring: up to
sidecar.maxFiles(default 10) additional files ranked by semantic and keyword relevance to your query. - Pinned files: files or folders in
sidecar.pinnedContextor pinned inline with@pin:path— always included regardless of relevance score.
The total is bounded by sidecar.contextLimit (auto-detected per model). Large files above sidecar.streamingReadThreshold (50KB default) get head + tail summaries rather than full content. The agent can also call read_file explicitly to pull in any file during a run.
For large monorepos, set sidecar.workspaceRoots to focus indexing on active sub-projects, and use .sidecarignore to exclude irrelevant directories.
What is SIDECAR.md?
SIDECAR.md (at the workspace root or under .sidecar/) is a project-specific instruction file the agent reads at the start of every session. Use it to document conventions, architecture decisions, preferred patterns, and anything else you would want the agent to know before touching the codebase.
Sections can be scoped to specific file globs with a <!-- @paths: glob, glob --> sentinel directly below the heading — those sections only inject when matching files are in context. Headings listed in sidecar.sidecarMd.alwaysIncludeHeadings always inject regardless of scope.
For large files with many sections, set sidecar.sidecarMd.mode: "retrieval" — sections are embedded and retrieved by semantic similarity at query time rather than injected wholesale. See configuration — SIDECAR.md.
The agent forgot something I told it earlier. How do I fix that?
Long sessions trigger context compression — older turns are summarized and compacted to stay within the model’s context window. The episodic memory layer embeds those summaries and retrieves relevant ones before each turn, but retrieval is not perfect.
To make context persistent across compression:
- Pin a file or selection: use the Pinned Memory view in the SideCar sidebar, or the
SideCar: Pin File to Memory,Pin Active File to MemoryandPin Selection to Memorycommands. Pinned entries inject into every turn with always-include semantics and survive compression. (/memoriesis different: it prints a count of the agent’s learned memories by type.) - Add it to SIDECAR.md: for project-level conventions, the right place is SIDECAR.md.
- Re-state the constraint: typing a key instruction at the start of a new message reinforces it for the current turn.
How do I pin specific context to every agent turn?
Three ways:
- Settings: add paths to
sidecar.pinnedContext— e.g.["src/types.ts", "src/agent/"]. - Inline: type
@pin:src/types.tsanywhere in a chat message to pin that file. The pin lasts until VS Code reloads; it isn’t saved. - Pinned memory: use the Pinned Memory sidebar view or the Pin File/Selection to Memory commands to pin files or snippets that persist across sessions and survive context compression.
Pinned files appear in a dedicated “Pinned Files” section above relevance-scored context. See configuration — context pinning.
What is the Project Knowledge Index?
The Project Knowledge Index is a symbol-level semantic search layer built on tree-sitter parsing and MiniLM-L6-v2 embeddings. Every function, class, and method in the workspace is indexed at the symbol level. The agent’s project_knowledge_search tool queries this index to find relevant code even when the symbol name does not appear in the query text — “where is auth handled?” returns requireAuth plus callers up to 2 graph hops away.
Enabled by default. Disable with sidecar.projectKnowledge.enabled: false to stop background indexing on very large codebases. See configuration — retrieval.
Safety & Privacy
Does SideCar send my code to the cloud?
It depends on which backend you configure. If you use Ollama, all inference runs locally — no code leaves your machine. If you configure a cloud backend (Anthropic, OpenAI, OpenRouter, Groq, Fireworks, Gemini, Bedrock, Copilot), your code and conversation are sent to that provider’s API under their data handling terms.
SideCar itself has no cloud component. There is no telemetry, no account, and no central server. The only network traffic is the API requests you configure.
Can I review all changes before they hit disk?
Yes. Set sidecar.agentMode: "review". In review mode, every write_file and edit_file call is buffered into an in-memory pending store. Nothing is written to disk until you explicitly accept it via the Pending Agent Changes panel or SideCar: Accept All Pending Changes. Each file’s diff opens in VS Code’s native diff editor when you click it.
In the default cautious mode, writes open a side-by-side diff editor immediately and wait for your Accept/Reject before proceeding. See agent mode — review mode.
Is SideCar safe for air-gapped or corporate environments?
Yes, with the right configuration:
- Use a local backend (such as Ollama) so no inference traffic leaves the network.
- Set
sidecar.deps.checkVulnerabilities: falseto disable the OSV vulnerability API call. - Set
sidecar.skills.offline: trueto disable skill registry sync. - Use
.sidecarignoreto exclude sensitive files from context indexing. - The macOS Seatbelt sandbox (
sidecar.sandbox.enabled, default on) restricts agent shell commands to the workspace root,/tmp, and common build caches.
The outbound allowlist (sidecar.outboundAllowlist) limits which hosts SideCar fetches when a URL appears in a chat message, for example to an internal documentation server. It does not restrict the backend, web_search or MCP traffic.
Can the agent run arbitrary shell commands?
The agent’s run_command tool can execute shell commands — this is necessary for running tests, builds, and linters. In cautious and manual modes, every run_command call needs your approval: on the chat card while the chat view is visible, or a blocking modal when it is hidden. In autonomous mode, commands run without prompting, except irrecoverable ones (rm -rf, git push --force, git reset --hard and the like), package installs, and config edits your request didn’t ask for, which ask in every mode. On macOS a Seatbelt sandbox restricts write paths at the OS level, but only on the child-process fallback executor — commands run through the VS Code terminal (the default path whenever shell integration is available) are not sandboxed, and the sandbox fails open if /usr/bin/sandbox-exec is missing. Do not treat it as a containment boundary; the approval modes are the real control.
To block shell execution entirely, set "run_command": "deny" and "run_tests": "deny" in sidecar.toolPermissions.
How are my API keys stored?
Backend API keys (sidecar.apiKey, sidecar.fallbackApiKey, and each backend profile’s key) are stored in VS Code SecretStorage — backed by macOS Keychain, Windows Credential Manager, or libsecret on Linux. They are never written to settings.json. If you previously had a backend key in settings.json, SideCar migrates it to SecretStorage on first activation and clears the plaintext value.
Three optional integrations are the exception: sidecar.webSearch.apiKey, sidecar.zotero.apiKey, and sidecar.mcpServer.authToken are plain settings stored in settings.json. Use keys with minimal permissions there, and keep them in user settings rather than a committed workspace file. See configuration — API key storage.
Cost & Performance
How much does SideCar cost?
SideCar the extension is free. Running it against Ollama is also free — inference runs locally on your hardware. Cloud backends (Anthropic, OpenAI, OpenRouter, etc.) charge at the provider’s standard API rates. SideCar does not add a markup.
Note: an Anthropic Claude Max or Pro subscription does not include API credits. Those are separate. Get API credits at platform.claude.com.
How do I track and limit my API spending?
- Status bar: the
$(credit-card) $0.12item appears the moment a paid backend incurs cost. Click it for a per-model breakdown. - Session summary: run
SideCar: Show Session Spendor type/usage. - Daily/weekly budgets: set
sidecar.dailyBudgetorsidecar.weeklyBudgetin USD. Agent runs warn at 80% usage and are blocked at 100%. - Verbose logs: set
sidecar.verboseLogs: trueto append per-turn cost metadata to.sidecar/logs/api.jsonl.
See configuration — spending budgets.
How do I speed up a slow agent?
Options depending on the bottleneck:
- Slow model inference: switch to a smaller or faster model. Use
sidecar.editorModelto route execution turns to a cheaper model while keeping a frontier model for planning. - Slow local model loading: SideCar sends
keep_alive: '30m'with every chat request, so a model stays loaded for 30 minutes after its last request (this overridesOLLAMA_KEEP_ALIVE). A reload also happens whenever the context window changes, so keepsidecar.ollama.numCtxfixed (see backends — Ollama performance tuning). - Context too large: reduce
sidecar.maxFiles, lowersidecar.streamingReadThreshold, or use.sidecarignoreto exclude irrelevant directories. - Too many file-read tool calls: enable
sidecar.delegateTask.enabledso the frontier model offloads codebase reads to a free local worker and only reasons over the compact summary. - Slow inline completions: on a local Ollama backend, enable speculative decoding (
sidecar.speculativeDecoding.enabled: true) with a small draft model (e.g.sidecar.completionDraftModel: "qwen2.5-coder:0.5b"). Other backends do not use it. - Many files to write in one task: the multi-file edit planner writes independent files in parallel (up to
sidecar.multiFileEdits.maxParallel, default 8). Raise this cap for wide refactors.
Teams & Sharing
How do I share settings across a team?
Commit a .vscode/settings.json to the repository with the sidecar.* settings the team should share. Workspace settings in .vscode/settings.json take precedence over user settings and are version-controlled.
Backend API keys are never stored in settings.json — they live in each developer’s OS keychain. Each developer runs SideCar: Set / Refresh API Key once after cloning. Don’t commit sidecar.webSearch.apiKey, sidecar.zotero.apiKey, or sidecar.mcpServer.authToken in a shared .vscode/settings.json — those are plain settings. See configuration — API key storage.
How do I share custom skills with my team?
Skills are markdown (*.md) files distributed via a git repository; the file name without .md is the skill id, so review.agent.md becomes review.agent. Set up a team skill registry:
- Create a git repo with your
.mdskill files. - Add the repo URL to
sidecar.skills.teamRegistriesin.vscode/settings.json. - SideCar clones and syncs the registry on activation. The Skills Picker tags each skill by origin.
sidecar.skills.autoPull controls sync frequency ("on-start", "hourly", "daily", or "manual"). For air-gapped teams, set sidecar.skills.offline: true after the initial clone. See configuration — skills registry & sync.
How do I share custom facets with the team?
Commit facet markdown files to <workspace>/.sidecar/facets/*.md. SideCar loads these automatically for every developer who opens the workspace. Facets with an id matching a built-in override the built-in. See extending SideCar — facets for the YAML frontmatter schema.
How do I share SIDECAR.md with the team?
Commit it to the repository. The .sidecar/ top-level directory is tracked in git — SIDECAR.md and other curated shared files belong there or at the workspace root. The .sidecar/.gitignore SideCar creates ignores the ephemeral entries — cache/, sessions/, logs/, scratchpad/, audit-buffer/, literature/, screenshots/, thinking/, pids.json and memory/durable-instructions.json — and these should not be committed. The rest of memory/ is not ignored by that file.
Does SideCar work in Dev Containers or remote SSH?
Yes. The extension installs in the container’s extension host and agent shell commands execute inside the container. Remote SSH and WSL are supported via the same shell-integration routing. The macOS Seatbelt sandbox only activates on macOS hosts and is a no-op in Linux containers.
Can the team use a shared self-hosted Ollama instance?
Yes. Point sidecar.baseUrl at the shared server’s URL and set sidecar.provider to "ollama". This setup works well for teams where GPU hardware is centralised — developers connect from laptops without needing local GPUs.