Skip to content

Releases: mohansagark/claude-graph

v0.2.3 — safe viz defaults + real Django benchmark

Choose a tag to compare

@mohansagark mohansagark released this 24 Jul 12:53

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

v0.2.2 — viz: node cap, file clusters, filter controls

Choose a tag to compare

@mohansagark mohansagark released this 24 Jul 12:27

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 --symbol or --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 nodes

Install

pip install claude-graph==0.2.2

v0.2.1 — 31 built-in languages

Choose a tag to compare

@mohansagark mohansagark released this 24 Jul 12:23

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.1

Add 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

Choose a tag to compare

@mohansagark mohansagark released this 10 Jul 04:02

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

Choose a tag to compare

@mohansagark mohansagark released this 10 Jul 03:59

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

Choose a tag to compare

@mohansagark mohansagark released this 10 Jul 03:38