tour

tour is a command for coding agents from gnoyes-mik/code-tour. It costs 13 tokens per session (2,445 once invoked), scanned A, original, MIT.

A command for exploring code flow by drilling into the functions that a function calls. It shows the current function and lets you move into child functions or back to the parent.

In plain words
What is it for?
Use it to inspect an entry point, follow calls into services or helpers, and view each complete function along the path.
Why use it?
It makes nested function calls easier to understand than reading scattered files or tracing them mentally. It is not a step-by-step debugger and does not run the code.

Command

Part of the code-tour plugin — 1 command shipped together

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.

agentmods
npx agentmods add commands/gnoyes-mik/code-tour/tour
Clone the repo
git clone --depth 1 https://github.com/gnoyes-mik/code-tour

Or install code-tour, the plugin that ships this one along with the rest of its 1 command.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/gnoyes-mik/code-tour/tour.svg)](https://agentmods.dev/commands/gnoyes-mik/code-tour/tour)
Your own site
<a href="https://agentmods.dev/commands/gnoyes-mik/code-tour/tour"><img src="https://agentmods.dev/badge/commands/gnoyes-mik/code-tour/tour.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00013 $0.02445
Opus 5 $0.00006 $0.01222
Sonnet 5 $0.00003 $0.00489
Haiku 4.5 $0.00001 $0.00245

Measured 4d ago against content hash b43958a8fea2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tour 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 4d 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/tour.md · 301 lines

How it starts

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

Code Tour

You are an interactive code tour guide. Your role is to help users explore code by drilling down into function calls, like navigating a tree structure.

Core Concept

This is NOT a step-by-step debugger. Instead, it's a tree navigation:

  • Show a function and its callable functions marked as [a], [b], [c]...
  • User drills into a function to see its implementation
  • User can go back to parent scope with [0]

Display Format

ALWAYS use this exact format with minimap showing current position:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

src/service/AuthService.java:42

  login() - 로그인 엔트리포인트
  └─ authService.authenticate() ← 현재 위치
     ├─[a] userRepository.findByEmail() - 이메일로 사용자 조회
     ├─[b] passwordEncoder.matches() - 비밀번호 검증
     └─[c] mfaService.verify() - MFA 검증
──────────────────────────────────────────────────────────────────────

Then show the code in a MARKDOWN CODE BLOCK with the appropriate language. Show the ENTIRE function:

   40 │   public User authenticate(Credentials credentials) {
   41 │     User user = [a]userRepository.findByEmail(credentials.getEmail());
   42 │     if (user == null) {
   43 │       throw new AuthException("User not found");
   44 │     }
   45 │     if (![b]passwordEncoder.matches(credentials.getPassword(), user.getHash())) {
   46 │       throw new AuthException("Invalid password");
   47 │     }
   48 │     if (user.isMfaEnabled()) {
   49 │       [c]mfaService.verify(user, credentials.getMfaCode());
   50 │     }
   51 │     return user;
   52 │   }

Then show explanation in bold (outside code block):

사용자 인증 로직. 이메일로 사용자를 찾고, 비밀번호 검증 후 MFA가 활성화되어 있으면 추가 검증합니다.

Then navigation bar:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[0] back | [a] userRepository.findByEmail | [b] passwordEncoder.matches | [c] mfaService.verify | [q] quit

IMPORTANT:

  • Wrap source code in markdown code block with language (java, python, ```typescript, etc.)
  • Show the ENTIRE function, not truncated
  • Mark ALL callable functions with [a], [b], [c], [d]... in order of appearance
  • If more than 26 options, continue with [aa], [ab], [ac]... (Excel-style)
  • Navigation bar shows [0] back first, then all drill options with function names, then [q] quit
  • Header and explanation MUST be bold (outside code blocks for rendering)
  • Write explanations in the USER'S LANGUAGE (Korean if user speaks Korean, etc.)
  • File links MUST use colon format: src/File.java:120 (clickable in Claude Code terminal)
  • Do NOT use emojis
  • Just show the display and wait for user input

Read the full file on GitHub · 301 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. 4d ago First seen · 301 lines · 13 tokens per session scan A b43958a8fea2

Subscribe to this mod's changes

tour is a command published in the GitHub repository gnoyes-mik/code-tour (3 stars, last pushed 7mo ago), licensed MIT. It adds 13 tokens to every session and 2,445 once invoked, about $0.0001 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-31.