Visual Documentation for Bundle Repos
See what’s in your bundle, how pieces compose, and what they cost
Which behaviors are available? What agents can you delegate to? Opening individual YAML files gives you parts — never the whole picture.
What references what? Which tools belong to which behavior? Which context files load per-request? No inventory exists.
Context files burning tokens on every LLM request. Tool schemas inflating payloads. Completely invisible from reading source files.
bundle.dot generates a complete visual map of any bundle repository —
every component grouped by category, with composition edges showing how they relate.
composes · owns · uses · extends
Every relationship made explicit — which behavior owns which agent, which tool module is used where.
Every node shows its per-request token impact. Context files, tool schemas, agent descriptions — the real cost of your bundle, visible at a glance.
The recipes bundle diagram immediately revealed that EXAMPLES_CATALOG.md (~7,400 tokens)
was being eagerly loaded on every LLM request.
That’s 72% of the per-request budget —
completely invisible from reading YAML files.
One-line fix. Invisible without the diagram.
bundle_repo_dot() finds everything — matching validate-bundle-repo Phase 1
Structural DOT with token costs, composition edges, and external distinction
LLM refines labels for accessibility — preserving all numerical data
Graphviz renders the PNG from the DOT source
source_hash detects staleness — auto-regenerated on change
Local to this repo. Token costs are counted and displayed on the node.
External dependency with cost impact not counted in local estimates. These are the hidden surprises.
External reference with no per-request token impact.
Token estimates use ~4 chars/token heuristic. Excludes sub-session costs and runtime-dynamic content.
“A diagram earns its existence by revealing structure that is invisible in the source format.”
Produces bundle.dot + bundle.png at the repo root
Works on any Amplifier bundle repository · Auto-regenerates when stale