route

A change-routing command that examines the files being modified and decides how much checking the work needs, including which agents and model to use.

In plain words
What is it for?
Use it before coding or reviewing a change to inspect touched files and select the required validation effort, model, and agents.
Why use it?
It prevents validation from being chosen casually when a change is under time pressure. It also makes the decision and its matching signals visible.

Command

Part of the claude-code-engineering plugin — 47 skills, 1 command, 8 agents, 1 hook 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/everywan-dev/claude-code-engineering/route
Clone the repo
git clone --depth 1 https://github.com/everywan-dev/claude-code-engineering

Or install claude-code-engineering, the plugin that ships this one along with the rest of its 47 skills, 1 command, 8 agents, 1 hook.

Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 743 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.00014 $0.00743
Opus 5 $0.00007 $0.00371
Sonnet 5 $0.00003 $0.00149
Haiku 4.5 $0.00001 $0.00074

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

Security

Grade A, and why

route 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 2d 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/route.md · 62 lines

What it actually says

Decide how much validation the user's change deserves, before they are under pressure to say "not much".

$ARGUMENTS is what they are about to do, in their own words. If it is empty, describe the current change from the working tree instead.

Follow these steps precisely:

  1. Work out which files the change touches. If the user named files, use those. Otherwise run git diff --name-only HEAD and git status --porcelain and use the paths from both — staged, unstaged and untracked. If the working tree is clean and $ARGUMENTS is empty, ask what they are about to do and stop.

  2. Run the router, passing every touched file with its own --path. Prefer the console script; fall back to the module form, which is what works from an installed plugin where the CLI is not on the PATH:

    validated-memory route "$ARGUMENTS" --path FILE [--path FILE ...]
    # or
    PYTHONPATH="${CLAUDE_PLUGIN_ROOT}" python3 -m validated_memory route "$ARGUMENTS" --path FILE [...]
    
  3. Report its answer verbatim first. The level, the matched signals, the model, the effort and the agents. Do not paraphrase and do not soften it. The value of this command is that the reasoning is visible, so the user can disagree with a specific signal rather than with a verdict.

  4. If it reports that no signal matched, say so plainly and explain that the level 2 answer is the safe direction rather than a reading of their change. Then ask whether it touches authentication, permissions, money, customer data, migrations, network rules or certificates — and if it does, re-run with that said explicitly in the description.

  5. Do not argue the level down. If the user thinks it is too high, the way to change the answer is to change the description or the signal list, both of which are visible and editable. Negotiating the number in conversation is the exact failure this command exists to prevent.

  6. Then say what happens next, concretely:

    • Level 1 — one review. Name which of the two agents fits.
    • Level 2 — two independent reviews. State plainly that the agent or person who implemented it is not one of the two, and that reviewing one's own work a second time does not count.
    • Level 3 — three, and one of them has to actively try to break the change. Approving is not the devil's advocate's job.
  7. Offer the matching skill for what they are about to do, using pick-the-right-skill if nothing obvious fits. For level 3 specifically, map-the-attack-surface and write-the-rollback-plan-first are almost always worth reading before starting.

Keep the whole response short. This command answers one question; it is not a review, and it never gates anything — it exits 0 by design.

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. 2d ago First seen · 62 lines · 14 tokens per session scan A 582dc24a2117

Subscribe to this mod's changes

route is a command published in the GitHub repository everywan-dev/claude-code-engineering (2 stars, last pushed 14d ago), licensed Apache-2.0. It adds 14 tokens to every session and 743 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.