Ctxo Visualizer β
A self-contained single-page web app that lets you explore the Ctxo index visually β the same graph the MCP tools query, but rendered for humans.
How to get here
Run npx ctxo visualize in any indexed project. The CLI generates a static HTML file and opens it in your browser.
What you see β

The graph layout is force-directed: symbols cluster by connectivity, edges show imports / calls / extends / implements / uses. Node size scales with PageRank (centrality), colour encodes dead-code status.
Dashboard β

The left panel summarises your codebase at a glance:
- Symbol count broken down by kind (function / class / interface / ...)
- Dead code percentage and scaffolding markers (TODO / FIXME / HACK)
- Change intelligence bands β which files carry the most complexity Γ churn
- Anti-pattern counts β reverted code and hot-revert hotspots
Search β

The search bar runs the same two-phase ranker as get_ranked_context:
- BM25 lexical pass (camelCase-aware, trigram fallback for typos)
- PageRank re-rank within the matching candidate set
Query-free browsing (blank box) is also supported β the list falls back to global PageRank order.
Detail panel β

Click any node to see:
- Its Logic-Slice (symbol + transitive dependencies, what the MCP agent would receive)
- Blast radius tiers (confirmed / likely / potential) with impact score
- Git intent β recent commits touching the symbol + anti-pattern warnings
- Incoming / outgoing edges with their kinds
Features β
| Feature | What it does | MCP equivalent |
|---|---|---|
| Force-directed graph | Visual cluster discovery | get_architectural_overlay |
| Node sizing | PageRank centrality | get_symbol_importance |
| Dead-code highlighting | Flags unreachable + unused-export symbols | find_dead_code |
| Click = detail panel | Logic-Slice + blast + history | get_logic_slice + get_blast_radius + get_why_context |
| Top-N filter | Zoom into PageRank top symbols | --max-nodes flag on ctxo visualize |
| Full-text search | Find symbols without knowing the exact name | get_ranked_context |
Related β
ctxo visualizeCLI command β flags, output location, browser behaviour- Dependency graph concept β the underlying data model
- PageRank importance β how nodes are sized
- Dead code detection β how dead-code tagging works