r/DevGround • u/Either-Win-862 • Sep 02 '26
Showcase I built an open-source coding agent tool that uses a code graph to reduce context, cost, and search time
Your coding agent shouldn’t need to read your entire codebase to understand it.
That’s the idea behind Faber, an open-source AI coding agent for the terminal.
Faber uses a code graph to find relevant files and symbols first, instead of repeatedly scanning large parts of a repository. That means less unnecessary context, faster codebase navigation, and lower repeated API costs.
Main features:
- Claude, OpenAI Codex, Local model integration
- Code-graph-guided repository exploration
- Prompt caching to reduce repeated input cost
- Token-conscious (Chain-of-Draft style) output to reduce unnecessary generation
- Git-aware workflow with change detection, optional per-task commits, /undo, and /redo
- Expenditure tracking for calls, tokens, cache usage, cost, and estimated savings `/usage`
The goal is simple: understand more of the codebase while reading and spending less.
Prerequisite:
It requires Node.js 22.5 or newer because it uses Node’s built-in SQLite support.
Install:
npm install -g faberwright
Then, inside your project:
faber
GitHub:
https://github.com/JibanKumar-cloud/faber
npm:
https://www.npmjs.com/package/faberwright
Medium article:
https://medium.com/@jshial25/why-should-an-ai-coding-agent-read-hundreds-of-files-to-answer-one-question-d6369d29dfa5
2
u/suckadickyoucunt Sep 05 '26
Careful with resolving an edge to "the most likely file" when the graph is ambiguous. Built something similar and found it was picking the alphabetically-first candidate when a package name matched multiple files, wrong about 18% of the time on real repos. Fine as a discovery hint, not safe to state as fact unless something in the actual file text proves the edge.