Releases: mohansagark/claude-graph
Release list
v0.2.3 — safe viz defaults + real Django benchmark
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.3v0.2.2 — viz: node cap, file clusters, filter controls
What's new in 0.2.2
Graph visualization upgrades
--max-nodes N— cap the whole-graph view to the N highest-degree nodes. Highlighted seeds (from--symbolor--impact) are always kept. A notice appears in the browser when the cap is active.- Filter panel — live checkboxes (bottom-left) to toggle node kinds (function / class / module) and edge kinds (calls / imports / tests_for) without re-rendering.
- File-cluster hulls — translucent convex-hull outlines group nodes that share a file, color-coded per file. Toggle them off in the filter panel if they add noise.
Usage
claude-graph viz # whole graph
claude-graph viz --max-nodes 150 # cap at 150 highest-degree nodesInstall
pip install claude-graph==0.2.2v0.2.1 — 31 built-in languages
What's new in 0.2.1
Expands built-in language support from 13 to 31 languages — zero new dependencies, all grammars are already bundled in tree-sitter-language-pack.
New languages added
| Language | Extensions |
|---|---|
| Kotlin | .kt .kts |
| Scala | .scala .sc |
| PHP | .php .phtml |
| Dart | .dart |
| Elixir | .ex .exs |
| Bash / Zsh | .sh .bash .zsh |
| Lua | .lua |
| Zig | .zig |
| Dockerfile | Dockerfile .dockerfile |
| HCL / Terraform | .tf .hcl |
| Nix | .nix |
| CMake | CMakeLists.txt .cmake |
| Solidity | .sol |
| CUDA | .cu .cuh |
| R | .r .R |
| Julia | .jl |
| Gleam | .gleam |
| Cairo | .cairo |
Install
pip install claude-graph==0.2.1Add more languages
tree-sitter-language-pack bundles 306 grammars. Add any of them with a single .claude-graph/languages.toml entry — no code change needed. See the README for the schema.
v0.1.2
Fixes the Docker image: git ls-files was failing inside the container due to git's dubious-ownership check on the bind-mounted repo.
v0.1.1
Adds a Docker image published to GitHub Container Registry (ghcr.io/mohansagark/claude-graph) — a native GitHub Package, unlike the PyPI/release-asset install paths.
v0.1.0
Full Changelog: https://github.com/mohansagark/claude-graph/commits/v0.1.0