Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built an open-source coding agent that uses a code graph to reduce context, cost, and search time

说明与用途

Faber 是一个开源终端 AI 编码代理,利用代码图快速定位相关文件,降低令牌使用和 API 成本。

问题

Developers and students often need AI assistance but face high token costs and slow navigation when the agent scans entire codebases.

结果

Faber reduces token usage and API costs by up to 50% while speeding up codebase navigation through code‑graph guidance and prompt caching.

工作流

  • 1. Install Node.js 22.5+ and run npm install -g faberwright. 2. Navigate to a project directory and start Faber with faber. 3. Ask a coding question; Faber queries the code graph to identify relevant files. 4. The agent sends a concise prompt to the chosen LLM (Claude, OpenAI Codex, or a local model). 5. Faber caches the prompt and uses a Chain‑of‑Draft style to generate output, reducing unnecessary tokens. 6. Git integration detects changes, optionally commits per task, and supports /undo and /redo. 7. Use /usage to view expenditure, token usage, and estimated savings.

证据

Faber uses a code graph to find relevant files and symbols first, instead of repeatedly scanning large parts of a repository.

来源

Prompt caching to reduce repeated input cost

来源

Git-aware workflow with change detection, optional per-task commits, /undo, and /redo

来源

  • 记录日期: 2026-09-05T18:30:00.023Z