ROUTING

ROUTING is an agent for Claude Code from marcusgoll/Spec-Flow. It costs 0 tokens per session (1,797 once invoked), scanned A, original, MIT.

A routing guide that tells the workflow which kind of coding agent should handle a task. It distinguishes planning phases, ordinary implementation, and specialised sprint work such as backend, frontend, database, or testing.

In plain words
What is it for?
Use it to choose agents for specifications, clarification, planning, implementation, backend work, frontend work, database work, and testing.
Why use it?
It prevents work from being sent to the wrong type of agent and explains when shared project memory or a specialist is required.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to choose agents for specifications, clarification, planning, implementation, backend work, frontend work, database work, and testing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/marcusgoll/spec-flow/routing
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/marcusgoll/Spec-Flow

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 ROUTING

README.md
[![agentmods](https://agentmods.dev/badge/agents/marcusgoll/spec-flow/routing/github.svg)](https://agentmods.dev/agents/marcusgoll/spec-flow/routing)
Your own site
<a href="https://agentmods.dev/agents/marcusgoll/spec-flow/routing"><img src="https://agentmods.dev/badge/agents/marcusgoll/spec-flow/routing/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 ROUTING

Your own site · 80×15
<a href="https://agentmods.dev/agents/marcusgoll/spec-flow/routing"><img src="https://agentmods.dev/badge/agents/marcusgoll/spec-flow/routing.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 1,797 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.00000 $0.01797
Opus 5.5 $0.00000 $0.00719
Sonnet 5.5 $0.00000 $0.00359
Haiku 4.5 $0.00000 $0.00180

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

Security

Grade A, and why

ROUTING 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 1mo 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/ROUTING.md · 228 lines

How it starts

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

Agent Routing Guide

When to use which agent for implementation work

Quick Decision Tree

Is this a workflow phase (spec, plan, tasks, optimize, ship)?
├── Yes → Use PHASE AGENT (spec-agent, plan-agent, etc.)
└── No → Continue...

Is domain-memory.yaml present?
├── Yes → Use WORKER (domain/worker.md)
│         Worker reads domain memory, picks ONE feature, implements, exits
└── No → Continue...

Is this sprint-level work in an epic?
├── Yes → Use SPECIALIST based on sprint domain:
│         • Backend-only sprint → backend-dev
│         • Frontend-only sprint → frontend-dev
│         • Database sprint → database-architect
│         • Testing sprint → qa-test
│         • Mixed/unclear → general-purpose
└── No → Use WORKER with initialized domain memory

Agent Categories

1. Phase Agents (Workflow Orchestration)

Location: .claude/agents/phase/*-agent.md

When to use: Always spawned by orchestrator commands (/feature, /epic), never directly.

Agent Spawned By Purpose
spec-agent /feature, /epic Generate specification
clarify-agent /clarify Resolve ambiguities
plan-agent /plan Create implementation plan
tasks-agent /tasks Break down into TDD tasks
optimize-agent /optimize Run quality gates
ship-agent /ship Handle deployment
finalize-agent /finalize Archive and document

Key trait: Return structured results (---COMPLETED---, ---NEEDS_INPUT---, ---FAILED---)

2. Worker Agent (Atomic Implementation)

Location: .claude/agents/domain/worker.md

When to use:

  • domain-memory.yaml exists in feature/sprint directory
  • Implementing individual features from a backlog
  • Default for /implement phase

How it works:

  1. Reads domain-memory.yaml
  2. Picks ONE failing/untested feature
  3. Implements with TDD
  4. Updates domain-memory.yaml
  5. Commits and EXITs (even if more work remains)

Key trait: Atomic, stateless, disciplined. Never works on more than one feature.

Read the full file on GitHub · 228 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. 1mo ago First seen · 228 lines · 0 tokens per session scan A 5dfb50344e9c

Subscribe to this mod's changes

ROUTING is an agent published in the GitHub repository marcusgoll/Spec-Flow (96 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,797 tokens. 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-30.