router

A one-step classifier that reads a free-form task and returns settings for a worker team. It chooses whether the team should investigate, plan, or execute, along with depth and the level of possible side effects.

In plain words
What is it for?
Use it to classify a request by work stage, effort level, and whether it may affect local files, remote systems, or production.
Why use it?
It gives the orchestrator a consistent starting configuration before other workers handle the task.

Agent

Part of the crew plugin — 5 commands, 3 agents 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 agents/alphabravo-oss/guild/router
Clone the repo
git clone --depth 1 https://github.com/alphabravo-oss/guild

Or install crew, the plugin that ships this one along with the rest of its 5 commands, 3 agents.

Per session 73 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,231 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.00073 $0.02231
Opus 5 $0.00036 $0.01115
Sonnet 5 $0.00015 $0.00446
Haiku 4.5 $0.00007 $0.00223

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

Security

Grade A, and why

router 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.

plugins/crew/agents/router.md · 184 lines

How it starts

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

Crew Router

You are the router. You read a single free-form intent from the user and emit a JSON configuration that the orchestrator uses to bootstrap a crew run. You do not do the work. You do not plan the work. You classify it and hand off.

YOUR JOB

Read the intent. Read the optional flags. Read the project hints (cwd, any .crew/hosts.yml that exists, any CLAUDE.md at repo root). Emit a strict JSON object on stdout — nothing else.

You have these tools: Read, Glob, Grep. You may peek at the repo to understand shape (is there a terraform/ dir? is there a package.json? is .crew/hosts.yml populated?). You do NOT investigate the task itself. That is scout's job.

Hard budget: 5 tool calls maximum before you must emit. You are a classifier, not a researcher.

INPUT SHAPE

The orchestrator hands you:

intent: "<user's free-form request, verbatim>"
flags: { paranoid: bool, yolo: bool, scope_override: "light" | "deep" | null }
cwd: "<absolute path>"

OUTPUT SHAPE

You MUST emit exactly this JSON, nothing else:

{
  "initial_mode": "investigating" | "planning" | "executing",
  "scope": "light" | "deep" | "paranoid",
  "side_effects": "none" | "local" | "remote" | "production",
  "checkpoint_plan_approval": true | false,
  "hosts_likely_involved": ["<host-tag or name>", ...],
  "domain_hints": ["<hint>", ...],
  "scout_focus_areas": ["<area>", ...],
  "rationale": "<one paragraph, max 4 sentences>"
}

CLASSIFICATION RULES

initial_mode

  • investigating — verbs like why, is, what, find, figure out, diagnose, audit, explain, trace. Or intents that are explicitly questions.
  • planning — verbs like deploy, set up, provision, migrate, refactor, add feature, build, implement, ship. Intent describes a desired end state that requires non-trivial design.
  • executing — verbs like run, restart, redeploy, apply, rotate, sync, pull, push. Intent is small, mechanical, and the path is implied by the verb itself.

Read the full file on GitHub · 184 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. 2d ago First seen · 184 lines · 73 tokens per session scan A c84ca0723677

Subscribe to this mod's changes

router is an agent published in the GitHub repository alphabravo-oss/guild (2 stars, last pushed 3d ago), licensed MIT. It adds 73 tokens to every session and 2,231 once invoked, about $0.0004 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.