Skip to content

PVRLabs/aibadger

Repository files navigation

AI Badger

AI Badger — Local AI Coding Context Tool

Local-first codebase context extraction for any AI chat (Claude, ChatGPT, Grok, DeepSeek, etc.).

Get precise, token-efficient context on demand without uploading your entire repo or wasting tokens on irrelevant files.

GitHub stars License Go Version Homebrew

No cloud • No API keys • No telemetry • Fully local

▶ Try Interactive DemoInstall

AI Badger Interactive Demo

Map → Extract → Apply: Smart local context bridge that prepares focused codebase snippets for any LLM chat.

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. Apply
Badger fetches those files, builds a second prompt.
↳ You copy it → paste into AI → review before writing

✓ Fully local — nothing leaves your machine until you copy it
✓ You control every paste and every write

Perfect for Claude token saving, local LLM workflows, code reviews, design sessions, and debugging.

Why AI Badger?

  • Universal compatibility — Works with any AI chat interface or local model
  • Local-first codebase context tool — Complete privacy, no uploads
  • Token efficient — Stop burning agent tokens on reviews, explanations, or brainstorming
  • Precise & lightweight — Built in Go, fast, minimal overhead
  • Specialized modesreview and design for common workflows

Install

Homebrew (Recommended)

brew tap pvrlabs/aibadger
brew install pvrlabs/aibadger/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.

Quick Start

  1. Run badger in your project root.
  2. Type your goal (or paste a git diff).
  3. Copy Prompt 1 → paste into your AI chat.
  4. When the AI asks for files, copy its response → paste back into Badger.
  5. Copy Prompt 2 → paste back to the AI.
  6. Paste the AI’s response into Badger → review and apply changes.

Specialized Modes

  • badger review — Git diff pre-loaded for code reviews
  • badger design — Architecture and planning focus

Full usage: docs/usage.md

Learn More


Star if this local AI coding context tool solves a real pain for you ⭐

Built with ❤️ by PVR Labs — privacy-first developer tools.

WebsiteX @kupolov

About

AI Badger - Local-first tool that extracts focused repo context for any AI chat (Claude, ChatGPT, Grok, etc.) without wasting tokens on irrelevant files.

Topics

Resources

License

Stars

12 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages