tokyo-transit-mcp: Agent for Claude Code

.claude/agents/bus-data.md

bus-data is an agent for Claude Code from loosephoto/tokyo-transit-mcp. It costs 53 tokens per session (503 once invoked), scanned A, original, MIT.

A coding agent for adding and correcting bus and community-bus data, including stops, routes, connections, and low-floor bus information.

In plain words
What is it for?
Adding bus stops and routes, changing bus search or cross-transport connection logic, and running syntax checks and deterministic regression probes.
Why use it?
It keeps bus-related data and search logic in the files that own them, while preventing unrelated transport files from being changed. It also avoids silently guessing when a stop name is ambiguous.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is loosephoto/tokyo-transit-mcp's own configuration. It tells Claude Code how to work on tokyo-transit-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tokyo-transit-mcp configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/probe-bus-transfer-lang.mjs.

Reuse

Borrowing it

Nothing to install: this file belongs to loosephoto/tokyo-transit-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/loosephoto/tokyo-transit-mcp/main/.claude/agents/bus-data.md
Clone the repo
git clone --depth 1 https://github.com/loosephoto/tokyo-transit-mcp

Made for: Claude Code.

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 bus-data

README.md
[![agentmods](https://agentmods.dev/badge/agents/loosephoto/tokyo-transit-mcp/bus-data/github.svg)](https://agentmods.dev/agents/loosephoto/tokyo-transit-mcp/bus-data)
Your own site
<a href="https://agentmods.dev/agents/loosephoto/tokyo-transit-mcp/bus-data"><img src="https://agentmods.dev/badge/agents/loosephoto/tokyo-transit-mcp/bus-data/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 bus-data

Your own site · 80×15
<a href="https://agentmods.dev/agents/loosephoto/tokyo-transit-mcp/bus-data"><img src="https://agentmods.dev/badge/agents/loosephoto/tokyo-transit-mcp/bus-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 503 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.00053 $0.00503
Opus 5 $0.00026 $0.00251
Sonnet 5 $0.00011 $0.00101
Haiku 4.5 $0.00005 $0.00050

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

Security

Grade A, and why

bus-data 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 9d 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.

.claude/agents/bus-data.md · 31 lines

What it actually says

バスデータエージェント

src/data/ のバス・コミュニティバスデータと src/handlers/bus.mjs を所有する。駅名・路線グラフ・ランドマーク・フェリーのファイルには触れないこと。

所有ファイル

  • src/data/bus-routes.mjs — コミュニティバス名・バス停・系統データ
  • src/handlers/bus.mjs — バス検索・横断乗り継ぎロジック
  • scripts/test-bus-* / scripts/probe-bus-* — バス回帰テスト

実行手順

  1. バス停・系統データを bus-routes.mjs に追加
  2. ロジック変更時は bus.mjs を編集
  3. 検証を実行:
    node --check src/data/bus-routes.mjs && node --check src/handlers/bus.mjs
    node scripts/probe-bus-transfer-lang.mjs
    node scripts/probe-bus-vehicle-mock.mjs   # 決定的モック(実API非依存)
    
    test:bus は実APIプローブで遅くAPI障害でflaky。並行検証では決定的モックを優先

注意

  • バス停名が曖昧(複数候補)な場合は**サイレント推測を嫌い、検索中断+候補提示(disambiguation)**を維持。
  • 部分一致は前方一致のみ。完全一致→前方一致→包含の順で一意のみ解決。
  • バス⇔電車⇔バス横断乗り継ぎのロジック変更時は回帰テストを必ず実行。
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. 9d ago First seen · 31 lines · 53 tokens per session scan A ff6cc786f428

Subscribe to this mod's changes

bus-data is an agent published in the GitHub repository loosephoto/tokyo-transit-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 503 once invoked, about $0.0003 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.