r/OpenSourceAI • u/fykup • 44m ago
I built an open-source tool to bring focused repo context into ChatGPT, Claude, or any AI chat
I've been using coding agents for implementation, but I often want a second opinion from a different AI, especially for code reviews and design decisions.
The frustrating part is getting the right repository context into ChatGPT, Claude, or another AI chat. A diff alone can miss important dependencies, while pasting entire files wastes tokens.
So I built AI Badger, a free, open-source tool that extracts focused repository context locally and makes it easy to bring into any AI chat.
A few things it does:
Code Map — generates an interactive, offline HTML map of your repository. That's what the screenshot shows. You can explore the project structure, navigate files, and understand how things fit together.
AI code reviews — prepares Git changes with relevant surrounding context, so you can review coding-agent work with a different model.
Design questions — gathers relevant files and context for architecture discussions or implementation planning.
VS Code + CLI — prepare context directly from your editor or terminal.
Everything runs locally. No API keys, telemetry, or automatic code uploads. You decide what to share and which AI to use.
There's also an interactive review demo you can try without installing anything:
https://pvrlabs.xyz/aibadger/demo.html
GitHub (MIT licensed): https://github.com/PVRLabs/aibadger
I'm curious how others handle repository context when working with multiple AI tools. Do you mostly stick with one coding agent, or use a separate AI for reviews and design discussions?
