visualize

visualize is a command for Claude Code from Helweg/open-codebase-index. It costs 7 tokens per session (791 once invoked), scanned A, original, MIT.

A command that creates an interactive HTML map of how parts of a codebase call one another over time.

In plain words
What is it for?
Use it to explore modules, functions, methods, classes, call relationships, cycles, and disconnected code areas, with optional path and size filters.
Why use it?
It makes unfamiliar code easier to navigate by showing recent changes, structure, hotspots, and circular dependencies in one view.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the codebase-index plugin — 2 skills, 10 commands, 1 hook, 1 MCP server shipped together

Good fit Use it to explore modules, functions, methods, classes, call relationships, cycles, and disconnected code areas, with optional path and size filters.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/helweg/open-codebase-index/visualize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Helweg/open-codebase-index

Made for: Claude Code.

Or install codebase-index, the plugin that ships this one along with the rest of its 2 skills, 10 commands, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for visualize

README.md
[![agentmods](https://agentmods.dev/badge/commands/helweg/open-codebase-index/visualize/github.svg)](https://agentmods.dev/commands/helweg/open-codebase-index/visualize)
Your own site
<a href="https://agentmods.dev/commands/helweg/open-codebase-index/visualize"><img src="https://agentmods.dev/badge/commands/helweg/open-codebase-index/visualize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for visualize

Your own site · 80×15
<a href="https://agentmods.dev/commands/helweg/open-codebase-index/visualize"><img src="https://agentmods.dev/badge/commands/helweg/open-codebase-index/visualize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.00791
Opus 5.5 $0.00003 $0.00316
Sonnet 5.5 $0.00001 $0.00158
Haiku 4.5 $0.00001 $0.00079

Measured 1mo ago against content hash 317224203ca1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

visualize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/visualize.md · 50 lines

What it actually says

Generate a self-contained interactive HTML codebase explorer. Start with the categorized Overview directory, drill into modules, exact files and symbols, and inspect directed caller → focus → callee relationships and original callsites. Use Analyze for snapshot activity, hotspots and cyclic groups.

User input: $ARGUMENTS

Parse input for optional parameters:

  • Plain text → directory filter (e.g., /visualize src/services)
  • max=N or "limit N" → sets maxNodes
  • orphans or include-orphans → sets includeOrphans=true
  • No input → explore the entire exported call graph, starting with Overview

Call index_visualize with parsed parameters.

Examples:

  • /visualize → Overview by default, module/file/symbol drill-down, and whole-snapshot Changes, Hotspots and Cycles under Analyze
  • /visualize src/tools → only symbols in src/tools/
  • /visualize max=1000 → limit to 1000 nodes
  • /visualize src/indexer orphans → include disconnected nodes

If the index doesn't exist, run index_codebase first.

Return the generated file path and open instructions.

Terminology:

  • Modules are path-based code areas, such as src/tools or native.
  • Symbols are indexed named code units, such as functions, methods, classes, or Rust modules.
  • Cyclic groups contain mutually reachable modules or symbols; a group is not an ordered cycle path. Single-symbol groups indicate direct recursion.

The generated file works offline without a server or external assets. Open the returned HTML path in a browser. The equivalent CLI is npm run visualize -- --project /path/to/project; its directory, max-node, and orphan options are unchanged.

Interaction:

  • Search names, full paths, and kinds; / focuses search. Results are paginated, not capped.
  • Overview: browse Code, Tests & fixtures, and Supporting files. Category checkboxes affect the directory only, not global search or snapshot totals.
  • Open a module for incoming/outgoing module relationships and Files and symbols. Filter within the module, open an exact file disclosure, then select a symbol. File and symbol lists page at 50.
  • Symbol focus shows callers, the selected definition and callees. Neighbor lanes page at 12; selecting a neighbor replaces the focus rather than growing a network. Self-calls appear once on the focus card.
  • Each neighbor has separate navigation and Inspect N calls actions. Inspect retains the focus and lists original callsites in Details. Back/Forward and parent breadcrumbs stay within the artifact; URL fragments restore scope and evidence.
  • Analyze opens whole-snapshot Changes, Hotspots or Cycles without losing the underlying scope. Back to exploration restores it. Use normal scrolling and browser zoom; narrow layouts provide sticky section jumps.
  • On smaller screens, Search and Details open keyboard-accessible dialogs; Escape closes them and restores focus.

Scope:

  • Counts describe the exported resolved-call snapshot, not all dependencies or live state. Input counts precede filtering. A persistent Partial graph warning indicates node-limit truncation.
  • Modules use existing path-based grouping. Distinct symbol definitions remain individually navigable.
  • Directed relationships represent exported calls. Module relationships aggregate cross-module records; internal calls remain available at symbol level. Original callsite lines are distinct from definition lines. Counts across module and symbol levels overlap and are not additive.
  • Git activity covers the existing 90-day window and represented indexed files. Structural context is call-graph-derived, not recent history. Attention labels are heuristic and file paths are sampled.
  • Hotspots rank incoming plus outgoing call-edge records. Missing relationships or cyclic groups do not prove their absence outside this snapshot.
  • Copy location copies the definition path and line; source bodies are not embedded.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +19 lines · +1 tokens per session 317224203ca1
  2. 3mo ago First seen · 31 lines · 6 tokens per session scan A 2a3e9b34d2d0

Subscribe to this mod's changes

visualize is a command published in the GitHub repository Helweg/open-codebase-index (235 stars, last pushed today), licensed MIT. It adds 7 tokens to every session and 791 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

visualize compared with commands from other repositories

visualize next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
visualizeHelweg/open-codebase-indexCommand235todayMITA7Claude Code
codesage-resetiliaal/codesageCommand22todayMITA29Claude Code
rtfm.ocrroomi-fields/rtfmCommand27yesterdayMITA15Claude Code
codesage-reindexiliaal/codesageCommand22todayMITA28Claude Code
rtfm.statusroomi-fields/rtfmCommand27yesterdayMITA16Claude Code
codesage-prompt-overrideiliaal/codesageCommand22todayMITA19Claude Code
rb-askstudy8677/repobrainCommand1.4k5d agoMITA33Claude Code