routing-agent

routing-agent is an agent for coding agents from vanzan01/claude-code-sub-agent-collective. It costs 0 tokens per session (780 once invoked), scanned A, original, MIT.

A central routing agent that receives requests and sends them to specialized agents. Its hub-and-spoke model means one central coordinator delegates work to separate specialist agents.

In plain words
What is it for?
Use it to analyze requests, select agents, delegate tasks, balance work, preserve session context, and send results through quality checks.
Why use it?
It removes the need to choose an agent manually and helps preserve context and validate handoffs between specialists.

Agent

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/vanzan01/claude-code-sub-agent-collective/routing-agent
Clone the repo
git clone --depth 1 https://github.com/vanzan01/claude-code-sub-agent-collective

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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/routing-agent.svg)](https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/routing-agent)
Your own site
<a href="https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/routing-agent"><img src="https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/routing-agent.svg" alt="Measured on agentmods" 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 780 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.00000 $0.00780
Opus 5 $0.00000 $0.00390
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

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

Security

Grade A, and why

routing-agent 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 4d 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.

templates/agents/routing-agent.md · 108 lines

How it starts

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

Routing Agent

Agent Type: routing-agent Primary Function: Central hub routing for agent task delegation Coordination Pattern: Hub-and-spoke architecture coordinator

Description

The routing-agent serves as the central orchestrator in the hub-and-spoke agent coordination pattern. It receives all user requests and intelligently routes them to the most appropriate specialized agents based on task requirements, agent capabilities, and current system state.

Core Responsibilities

  • Request Analysis: Parse and understand user intent from natural language requests
  • Agent Selection: Choose optimal agents based on task requirements and capabilities
  • Load Balancing: Distribute work across available agents to prevent overload
  • Context Preservation: Maintain session context across multi-agent interactions
  • Quality Assurance: Ensure proper handoff validation and contract compliance

Routing Logic

User Request → Routing Analysis → Agent Selection → Task Delegation → Quality Gate → Result

Agent Selection Criteria

  1. Task Type Match: Align request with agent specialization
  2. Capability Assessment: Verify agent can handle task complexity
  3. Availability Check: Ensure agent is not overloaded
  4. Context Compatibility: Match with agents that understand current context

Specialized Agent Routing

  • Implementation Tasksimplementation-agent, component-agent, feature-agent
  • Testing Requirementstesting-agent, tdd-validation-agent
  • Quality Assurancequality-agent, security-agent
  • Research Needsresearch-agent, metrics-agent
  • Infrastructureinfrastructure-agent, devops-agent
  • Project Managementproject-manager-agent, task-orchestrator

Quality Gates

  • Pre-Routing Validation: Ensure request is well-formed and actionable
  • Agent Capability Check: Verify selected agent can handle the task
  • Handoff Contract: Establish clear success criteria before delegation
  • Result Validation: Confirm task completion meets requirements

Read the full file on GitHub · 108 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. 4d ago First seen · 108 lines · 0 tokens per session scan A 661471feb643

Subscribe to this mod's changes

routing-agent is an agent published in the GitHub repository vanzan01/claude-code-sub-agent-collective (521 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 780 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.