Star us on GitHub

LOCAL-FIRST CODE CONTEXT

Give your coding agent the plan, not the problem

AI Badger maps your repository locally so an external AI chat can produce a detailed implementation plan. In one experiment, that workflow used 32% fewer active tokens, 86% fewer reasoning tokens, and finished 55% faster.

Star AI Badger on GitHub

Free and open source · Local-first · No API keys · No repository upload

See the full one-run experiment

TWO WORKFLOWS

Give the agent a problem—or give it a plan.

WORKFLOW A

Direct OpenCode prompt

  1. Feature request
  2. Coding agent explores the repo
  3. Coding agent designs the change
  4. Coding agent implements it

56,505 active tokens · 207.4s

WORKFLOW B

AI Badger-assisted token-saving handoff

  1. AI Badger maps the repo locally
  2. External AI chat creates a detailed, compact implementation plan
  3. OpenCode with DeepSeek V4 Flash implements the focused plan

Measured against Workflow A: 32% fewer active tokens · 86% fewer reasoning tokens · 55% faster

38,356 active tokens · 94.4s

One app, one feature, and one run per workflow. The measurements cover OpenCode execution only; external-chat usage was not included. Directional evidence, not guaranteed savings.

The detailed compact handoff is where the measured token savings occurred. AI Badger currently provides the local project context; it does not automatically generate the final implementation plan. The resulting implementations differed, so this compares execution efficiency—not equivalent final-code quality.

Follow the work on compact coding-agent handoffs.

Star the repository to follow the project and future work on compact coding-agent handoffs.

Star AI Badger on GitHub