AI Badger - Local-first tool that extracts focused repo context for any AI chat (Claude, ChatGPT, Grok, etc.) without wasting tokens on irrelevant files.
개요
Badger is a local-first repository-context bridge for reviews, design questions, and coding-agent workflows. It prepares focused context locally; you control what you share with your AI chat. Enter your goal. Badger builds a prompt. ↳ You copy it → paste into your AI chat AI replies asking for specific files. ↳ You copy that → paste back into Badger Badger fetches those files and builds a second prompt. ↳ You copy it → paste into AI → review its response in Badger → confirm any writes ✓ Context is prepared locally — your AI provider receives what you paste ✓ You control every paste and every write - — Works with any AI chat interface or local model - — Nothing is uploaded automatically - — Send only relevant context instead of repeatedly feeding the whole repository to cloud models - — Built in Go, fast, minimal overhead - — review and design for common workflows
README
AI Badger — Local AI Coding Context Tool
Get a second opinion on your code changes using the AI chat you already use.
Badger is a local-first repository-context bridge for reviews, design questions, and coding-agent workflows. It prepares focused context locally; you control what you share with your AI chat.
Local processing • No automatic uploads • No API keys • No telemetry
▶ Try Interactive Demo • Install
How it works
1. Map
Enter your goal. Badger builds a prompt.
↳ You copy it → paste into your AI chat
2. Extract
AI replies asking for specific files.
↳ You copy that → paste back into Badger
3. Review and Apply
Badger fetches those files and builds a second prompt.
↳ You copy it → paste into AI → review its response in Badger → confirm any writes
✓ Context is prepared locally — your AI provider receives what you paste
✓ You control every paste and every write
Why AI Badger?
- Universal compatibility — Works with any AI chat interface or local model
- User-controlled sharing — Nothing is uploaded automatically
- Token & cost efficient — Send only relevant context instead of repeatedly feeding the whole repository to cloud models
- Precise & lightweight — Built in Go, fast, minimal overhead
- Specialized modes —
reviewanddesignfor common workflows
Install
Homebrew (Recommended)
brew install pvrlabs/tap/badger
Quick Curl Install
curl -fsSL https://raw.githubusercontent.com/PVRLabs/aibadger/main/install.sh | sh
See docs/install.md for Windows, source builds, and more.
Also available as an official VS Code companion (GitHub).
Agent Skills
Badger includes the handoff and badger-review skills for continuing an AI
coding session or requesting an independent review. See the Agent Skills
guide for installation, usage, and details.
Quick Start
For an independent review of your Git changes:
- VS Code: With the optional companion extension, open Source Control and choose AI Badger: Copy All Changes for Review, then paste the request into your AI chat. This direct review does not require the CLI.
- CLI: Run
badger reviewin your project root, copy the prepared review request, and paste it into your AI chat.
For deeper repository or design questions, use Map → Extract:
- Run
badgerin your project root. Interactive sessions start in Design focus. - Type your goal (or leave the editor empty and press Enter to explore the project).
- Copy Prompt 1 → paste into your AI chat.
- When the AI asks for files, copy its response → paste back into Badger.
- Copy Prompt 2 → paste back to the AI.
- Paste the AI’s response into Badger → review and apply changes.
Specialized Modes
badger code— explicitly start in Code focusbadger design— explicitly start in Design focus with an empty editor
Full usage: docs/usage.md
Learn More
- Usage Examples & Walkthrough
- Browser Handoff Guide
- Configuration: User limits and external context
- API Reference — Non-interactive commands for editors and scripts
- Agent Integrations — Compact repository orientation for coding agents
- Limitations & Supported Projects
- Privacy & Safety
- Contributing
If AI Badger makes your coding workflow simpler, consider starring the repo ⭐
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add pvrlabs/aibadger