route-eval

route-eval is a command for Claude Code from alinaqi/maggy. It costs 0 tokens per session (900 once invoked), scanned A, original, MIT.

A command that examines a project's structure and past model-routing history, then recommends how different tasks should be assigned to AI models. Its project profile is stored privately on the developer's machine.

In plain words
What is it for?
Previewing or showing a routing profile, choosing a cheaper default model for simple work, and sending security-sensitive files to a more capable model.
Why use it?
It helps balance model cost and speed with the need for more capable review of sensitive or risky code.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions Codex.

Good fit Previewing or showing a routing profile, choosing a cheaper default model for simple work, and sending security-sensitive files to a more capable model.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alinaqi/maggy/route-eval
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/alinaqi/maggy

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 route-eval

README.md
[![agentmods](https://agentmods.dev/badge/commands/alinaqi/maggy/route-eval/github.svg)](https://agentmods.dev/commands/alinaqi/maggy/route-eval)
Your own site
<a href="https://agentmods.dev/commands/alinaqi/maggy/route-eval"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/route-eval/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 route-eval

Your own site · 80×15
<a href="https://agentmods.dev/commands/alinaqi/maggy/route-eval"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/route-eval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.00900
Opus 5.5 $0.00000 $0.00360
Sonnet 5.5 $0.00000 $0.00180
Haiku 4.5 $0.00000 $0.00090

Measured 3d ago against content hash 1f77ce9871ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

route-eval scanned grade A with 1 finding 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 3d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

BOOTSTRAP_DIR="$(cat ~/.claude/.bootstrap-dir)"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

commands/route-eval.md · 92 lines

How it starts

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

/route-eval — Evaluate a project and set its routing profile

Analyze the current project's structure and your past routing history, then recommend a per-project routing profile — e.g. a small, low-risk project can send everything through one cheap model (like glm-5.2), while security-sensitive files always escalate to Claude.

The profile is stored privately, per-machine at ~/.claude/projects/<encoded-cwd>/routing.yaml (never committed) and overrides the global ~/.maggy/routing.yaml for work in this project. It stays fully hand-editable.


Usage

/route-eval — evaluate + show a recommendation, write only after you confirm /route-eval show — print the project's current profile (if any) /route-eval --model <id> — use a different cheap default for the simple profile


Steps

Resolve the Maggy package from the bootstrap pointer and evaluate:

BOOTSTRAP_DIR="$(cat ~/.claude/.bootstrap-dir)"
RUN="PYTHONPATH=$BOOTSTRAP_DIR/maggy python3 -m maggy.route_eval"

1. Evaluate + recommend (default; never writes)

eval "$RUN plan --cwd \"$(pwd)\" --model glm-5.2"

Present the JSON to the user in plain language:

  • profile — simple (one cheap model), balanced (complexity ladder), or critical (security surface / large repo → premium tiers).
  • default_model — the model everything routes to under simple.
  • escalate_paths — globs that always jump to Claude (auth/payments/billing).
  • _meta.evidence — why this profile: file count, languages, security surface, and the dominant tier in your routing history.

Explain the trade-off in one line (cost vs. safety), then ask: write this profile?

2. Write it (only on explicit confirmation)

eval "$RUN apply --cwd \"$(pwd)\" --model glm-5.2"

Report the written path and remind the user it is private (not committed) and can be edited by hand — profile, default model, and escalation rules are all adjustable.

3. Show the current profile

Read the full file on GitHub · 92 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. 3d ago Changed · -5 lines 1f77ce9871ca
  2. 3mo ago First seen · 97 lines · 0 tokens per session scan A 0fcdaa98d1bd

Subscribe to this mod's changes

route-eval is a command published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 900 tokens. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

route-eval compared with commands from other repositories

route-eval next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
route-evalalinaqi/maggyCommand7133d agoMITA0Claude Code
promptnonlinear-xyz/factory-kitCommand106d agoMITA18Claude Code
data-pipelinechristopherlouet/claude-baseCommand515d agoMITA0Claude Code
ccc-python-reviewKevinZai/commanderCommand6yesterdayMITA48Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code