colbymchenry/codegraph
Pre-indexed code knowledge graph, auto syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local
C★ 72,654+118 that day#8 on trendingD 52.4 health9.71% duplicated
D52.4/100
Duplication42
10.6% in typescript, rust, c, svelte, javascript, bash, c-header, go, astro, sql, dart, python, scala, kotlin, php, tsx, ruby, csharp, swift, cpp, r, perl, java, lua, powershell, cpp-headerDead code97
0.3%Complexity39
68.8%Most complex files
- src/resolution/name-matcher.ts3981 cx
- __tests__/extraction.test.ts2686 cx
- src/extraction/tree-sitter.ts2107 cx
- src/mcp/tools.ts1796 cx
- src/resolution/callback-synthesizer.ts1402 cx
- __tests__/resolution.test.ts1082 cx
- src/graph/branch-guards.ts839 cx
- src/resolution/import-resolver.ts705 cx
- src/resolution/index.ts682 cx
- src/ui-server/api/steps.ts682 cx
Dead code 0.31% unused · 36 findings
- src/extraction/parse-worker.tsunused-file
- src/extraction/store-worker.tsunused-file
- src/resolution/resolver-worker.tsunused-file
- src/ui/shimmer-worker.tsunused-file
- src/mcp/query-worker.tsunused-file
- src/context/formatter.ts:formatNodeTreeunused-symbol
- src/mcp/proxy.ts:pipeUntilCloseunused-symbol
- src/mcp/index-freshness-worker.tsunused-file
- src/mcp/proxy.ts:startPpidWatchdogunused-symbol
- ui/src/components/steps/StepBox.svelte:cutNoteunused-symbol
1,432files
395,215lines
2,764,055tokens
2,672clones
38,372duplicated lines (9.71%)
247,591duplicated tokens (8.96%)
By format
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 843 | 273,232 | 1,568 | 18,628 | 6.82% |
| rust | 27 | 26,420 | 680 | 10,404 | 39.38% |
| c | 7 | 15,685 | 249 | 5,874 | 37.45% |
| css | 63 | 5,761 | 55 | 786 | 13.64% |
| html | 57 | 4,021 | 34 | 360 | 8.95% |
| javascript | 50 | 8,293 | 23 | 214 | 2.58% |
| c-header | 12 | 2,541 | 20 | 1,687 | 66.39% |
| markdown | 96 | 29,953 | 18 | 215 | 0.72% |
| bash | 71 | 4,844 | 16 | 125 | 2.58% |
| diff | 3 | 1,822 | 7 | 46 | 2.52% |
Largest clones
- 214 lines · 2,286 tokens typescript__tests__/fixtures/oversize-member-ts/src/report/monthly.ts:136–349⇆__tests__/fixtures/oversize-member-ts/src/report/quarterly.ts:11–224
- 291 lines · 1,775 tokens c-headercodegraph-kernel/grammars/dart/tree_sitter/array.h:1–291⇆codegraph-kernel/grammars/lua/tree_sitter/array.h:1–291
- 265 lines · 1,684 tokens c-headercodegraph-kernel/grammars/dart/tree_sitter/array.h:18–282⇆codegraph-kernel/grammars/kotlin/tree_sitter/array.h:17–281
- 286 lines · 1,252 tokens c-headercodegraph-kernel/grammars/dart/tree_sitter/parser.h:1–286⇆codegraph-kernel/grammars/lua/tree_sitter/parser.h:1–286
- 286 lines · 1,252 tokens c-headercodegraph-kernel/grammars/dart/tree_sitter/parser.h:1–286⇆codegraph-kernel/grammars/scala/tree_sitter/parser.h:1–286
- 115 lines · 850 tokens typescript__tests__/daemon-pid-reuse.test.ts:60–174⇆__tests__/mcp-daemon.test.ts:65–179
- 75 lines · 659 tokens rustcodegraph-kernel/src/go.rs:122–196⇆codegraph-kernel/src/rustlang.rs:146–220
- 78 lines · 649 tokens rustcodegraph-kernel/src/java.rs:219–296⇆codegraph-kernel/src/kotlin.rs:282–359
- 73 lines · 637 tokens rustcodegraph-kernel/src/ccpp/mod.rs:399–471⇆codegraph-kernel/src/go.rs:128–200
- 24 lines · 622 tokens htmlui/src/views/StepsView.svelte:722–745⇆ui/src/views/StepsView.svelte:769–792
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | Duplication | Health | Commit |
|---|---|---|---|---|---|---|---|---|
| Oct 1, 2026 | #8 | 72,654 (+118) | 1,432 | 395,215 | 2,672 | 9.71% | D 52.4 | 34ede4d |
Want this for your own project? Install jscpd and run jscpd .