sidecar

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 7 GitHub stars
Code Uyari
  • fs module — File system access in .github/workflows/pr-comment.yml
  • process.env — Environment variable access in bench/bfcl/backend.ts
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Free, self-hosted AI coding assistant for VS Code — local Ollama models, Anthropic Claude, or any OpenAI-compatible server. Full agent loop with tool use, inline completions, and MCP support.

README.md

SideCar Logo

SideCar — AI Coding Assistant for VS Code

VS Code Marketplace

SideCar is a free, self-hosted VS Code extension that serves as a drop-in replacement for GitHub Copilot and Claude Code. Use local Ollama models, the Anthropic API, OpenAI, Fireworks AI, OpenRouter, Google Gemini, Groq, Kickstand (self-hosted), or any OpenAI-compatible server (LM Studio, vLLM, llama.cpp) for AI-powered coding — with full agentic capabilities, inline completions, and tool use.

A free, open-source, local-first autonomous AI agent for coding — a full agent loop, not just chat. No subscription, and with local models, no data leaves your machine.

Why SideCar?

Agent mode, tool use, and MCP are table stakes in 2026 — Copilot, Cursor, Claude Code, Cline, and Continue all have them. What sets SideCar apart is the combination underneath, all with no subscription:

  • Genuinely free and fully local-first — runs offline on Ollama with no API key or required cloud; plug in a frontier provider only when you want one.
  • Tool-call recovery from model text — many capable local models emit their tool calls as plain text or JSON in the content field instead of the structured tool_calls field, so a stock harness sees no call and stalls. SideCar parses those out and runs them: qwen2.5-coder scores 0% on the Berkeley Function-Calling AST subset without this layer and ~78% with it. Parameter-name recovery (filepath), foreign tool-name aliases (create_filewrite_file), and bare-JSON parsing sit alongside it. See Measured, not claimed.
  • Capability-adaptive gates — completion, grounding, and citation gates plus tiered reprompt budgets aimed at making weaker local models usable. Whether the net effect is a lift is measured, not assumed.
  • Parallelism & write-isolation — shadow workspaces (ephemeral git worktree), audit mode (in-memory write buffer), fork & parallel solve (N attempts, pick the winner), and typed sub-agent facets.
  • First-party VS Code integration — Problems-panel security/diagnostics, Test Explorer agent runs, CodeLens actions, file decorations, inline completions, and inline chat.

The trade-off: SideCar is VS Code-only, where Cline and Kilo Code reach more editors and ship larger plugin ecosystems.

vs. proprietary tools

Copilot, Cursor, and Claude Code are all capable paid agents. The comparison is no longer "agentic or not" — it's local-first, IDE-native, and free vs. cloud-tied and subscription-based.

Capability SideCar Copilot Cursor Claude Code
Autonomous agent loop Yes Yes Yes Yes
Model agnostic (any provider) Yes Partial Partial No
Fully offline / self-hosted Yes No No No
HuggingFace model install Yes No No No
Custom skills system Yes Yes Yes (.cursorrules) Yes
Context compaction (manual + auto) Yes Yes Yes Yes
Spending budgets & cost tracking Yes Yes Yes Yes
Hybrid local-worker delegation Partial No No No
Prompt pruner & pre-request caching Yes No No Partial
Plan-then-execute mode Yes Yes Yes Yes
Review mode (batch diff review) Yes No Partial No
Native Problems panel integration Yes No No No
Test Explorer integration (agent test runs) Yes No No No
Inline diff streaming in chat Yes No No No
Status bar health indicator Yes Partial No No
Getting-started walkthrough Yes Yes No No
Native modal approval for destructive tools Yes Partial Partial Partial
Conversation steering (type while processing) Yes No Yes Yes
Works in your existing VS Code Yes Yes No (fork) Yes (extension + CLI)
MCP support Yes (client + server) Yes Yes Yes
Monthly subscription Free Free tier; $10–39/mo from $20/mo Usage-based / from $20/mo

Cursor and Windsurf (now Devin Desktop) are paid editors you switch into; SideCar, like Copilot and Cline, runs inside the VS Code you already use.

Beyond the differentiators above, SideCar is cost-aware (prompt caching, a 90%-reduction prompt pruner, delegate_task to a local worker, spend tracking, and an architect/editor model split), secure by default (OS-keychain key storage, secrets/vuln scanning, path-traversal protection), and extensible (MCP client + server with lazy schema loading, markdown skills, six agent modes). No vendor lock-in: Ollama, Anthropic, OpenAI-compatible, Kickstand, Groq, Fireworks, Gemini, or GGUF from HuggingFace.

Measured, not claimed

SideCar ships a lot of machinery aimed at making weaker local models usable —
gates, reprompt budgets, deterministic tool-call repair, recovery paths. How
much of it actually helps is not yet established
, and this section exists so
the README does not imply otherwise.

What is measured today:

  • Tool-surface expressibility (tests/llm-eval/toolSurface.eval.ts) — one
    model call per case against the real advertised schemas. Across nine local
    models, seven score 7/7 on picking the right tool and expressing the intent.
    Two repairs are confirmed load-bearing: stringified-array coercion for
    ask_user (llama3.2) and text-protocol call parsing (qwen2.5-coder emits
    calls as JSON in the content field, and would score 0/7 without it).
  • Individual mechanisms with recorded A/Bs — noted inline where they exist,
    with the model and date, because a result on one model is not a general claim.

What is not measured:

  • The net effect of the scaffolding stack as a whole. No end-to-end
    scaffold-on vs scaffold-off comparison has been run on current code.
  • Per-mechanism cost. Reprompts and recovery paths consume context and latency;
    which ones earn that is an open question, and at least one recovery path
    (splitFusedAnchor) was measured doing active harm and was removed in
    scaffold 4.0.0.
  • Anything about how these mechanisms behave on models or tasks outside the
    small local set that has been dogfooded.

Historical eval percentages have been removed from this README rather than
restated: every local number recorded before 2026-07-30 was measured with
thinking disabled — a configuration that is not the shipped default — so those
figures do not describe what a user gets. Re-baselining is in progress.

Features

The highlights — full feature list in the docs.

Feature Description
80+ built-in tools File ops, shell, git, web search, databases, screenshots, code profiling, CI-failure analysis, change-impact analysis, and more — full list
Local-model scaffolding harness Capability-adaptive machinery for weaker local models: tool-call recovery from model text, grounding/completion gates, tiered reprompt budgets. Net effect is measured, not assumed
Completion gate Blocks "done" until lint and colocated tests have actually run and passed — keys on output evidence, not exit codes
Write isolation Review/Audit modes (buffer writes in-memory, approve per-file diffs) and Shadow Workspaces (run in an ephemeral git worktree; main tree untouched until you accept)
Parallelism Fork & parallel solve (N attempts, pick the winner), typed sub-agent facets (named specialists with their own tool allowlist + model), and background agents
Durable instruction memory (A/B-proven) Standing instructions survive context compaction and the session itself, applied automatically in later sessions
Project knowledge & impact Semantic search over every symbol (tree-sitter + embeddings) and an AST-exact code graph — analyze_impact answers "what depends on this symbol?"
Inline completions & chat Copilot-style FIM autocomplete and Cmd+I in-place editing with Fix/Explain/Refactor on diagnostics
MCP (client + server) stdio / HTTP / SSE transports with lazy schema loading; expose SideCar's own agent loop as an MCP server
Skills Constrained markdown skills (allowed-tools, preferred-model, max-iterations) with a searchable registry and 40+ slash commands
SIDECAR.md Path-scoped project instructions; falls back to AGENTS.md / CLAUDE.md / .cursorrules
Security scanning Secrets, SQL injection, XSS, and eval findings surfaced in the Problems panel

Requirements

  • Visual Studio Code 1.116.0 or later
  • Ollama installed and in your PATH (for local models only)

Getting Started

Ollama (local, free)

  1. Install Ollama if you haven't already
  2. Install the SideCar extension
  3. Click the SideCar icon in the activity bar
  4. Start chatting — SideCar launches Ollama automatically and downloads a starter model

Default model: gemma4:e4b (9 GB, ~10 GB VRAM — the most-dogfooded local model, with the strongest prompt-following of those tested and a cold-start the harness handles automatically). Lighter alternative: ministral-3:latest (6 GB, 8 GB VRAM). Low-RAM: granite4.1:3b (2 GB). Cloud: configure the Anthropic backend for maximum reliability.

Anthropic (Claude)

  1. Click the ☰ menu in the chat header → Anthropic Claude under Backend
  2. SideCar prompts for your API key on first switch — paste it and you're done

Or manually: sidecar.baseUrl = https://api.anthropic.com, run SideCar: Set / Refresh API Key, set sidecar.model = claude-sonnet-4-6.

SideCar uses Anthropic's prompt caching automatically — subsequent turns in a session cost ~90% less on input tokens.

OpenAI

  1. Set sidecar.baseUrl to https://api.openai.com
  2. Run SideCar: Set / Refresh API Key and paste your OpenAI key
  3. Set sidecar.model to gpt-5 (recommended — higher TPM than mini models)

Note: gpt-4o-mini and gpt-4.1-mini share a 200K TPM org-level cap. At ~23K tokens per request (system prompt + tools), the budget exhausts after ~8 requests. Use gpt-5 or a model with a higher TPM allocation.

Fireworks AI

Fireworks offers fast inference for large open-source models including DeepSeek and Llama variants.

  1. Set sidecar.baseUrl to https://api.fireworks.ai/inference
  2. Run SideCar: Set / Refresh API Key and paste your Fireworks key
  3. Set sidecar.model to accounts/fireworks/models/deepseek-v4-pro (recommended)

OpenRouter

OpenRouter provides a single API key for 100+ models across providers.

  1. Set sidecar.baseUrl to https://openrouter.ai/api
  2. Run SideCar: Set / Refresh API Key and paste your OpenRouter key
  3. Set sidecar.model to e.g. x-ai/grok-3-mini or google/gemini-2.5-flash

Google Gemini

  1. Set sidecar.baseUrl to https://generativelanguage.googleapis.com/v1beta/openai
  2. Run SideCar: Set / Refresh API Key and paste your Gemini API key
  3. Set sidecar.model to gemini-2.5-flash

Groq

Groq offers very fast inference for open-source models via their LPU hardware.

  1. Set sidecar.baseUrl to https://api.groq.com/openai
  2. Run SideCar: Set / Refresh API Key and paste your Groq key
  3. Set sidecar.model to e.g. llama-3.3-70b-versatile

Note: Groq's free tier (12K–30K TPM) is exhausted after 1–2 requests from SideCar's system prompt + tool schemas. A paid tier is required for reliable use.

Kickstand (self-hosted manager)

Kickstand is a self-hosted model manager that wraps Ollama with a management API, model registry, and load/unload controls.

  1. Run Kickstand locally — it auto-generates a bearer token at ~/.config/kickstand/token
  2. Set sidecar.baseUrl to your Kickstand URL (default http://localhost:11435)
  3. SideCar reads the token file automatically — no API key prompt needed

Other OpenAI-compatible servers

LM Studio, vLLM, llama.cpp, and other OpenAI-compatible servers work out of the box:

  1. Set sidecar.baseUrl to your server URL (e.g. http://localhost:1234)
  2. Set sidecar.model to the model name on your server
  3. Run SideCar: Set / Refresh API Key if your server requires authentication

SideCar auto-detects the provider from the URL. Override with sidecar.provider: "openai" if needed.

Tested Models

SideCar is verified against an agent smoke-eval suite (read / edit / write / run / plan / error-recovery tasks) on each supported model. The primary gate is infrastructure reliability — the agent loop, tool-call parsing, and completion gates must run cleanly (no crashes, dropped tool calls, or retry thrash) — measured separately from a model's raw task capability.

Test hardware: Apple M3 Max, 36 GB unified memory (macOS), Ollama for local models. Model sizes and memory guidance below assume this configuration.

Local models (Ollama)

Every model below runs the agent smoke suite with zero infrastructure errors. Task-completion capability varies; the recommendations reflect both.

Model Size Notes
gemma4:e4b (default) 9.6 GB Strongest prompt-following of the local models; the shipped default
ornith:9b 5.6 GB Best small-footprint agent — near-default capability at a third the size
ministral-3:latest 6.0 GB Strong, low-footprint, reliable
qwen2.5-coder:7b 4.7 GB Solid coding baseline; emits text-form tool calls (SideCar's parser recovers them)
north-mini-code:1.0 19 GB Agentic-tuned coder; strong autonomous, but rarely asks clarifying questions
laguna-xs-2.1 20 GB Fast MoE coder; some run-to-run variance
granite4.1:3b 2.1 GB Low-RAM option; punches above its weight
llama3.2:latest 2.0 GB Low-RAM general model; below the agent floor for complex tasks

Memory guidance (36 GB). Sub-10 GB models run comfortably alongside VS Code with headroom for the context cache; the ~19–20 GB MoE coders fit with less room to spare. A dense 14B model at a large context window can exceed unified memory and thrash — lower sidecar.ollama.numCtx, or prefer a smaller coder.

Cloud models

For maximum reliability, the Anthropic (Claude), Google Gemini, and Fireworks (DeepSeek) backends are the strongest tested cloud options; see the setup sections above.

VS Code Copilot Chat & Agents Window

SideCar registers as a native VS Code chat participant — type @sidecar in the Copilot Chat panel to talk to your configured backend without opening the SideCar sidebar. Slash commands /review, /fix, /explain, and /commit-message are available.

VS Code Agents Window (Preview): To use SideCar in the dedicated Agents Window, add the following to your VS Code settings.json:

"extensions.supportAgentsWindow": {
    "nedonatelli.sidecar-ai": true
}

The extension must be installed in your default VS Code profile.

Keyboard Shortcuts

Shortcut Action
Cmd+Shift+I / Ctrl+Shift+I Toggle SideCar chat panel
Cmd+I / Ctrl+I Inline chat (edit code in place)
Cmd+L / Ctrl+L Clear chat
Cmd+Shift+U / Ctrl+Shift+U Undo all AI changes
Cmd+Shift+E / Ctrl+Shift+E Export chat as Markdown

Extension Settings

Core settings — full reference at nedonatelli.github.io/sidecar/configuration.

Setting Default Description
sidecar.baseUrl http://localhost:11434 API base URL
sidecar.model gemma4:e4b Model for chat
sidecar.agentMode cautious cautious / autonomous / manual / plan / review / audit or a custom mode name
sidecar.agentMaxIterations 50 Max agent loop iterations
sidecar.agentMaxTokens 200000 Max tokens per agent run
sidecar.mcpServers {} MCP server definitions (or use .mcp.json)
sidecar.toolPermissions {} Per-tool overrides: allow / deny / ask
sidecar.hooks {} Pre/post execution hooks per tool
sidecar.completionGate.enabled true Block agent finish until lint + tests pass
sidecar.enableInlineCompletions false Copilot-style autocomplete (opt-in)
sidecar.mcpDelegation.enabled false Enable delegate_to_mcp tool (agent → MCP server)
sidecar.mcpDelegation.allowedServers [] Allowlist of servers delegate_to_mcp may target (empty = all)
sidecar.mcpServer.enabled false Expose SideCar's agent loop as a local MCP server
sidecar.mcpServer.port 3457 Port for the SideCar MCP server (127.0.0.1 only)
sidecar.mcpServer.requireAuth true Require bearer token for inbound MCP requests
sidecar.dailyBudget Daily spend cap in USD (paid backends)
sidecar.weeklyBudget Weekly spend cap in USD (paid backends)

API keys are stored in VS Code SecretStorage (OS keychain) — set via SideCar: Set / Refresh API Key, never in plaintext settings.

Documentation

Full documentation: nedonatelli.github.io/sidecar

Support & Contact

SideCar is free and always will be. If it saves you time and you'd like to support development, a tip is appreciated but never required:

Buy Me A Coffee

Disclaimer

SideCar is an independent project by Nicholas Donatelli and is not affiliated with, endorsed by, or sponsored by Ollama, Anthropic, Meta, Mistral AI, Google, GitHub, or any other company. All product names are trademarks of their respective holders.

License

MIT

Yorumlar (0)

Sonuc bulunamadi