AI Badger for VS Code
Bring focused repository context into ChatGPT, Claude, Grok, or another AI chat, directly from VS Code. Start with Copy All Changes for Review for a fast review of Git changes. Use Deep Review when you need repository-aware context. You can also review selected or workspace changes, or ask about focused code from the VS Code Explorer. Local-first · AI-provider independent · No automatic uploads ▶ Try the AI Badger VS Code Demo Read: Reviewing AI-Generated Code in VS Code with AI Badger Why AI Badger?
How it works
Install
Direct repository and workspace review do not require the CLI. The extension is desktop-only; it is not a What you can doReview workflows are the primary use case. Start in Source Control with Copy All Changes for Review. Use Copy Selected Changes for Review for a narrower scope or Deep Review when repository-aware context is needed; the detailed review flows are described below. The Explorer workflows remain useful when you already know which code to share or want to ask a broader question. Copy files for an AI chatUse these commands when you already know which files should be included. AI Badger formats the selected files with their project-relative paths and copies them immediately. Nothing is shared until you paste it.
Ask about your codeUse these commands to start the smart-context workflow for a specific scope. These commands require the local Badger CLI.
The project command is available from the Explorer toolbar. File and folder commands are available from Explorer and editor context menus where applicable. You can also find most commands in the Command Palette. Copy selected changes for reviewIn a Git repository, select one or more changed files in Source Control, right-click, and choose AI Badger: Copy Selected Changes for Review. The extension copies a review request containing the selected files' complete Git diff. Small, readable modified, renamed, and non-sensitive untracked text files may also be included in full. Tracked additions and deleted files remain represented by Git's diff; binary contents are excluded; unavailable, changed, or oversized files are reported without full content; and sensitive untracked paths are omitted. Git's staged, unstaged, mixed, deleted, renamed, and untracked changes are represented by the selected diff, and unrelated files are not included. Each direct review request places Copy all changes for reviewFrom a Git repository in the Source Control view, choose AI Badger: Copy All Changes for Review. The action copies one self-contained review request for that repository's current staged, unstaged, untracked, renamed, and deleted changes. It does not require the Badger CLI and never includes changes from another repository.
For a multi-repository workspace, choose AI Badger: Copy Workspace Changes
for Review from the Command Palette or the aggregate Changes title. It
copies one request with an outer review task and a These Git Source Control actions are available from the repository actions and the Changes group. Both require an explicit user action; nothing is sent anywhere automatically.
Direct repository and workspace review use 512 KiB complete-request limits and 64 KiB per-file limits for optional complete text context. Workspace review counts section markers and separators in that limit, divides the optional-context capacity equally among its repository sections, and reports omitted file context within each section. These flows preserve the authoritative diff and omit binary contents while retaining compact Git change summaries. A clean repository or workspace has no changes to copy. Workspace review is implemented entirely by the extension and does not invoke Badger. Nothing is shared until you explicitly copy and paste the generated request into an AI chat. Deep Review
AI Badger: Deep Review opens editable guidance and, after Copy, asks the local Badger CLI for a topology-aware review request. Deep Review uses a 512 KiB complete-request limit and a 64 KiB per-file limit for optional complete text context. These Badger-owned limits may be explicitly overridden by a caller; successful marked CLI output is copied verbatim and is not double-framed by the extension. The flow preserves the authoritative diff and omits binary contents while retaining compact Git change summaries. Badger CLI v0.4.0 is the first released version supporting the separate Deep
Review operations Deep Review may receive final findings immediately. If the AI instead responds with only valid After a successful local Badger operation, the reusable assisted-flow header shows the detected Badger version. The indicator is best-effort and never appears before Badger has successfully run. Privacy
Smart context sends selected paths and workflow input to the local CLI. If you deliberately paste generated context into an external AI service, that service receives what you pasted under its own terms. Configuration and troubleshooting
See the CLI compatibility guide for capability requirements and executable resolution details. SupportReport Explorer, command, setup, webview, or VS Code integration issues in the extension repository. Report CLI or generated-context issues in the main AI Badger repository. Development
See the release guide for packaging and publishing details. AI Badger for VS Code is published by PVR Labs. |


