What's new in 0.2.3
viz: 500-node default cap
claude-graph viz (full-graph mode) now defaults to rendering the 500 highest-degree nodes instead of the entire graph. This prevents accidentally generating a multi-MB HTML file on large repos.
claude-graph viz # capped at 500 nodes (safe default)
claude-graph viz --max-nodes 200 # override the cap
claude-graph viz --max-nodes 0 # no cap (may be slow on large repos)Scoped views (--symbol, --impact) are unaffected — they're already small by design.
Real benchmark on Django
Ran an actual claude-graph build on Django main:
Build time: 17 seconds
Files: 3,040
Nodes: 45,096
Edges: 938,763
| Query | Tokens (naive) | Tokens (claude-graph) | Reduction |
|---|---|---|---|
callers_of HttpResponse |
112,991 | 15,455 | 7× less |
callees_of dispatch |
92,539 | 3,143 | 29× less |
callers_of authenticate |
46,032 | 5,278 | 8× less |
search permission |
155,915 | 659 | 236× less |
Full Django source naive dump = 1,475,429 tokens — 7.4× Claude's 200k context window.
Install
pip install claude-graph==0.2.3