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.
git clone --depth 1 https://github.com/Helweg/open-codebase-indexWrote 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.
[](https://agentmods.dev/commands/helweg/open-codebase-index/visualize)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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=Nor "limit N" → sets maxNodesorphansorinclude-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/toolsornative. - 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.
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.
- 1mo ago Changed · +19 lines · +1 tokens per session 317224203ca1
- 3mo ago First seen · 31 lines · 6 tokens per session scan A 2a3e9b34d2d0
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.
visualize compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| visualizeHelweg/open-codebase-index | Command | 235 | today | MIT | A | 7 | Claude Code |
| codesage-resetiliaal/codesage | Command | 22 | today | MIT | A | 29 | Claude Code |
| rtfm.ocrroomi-fields/rtfm | Command | 27 | yesterday | MIT | A | 15 | Claude Code |
| codesage-reindexiliaal/codesage | Command | 22 | today | MIT | A | 28 | Claude Code |
| rtfm.statusroomi-fields/rtfm | Command | 27 | yesterday | MIT | A | 16 | Claude Code |
| codesage-prompt-overrideiliaal/codesage | Command | 22 | today | MIT | A | 19 | Claude Code |
| rb-askstudy8677/repobrain | Command | 1.4k | 5d ago | MIT | A | 33 | Claude Code |