Build a Local Code Graph + Living Wiki So the Agent Queries a Neighborhood, Not the Whole Repo

~50-90% fewer tokens on repeated repo exploration (self-reported; real setup cost) Advanced 5 min read

Instead of grepping the repo and re-reading whole files every session, keep a deterministic Tree-sitter + SQLite code graph and an in-repo Markdown wiki, then hand the agent a compact symbol neighborhood — the target function plus its callers, callees, and imports — for the task at hand.

🔒 Pro tip · Advanced

Unlock this tip — and 110 more

This is one of 111 advanced, fact-checked tactics reserved for Pro. Get the full 133-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.