codegraph
AGENTS.md73k starsChanged 4 months agoMITView on GitHub
Nested Codex guidance under docs/. Loaded with the repo-root AGENTS.md when cwd is under docs/ (Codex walks root to cwd; shared project_doc_max_bytes budget). Root AGENTS.md already carries the non-negotiable retrieval principles (adapt-the-tool, explore budgets, end-to-end synthesis). This file holds the longer validation methodology and Excalidraw worked example that were moved out of root to fit the budget. For each language × framework, validate on small, medium, and large real repos with ≥3 different flow prompts each:
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about colbymchenry/codegraph
- @midu.dev“¡No quemes tokens con tu IA explorando tu proyecto! Crea un grafo semántico local de tu código con esto ✓ …”Bluesky · May 18, 2026 · 12 likes
- @novica.bsky.social“hey #rstats is anyone working R support for github.com/colbymchenry... ?”Bluesky · May 22, 2026 · 9 likes
- headroomlabs-ai/headroom“[FEATURE] Support codegraph as an alternative code-graph backend”GitHub · Jun 15, 2026 · 8 reactions
- @alexiskirke.bsky.social“I came across this impressive open-source project on GitHub that helps AI coding agents work faster and …”Bluesky · May 25, 2026 · 7 likes
- @zottmann.dev“#WorksWellForMe: For code exploration tasks, when you tell your agent to clone a repo in a temp folder, …”Bluesky · Sep 29, 2026 · 5 likes
The biggest 5 of 86 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 86
Talked about on GitHub, Bluesky and Hacker News (86 times).
On GitHub · 50
- Jun 15, 2026[FEATURE] Support codegraph as an alternative code-graph backend — headroomlabs-ai/headroom8 reactions · 2 comments
- May 19, 2026feat: support CodeGraph as optional repo exploration helper — Gentleman-Programming/gentle-ai2 reactions · 1 comment
- Nov 17, 2026codegraph 1.6.3 — chenrui333/homebrew-tap1 reaction · 1 comment
- Jul 27, 2026codegraph: 1.4.1 -> 1.5.0 — NixOS/nixpkgs1 reaction
- Jul 7, 2026feat: Add codegraph — appium/appium-ios-remotexpc1 reaction · 1 comment
45 more on GitHub
- Jul 3, 2026Built-in graph-based code intelligence backend for dependency, call-chain, and impact queries — can1357/oh-my-pi1 reaction · 10 comments
- Jun 17, 2026Add compare table with `codegraph` — defendend/Claude-ast-index-search1 reaction · 1 comment
- Jun 15, 2026feat(codegraph): add CodeGraph local code-intelligence plugin — pleaseai/claude-code-plugins1 reaction · 4 comments
- May 29, 2026codegraph: init at 0.9.7 — numtide/llm-agents.nix1 reaction
- May 26, 2026fix(codegraph): verify MCP server is registered for the launched CLI — jasmedia/cc-pr-reviewer1 reaction · 2 comments
- May 25, 2026feat(codegraph): integrate CodeGraph MCP server to cut review token usage — jasmedia/cc-pr-reviewer1 reaction · 1 comment
- May 20, 2026CommandCode terminal freezes entirely + flickering on large output — CommandCodeAI/command-code1 reaction · 5 comments
- May 18, 2026Add Claude PR review workflow — cowprotocol/services1 reaction · 1 comment
- May 10, 2026Tools Comparisons alternatives — jgravelle/jcodemunch-mcp1 reaction · 6 comments
- Nov 22, 2026Minarbot CodeGraph 1: Rust crate foundation (schema, sync, extraction for Rust/TS/JS/Python/Go) — labsiqbal/minarbot0 reactions · 3 comments
- Nov 22, 2026[FEAT] codegraph compatibility? — hedges333/makeflow-skill0 reactions
- Nov 21, 2026build(deps-dev): bump the npm-dependencies group across 1 directory with 3 updates — vndv/pi-codegraph0 reactions
- Nov 20, 2026agent-skills.github.colbymchenry.codegraph: 1.6.3 → 1.6.4 — sudosubin/agents.nix0 reactions
- Nov 20, 2026codegraph: 1.6.2 -> 1.6.3 — NixOS/nixpkgs0 reactions
- Nov 17, 2026agent-skills.github.colbymchenry.codegraph: 1.6.2 → 1.6.3 — sudosubin/agents.nix0 reactions
- Nov 17, 2026chore(deps): bump the all-dependencies group across 1 directory with 32 updates — impact-initiatives/ana_app0 reactions
- Nov 13, 2026chore(overlays): bump codegraph to 1.6.2 — martinjlowm/nixfiles0 reactions · 1 comment
- Nov 13, 2026codegraph 0.9.9 leaks file descriptors on checkouts with many worktrees — martinjlowm/nixfiles0 reactions
- Nov 13, 2026Set up codegraph (code knowledge graph MCP) for the fleet agents — mingster/dotfiles0 reactions · 5 comments
- Nov 11, 2026Bump the dev-dependencies group across 1 directory with 5 updates — peter91v/ETNPILOT0 reactions
- Nov 9, 2026chore(deps-dev): bump @colbymchenry/codegraph from 0.8.0 to 1.6.2 — EmmanuelOrtiz87/gentle-vanguard-public0 reactions · 1 comment
- Nov 9, 2026CommonJS: missing module exports resolve to unrelated unimported class methods — inth3shadows/codegraph0 reactions · 1 comment
- Nov 6, 2026Run pinned CodeGraph integration tests in CI — phyzess/pappra0 reactions
- Nov 2, 2026chore: bump external skill pins — jthiruveedula/agentkit0 reactions
- Nov 1, 2026chore(deps): bump @colbymchenry/codegraph from 1.6.0 to 1.6.2 in /lazytrae-plugin/packages/cli/tooling/codegraph — elvinzhao10/LazyTrae0 reactions
- Nov 1, 2026integrate codegraph — alaexeyshustov/pipelines0 reactions · 1 comment
- Oct 30, 2026feat(search/S4): native C11 Tree-sitter CodeGraph symbols and versioned reference edges (#306) — qigao/TurboAgent0 reactions
- Oct 30, 2026feat(search/S3): revision-scoped SQLite FTS5 chunks+symbols and exact query planner (#306) — qigao/TurboAgent0 reactions · 2 comments
- Oct 24, 2026[22.10] Integrate RPGCode symbols, imports and calls with CodeGraph — tk-reawakened/rpgtoolkit-reawakened0 reactions
- Oct 23, 2026docs(positioning): optave/codegraph and agent-arch trip the competitive tripwire; retire the "only tool" claims — hslee16/Archy0 reactions · 2 comments
- Oct 10, 2026Add zstd compression as Indexer option — MerlinScheurer/hister0 reactions
- Oct 8, 2026fix(clone): copy a consistent snapshot, including the WAL — Lint111/codegraph0 reactions · 1 comment
- Oct 7, 2026chore(deps): Bump the workflow-tooling group across 1 directory with 2 updates — Zuexx/forgekit-android0 reactions
- Oct 7, 2026chore(deps): Bump the workflow-tooling group across 1 directory with 2 updates — Zuexx/forgekit-ios0 reactions
- Oct 6, 2026Update PURL mappings for conda-forge packages — prefix-dev/purl-associator0 reactions · 2 comments
- Oct 5, 2026build(deps): bump @colbymchenry/codegraph from 1.6.0 to 1.6.1 in /lazyqoder-plugin/tooling in the tooling group — elvinzhao10/LazyQoder0 reactions · 2 comments
- Oct 5, 2026Bump @colbymchenry/codegraph from 1.6.0 to 1.6.1 in /plugins/lazydeepseek/tooling in the tooling group — elvinzhao10/LazyDeepSeek0 reactions · 2 comments
- Oct 5, 2026Vibe https://github.com/colbymchenry/codegraph — generalbots/generalbots0 reactions
- Oct 5, 2026chore(deps): bump @colbymchenry/codegraph from 1.6.0 to 1.6.1 in /lazybuddy-plugin/tooling in the tooling group — elvinzhao10/LazyBuddy0 reactions · 1 comment
- Oct 5, 2026build(deps): bump @colbymchenry/codegraph from 1.6.0 to 1.6.1 in /plugins/lazyzcode/tooling in the tooling group — elvinzhao10/LazyZCode0 reactions · 2 comments
- Oct 4, 2026Freshness: codegraph v1.6.0 -> v1.6.2 — thoroc/context-radar0 reactions
- Oct 4, 2026codegraph: 1.6.0 -> 1.6.2 — NixOS/nixpkgs0 reactions
- Oct 3, 2026agent-skills.github.colbymchenry.codegraph: 1.6.0 → 1.6.2 — sudosubin/agents.nix0 reactions
- Oct 3, 2026codeGraph: 1.6.1 -> 1.6.2 — Kh05ifr4nD/coolheaded0 reactions
- Oct 3, 2026codegraph v1.6.2 — conda-forge/codegraph-feedstock0 reactions · 8 comments
On Bluesky · 34
- May 18, 2026¡No quemes tokens con tu IA explorando tu proyecto! Crea un grafo semántico local de tu código con esto ✓ -92% tool calls ✓ 71% más rápido… — @midu.devsays it tested it12 likes and reposts · 4 replies
- May 22, 2026hey #rstats is anyone working R support for github.com/colbymchenry... ? — @novica.bsky.social9 likes and reposts · 2 replies
- May 25, 2026I came across this impressive open-source project on GitHub that helps AI coding agents work faster and cheaper with local project-scoped… — @alexiskirke.bsky.social7 likes and reposts · 2 replies
- Sep 29, 2026#WorksWellForMe: For code exploration tasks, when you tell your agent to clone a repo in a temp folder, also tell it to init codegraph in… — @zottmann.dev5 likes and reposts · 1 reply
- May 25, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 colbymchenry / codegraph ⭐ 21,173 (+2,993) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending.bsky.social5 likes and reposts · 1 reply
29 more on Bluesky
- May 6, 2026Reduce token & tool calls from 26-52 to 1-6 calls, faster 43-82%. When #codeagent explores your codebase query code #graph instead of… — @qdrddr.bsky.socialsays it tested it4 likes and reposts · 1 reply
- May 21, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 colbymchenry / codegraph ⭐ 7,633 (+1,850) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- May 16, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 colbymchenry / codegraph ⭐ 2,110 (+397) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- Nov 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 colbymchenry / codegraph ⭐ 77,940 (+129) 🗒 TypeScript Pre-indexed code knowledge graph, auto syncs on… — @github-trending-js.bsky.social2 likes and reposts
- Jun 27, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 colbymchenry / codegraph ⭐ 55,237 (+388) 🗒 TypeScript Pre-indexed code knowledge graph, auto syncs… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Jun 17, 2026CodeGraph parses your repo with tree-sitter into a local SQLite graph served over MCP, so agents query callers, callees, and impact instead… — @jeremymorgan.com2 likes and reposts · 1 reply
- Jun 9, 2026codegraphの「コードベースを地図化してAIコーディングを軽くする」、ここはかなり筋がいいです🌿 https://x.com/so_ainsight/status/2058518896907538932… — @mint-echosphere.bsky.social2 likes and reposts · 1 reply
- May 25, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 colbymchenry / codegraph ⭐ 20,919 (+2,993) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 22, 2026📈 Today's GitHub Trending: 1. https://github.com/anthropics/claude-plugins-official - Python, 2556 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy2 likes and reposts
- May 16, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 colbymchenry / codegraph ⭐ 2,109 (+397) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Oct 31, 2026Index a small repo with CodeGraph, ask an agent to trace a call chain, compare against your IDE’s references. Fifteen minutes to know if… — @jeremymorgan.com1 likes and repost · 2 replies
- Oct 24, 2026Give your AI coding agent a pre-built map of your codebase: fewer tokens, fewer tool calls, 100% local. 🔗… — @prosperflowio.bsky.social1 likes and repost
- Jun 12, 2026しかも導入はタダの要約じゃない。`codegraph install` → 各プロジェクトで `codegraph init -i`、その後は file watcher で index を auto-sync。… — @mel-echosphere.bsky.social1 likes and repost
- Jun 12, 2026`codegraph`、`100% local` は本当だ。READMEにもそう書いてある。 元: https://x.com/so_ainsight/status/2058518896907538932 一次:… — @mel-echosphere.bsky.socialsays it tested it1 likes and repost · 1 reply
- Jun 3, 2026CodeGraph : un knowledge graph pré-indexé de votre codebase pour Claude Code, Cursor ou Codex. Résultat mesuré sur 7 projets réels — 35%… — @camilleroux.comsays it tested it1 likes and repost
- May 31, 2026「AIコーディングが35%安く、ツール呼び出し70%減、100%ローカルで情報も外に出ない」——codegraphが★3.4万に急上昇している。 https://x.com/opensourcelab9/status/2060602106432901196… — @sara-echosphere.bsky.socialsays it tested it1 likes and repost · 1 reply
- May 24, 2026GitHub - colbymchenry/codegraph: Pre-indexed code knowledge graph for Claude Code, Codex, Cursor, OpenCode, and Hermes Agent — fewer… — @tech-trending.bsky.social1 likes and repost · 1 reply
- May 23, 2026📈 Today's GitHub Trending: 1. https://github.com/Lum1104/Understand-Anything - TypeScript, 2331 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 22, 2026ai ml / GitHub Trending: GitHub - colbymchenry/codegraph: Pre-indexed code kno... For engineers using AI coding agents on large codebases,… — @foursignalsdev.bsky.social1 likes and repost
- May 21, 2026Knowledge graph for your agents is a very cool ideas 🔥 https://github.com/colbymchenry/codegraph — @apvarun.com1 likes and repost
- May 21, 2026📈 Today's GitHub Trending: 1. https://github.com/anthropics/claude-plugins-official - Python, 891 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 21, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 colbymchenry / codegraph ⭐ 7,633 (+1,850) 🗒 TypeScript Pre-indexed code knowledge graph for Claude… — @github-trending.bsky.social1 likes and repost · 1 reply
- May 20, 2026📈 Today's GitHub Trending: 1. https://github.com/colbymchenry/codegraph - TypeScript, 1910 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 16, 2026codegraph pre-indexes your codebase into a local knowledge graph for Claude Code — so it spends fewer tokens and tool calls hunting for… — @mahdi-17.bsky.social1 likes and repost · 1 reply
- May 14, 2026Claude Codeの探索を効率化するローカル専用のコードナレッジグラフツールらしい AIのコード理解を深めて作業を高速化したいときに試したい yug1224 starred colbymchenry/codegraph… — @yug1224.com1 likes and repost
- May 8, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 colbymchenry / codegraph ⭐ 1,045 (+148) 🗒 TypeScript Pre-indexed code knowledge graph for Claude Code… — @github-trending-js.bsky.social1 likes and repost
- Oct 30, 2026Blast radius of a code change is a graph problem. CodeGraph builds an AST-derived graph of symbols, calls, and imports, then exposes it to… — @jeremymorgan.com0 likes and reposts · 1 reply
- Jun 12, 2026同じ README の benchmark、平均は `47% fewer tokens` `58% fewer tool calls`。そこは効いてる。 でも cost は `16% cheaper` 止まりで、Excalidraw と Tokio は `even`… — @mel-echosphere.bsky.social0 likes and reposts · 1 reply
- May 28, 2026💎 README原文:"CodeGraph only helps when queried directly — otherwise a sub-agent reads files regardless and CodeGraph becomes overhead."… — @nemu-echosphere.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Jul 26, 2026Codegraph5 points
- May 24, 2026Supercharge Claude Code, Cursor, Codex with Semantic Code Intelligence1 point · 2 comments
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/codegraph.mdcCursor rule
- add-langSkill
- agent-evalSkill
The file
Files
AGENTS.md (docs/)
Nested Codex guidance under docs/. Loaded with the repo-root AGENTS.md when cwd is under docs/ (Codex walks root to cwd; shared project_doc_max_bytes budget).
Root AGENTS.md already carries the non-negotiable retrieval principles (adapt-the-tool, explore budgets, end-to-end synthesis). This file holds the longer validation methodology and Excalidraw worked example that were moved out of root to fit the budget.
Validation methodology (REQUIRED for every new language/framework)
For each language × framework, validate on small, medium, and large real repos with ≥3 different flow prompts each:
- Pick the canonical flow for the framework ("how does X reach Y": state→render, request→handler→view, query→SQL, action→reducer→store…).
- Deterministic probes (
scripts/agent-eval/probe-{node,explore}.mjsagainst the builtdist/):codegraph_explorewith the flow's symbol names connects from→to end-to-end with no break (its Flow section shows the path); no node explosion (select count(*) from nodesstable before/after re-index); synthesized-edge precision spot-check (select … where provenance='heuristic'). - Agent A/B (
scripts/agent-eval/run-all.sh <repo> "<Q>"): with vs without codegraph, ≥2 runs/arm (run-to-run variance is large — never conclude from n=1). Record duration, total tool calls, Read, Grep. Optional forced-Read-0 sufficiency proof via the block-read hook (scripts/agent-eval/hook-settings.json).- Every run also reports three feedback metrics — residual context occupancy, explore sufficiency (what the agent did NEXT after each explore), and allocation efficiency (share of returned bytes the answer cited) — under each run, plus a side-by-side arm table (
compare-arms.mjs). Entry point:docs/benchmarks/agent-eval-feedback-metrics.md. Reading them:Read a file we returnedis an allocation miss,Read a file we did NOT return/Grepis recall; allocation efficiency is relative (attribution is by citation) so it is only valid between builds on the same question; occupancy shares are Claude Code / 200k and don't transfer to another host — the arm ratio does. - The
codegraphCLI is blocked in every arm (no-cli-shim.sh: sanitized PATH + a PreToolUse hook, shared by both harnesses). Without it 14 of 15 without-arm runs in one 7-repo pass reached codegraph through Bash. Check the contamination row before believing any number:CLI calls that RETURNED output> 0 invalidates the run (in a new-vs-baseline A/B it silently drops calls from all three metrics, since a CLI explore is not a tool call). - Model policy — every A/B arm runs Claude with
--model sonnet --effort high. Always. Never Opus/Fable. Allscripts/agent-eval/*.shdefault to this (MODEL/EFFORTenv override exists — don't raise it without an explicit reason from the maintainer). Two reasons, and the second matters more than cost: (a) Sonnet doesn't burn tokens; (b) Sonnet is the deliberate floor model — codegraph's real users attach it to whatever agent they already run (Cursor Composer, Gemini, etc.), so we validate on a "dumber" model on purpose: a stronger model's tool-use covers up the salience/sufficiency problems a weaker one exposes. An affordance that lands on Sonnet generalizes up to every host; one that only works on Opus/Fable doesn't generalize down to the agents most users actually have. Both arms always use the same model. - MCP attach is a startup-latency issue, not a hard block. On a multi-step task the agent dives into Read/grep before codegraph finishes its ~2-3s startup (worse when the eval is itself run nested inside a Claude session, under CPU contention), so it runs with no codegraph. Fix: pre-warm a persistent daemon for the target (
CODEGRAPH_DAEMON_IDLE_TIMEOUT_MShigh; spawnserve --mcp --path <target> </dev/null &; wait for.codegraph/daemon.sock) and skip the startup re-exec (CODEGRAPH_WASM_RELAUNCHED=1) so claude connects before the agent's first turn. Don't trust claude'sinitsnapshot — it can readstatus:"pending"/ 0 tools even when it then connects; judge by actual codegraph usage inparse-run.mjs'sby type. To isolate a change — new-build vs baseline-build, both codegraph-on (vs run-all.sh's with-vs-without) — usescripts/agent-eval/ab-new-vs-baseline.sh <indexed-repo> "<task>" [baseline-ref](it bakes in the pre-warm).
- Every run also reports three feedback metrics — residual context occupancy, explore sufficiency (what the agent did NEXT after each explore), and allocation efficiency (share of returned bytes the answer cited) — under each run, plus a side-by-side arm table (
- Pass bar: a normal flow question reaches ~0 Read/Grep within the repo's explore-call budget, runs faster than without-codegraph, and shows no regression on a control repo. Record the numbers in
docs/design/dynamic-dispatch-coverage-playbook.md(the coverage matrix).
Full playbook + per-mechanism design: docs/design/dynamic-dispatch-coverage-playbook.md and docs/design/callback-edge-synthesis.md.
Worked example — Excalidraw (TS/React, medium, 643 files)
The template to replicate per language/framework. Question: "how does updating an element re-render the canvas on screen?" (the full flow crosses three React boundaries: observer callback, setState→render, and JSX child).
| Stage | duration | Read | Grep | codegraph |
| Without codegraph | 115–139s | 9–10 | 10–11 | 0 |
| Broken (explore-budget regression) | 131–139s | 5–10 | 3–5 | 6–14 |
| Fixed (budget + msgs + synthesis) | 64–112s | 0–2 | 2–4 | 3–10 |
| + trace-first steering | 51–74s | 0–2 | 0–4 | 3–4 |
n=4 unhooked runs/stage, same prompt. After steering flow questions to codegraph_trace first: best run 0 Read / 0 Grep / 3 codegraph / 51s; 2 of 4 fully clean (0 Read, 0 Grep). Steering eliminated the over-drill variance — call count tightened from 3–10 to 3–4, trace adoption went 3/4 → 4/4, and the search+callers path-reconstruction floundering dropped to 0. Run-to-run variance is still real; report the range, never a single run. Residual reads/greps are all the nonce data-flow (canvasNonce — a local prop with no graph edges); that's the def-use/data-flow frontier, left deliberately uncovered (tracking every local would explode the graph). Validated: trace(mutateElement, renderStaticScene) connects in 6 hops across all three boundaries (mutateElement → triggerUpdate → [callback] triggerRender → [react-render] render → [jsx] StaticCanvas → renderStaticScene), each hop showing inline source + the wiring site; node count stable at 9,289; 1 callback + 46 react-render + 280 jsx-render synthesized edges (no explosion, precision-checked).
Also see: docs/design/dynamic-dispatch-coverage-playbook.md, docs/design/callback-edge-synthesis.md, docs/benchmarks/call-sequence-analysis.md, docs/benchmarks/agent-eval-feedback-metrics.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

