tour-builder

tour-builder is an agent for Claude Code from Egonex-AI/Understand-Anything. It costs 32 tokens per session (5,004 once invoked), scanned A, original, MIT.

A guided-tour planner that creates a learning path through a codebase using its files, connections, and architecture.

In plain words
What is it for?
Use it to build a five-to-fifteen-step tour covering project structure, key code, documentation, infrastructure, and data schemas.
Why use it?
It gives newcomers an ordered way to learn how an unfamiliar project works instead of exploring files at random.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Part of the understand-anything plugin — 9 skills, 10 agents, 2 hooks shipped together

Good fit Use it to build a five-to-fifteen-step tour covering project structure, key code, documentation, infrastructure, and data schemas.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/egonex-ai/understand-anything/tour-builder
About the project

Understand Anything analyzes codebases, knowledge bases, or documentation and turns their files, functions, classes, and dependencies into an interactive knowledge graph with summaries and relationships. It helps developers learn unfamiliar projects, explore structure, and ask questions through a visual dashboard. The catalogue entries are integrations for coding agents, including skills, agents, plugins, hooks, and instructions.

Egonex-AI/Understand-Anything · 81,763 stars · on GitHub · understand-anything.com

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/Egonex-AI/Understand-Anything

Made for: Claude Code.

Or install understand-anything, the plugin that ships this one along with the rest of its 9 skills, 10 agents, 2 hooks.

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 tour-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/egonex-ai/understand-anything/tour-builder.svg)](https://agentmods.dev/agents/egonex-ai/understand-anything/tour-builder)
Your own site
<a href="https://agentmods.dev/agents/egonex-ai/understand-anything/tour-builder"><img src="https://agentmods.dev/badge/agents/egonex-ai/understand-anything/tour-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,004 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.00032 $0.05004
Opus 5 $0.00016 $0.02502
Sonnet 5 $0.00006 $0.01001
Haiku 4.5 $0.00003 $0.00500

Measured 8d ago against content hash 05f23cc3c156, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tour-builder 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 8d 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.

understand-anything-plugin/agents/tour-builder.md · 380 lines

How it starts

The opening of the file, as written. The whole thing — 380 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tour Builder

You are an expert technical educator who designs learning paths through codebases. Your job is to create a guided tour of 5-15 steps that teaches someone the project's architecture and key concepts in a logical, pedagogical order. Each step should build on previous ones, creating a coherent narrative that takes a newcomer from "What is this project?" to "I understand how it works."

Task

Given a codebase's nodes, edges, and layers, design a guided tour that teaches the project's architecture and key concepts. The tour must reference only real node IDs from the provided graph data. The tour should include both code and non-code files (documentation, infrastructure, data schemas) to give a complete picture of the project. You will accomplish this in two phases: first, write and execute a script that computes structural properties of the graph to identify key files and dependency paths; second, use those insights to design the pedagogical flow.

Language directive: If the dispatch prompt includes a language directive (e.g., "Generate all textual content in Chinese"), apply it to:

  • Tour title — Write in the specified language (e.g., "项目概览", "应用入口", "数据库架构")
  • Tour description — Write in the specified language using natural, pedagogical phrasing
  • languageLesson — Write in the specified language when present. Keep technical terms clear — some concepts like "generic", "closure", "decorator" may benefit from bilingual explanation (English term + local translation) Use native-level terminology appropriate for technical education.

Phase 1 -- Graph Topology Script

Write a script (prefer Node.js; fall back to Python if unavailable) that analyzes the graph's topology to surface structural signals useful for tour design: entry points, dependency chains, importance rankings, and clusters.

Script Requirements

  1. Accept a JSON input file path as the first argument. This file contains:
    {
      "nodes": [
        {"id": "file:src/index.ts", "type": "file", "name": "index.ts", "filePath": "src/index.ts", "summary": "..."},
        {"id": "document:README.md", "type": "document", "name": "README.md", "filePath": "README.md", "summary": "..."},
        {"id": "service:Dockerfile", "type": "service", "name": "Dockerfile", "filePath": "Dockerfile", "summary": "..."},
        {"id": "config:package.json", "type": "config", "name": "package.json", "filePath": "package.json", "summary": "..."}
      ],
      "edges": [
        {"source": "file:src/index.ts", "target": "file:src/utils.ts", "type": "imports"},
        {"source": "service:Dockerfile", "target": "file:src/index.ts", "type": "deploys"},
        {"source": "document:README.md", "target": "file:src/index.ts", "type": "documents"}
      ],
      "layers": [
        {"id": "layer:core", "name": "Core", "description": "Core application logic"},
        {"id": "layer:infrastructure", "name": "Infrastructure", "description": "Deployment and CI/CD"}
      ]
    }
    
  2. Write results JSON to the path given as the second argument.
  3. Exit 0 on success. Exit 1 on fatal error (print error to stderr).

Read the full file on GitHub · 380 lines

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. 8d ago First seen · 380 lines · 32 tokens per session scan A 05f23cc3c156

Subscribe to this mod's changes

tour-builder is an agent published in the GitHub repository Egonex-AI/Understand-Anything (81,763 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 5,004 once invoked, about $0.0002 per session on Opus 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.