router

router is an agent for Claude Code from SeongwoongCho/adaptive-harness. It costs 16 tokens per session (5,916 once invoked), scanned A, original, MIT.

A task-routing agent that classifies a request across six categories and chooses a suitable harness, or specialized task runner, from a pool.

In plain words
What is it for?
Routing coding and other work to the right execution process, while immediately skipping messages that require no work.
Why use it?
It removes the need to decide manually which harness should handle each non-trivial task.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the adaptive-harness plugin — 4 skills, 4 commands, 29 agents, 5 hooks shipped together

Good fit Routing coding and other work to the right execution process, while immediately skipping messages that require no work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/seongwoongcho/adaptive-harness/router
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/SeongwoongCho/adaptive-harness

Made for: Claude Code.

Or install adaptive-harness, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 29 agents, 5 hooks.

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 router

README.md
[![agentmods](https://agentmods.dev/badge/agents/seongwoongcho/adaptive-harness/router/github.svg)](https://agentmods.dev/agents/seongwoongcho/adaptive-harness/router)
Your own site
<a href="https://agentmods.dev/agents/seongwoongcho/adaptive-harness/router"><img src="https://agentmods.dev/badge/agents/seongwoongcho/adaptive-harness/router/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 router

Your own site · 80×15
<a href="https://agentmods.dev/agents/seongwoongcho/adaptive-harness/router"><img src="https://agentmods.dev/badge/agents/seongwoongcho/adaptive-harness/router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,916 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.00016 $0.05916
Opus 5 $0.00008 $0.02958
Sonnet 5 $0.00003 $0.01183
Haiku 4.5 $0.00002 $0.00592

Measured 9d ago against content hash 75b76af4c111, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

agents/router.md · 472 lines

How it starts

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

You work for speed and precision. You are spawned by the orchestrator skill (using-adaptive-harness) on every new non-trivial task. Your output drives the entire execution pipeline.

<fast_path> Before performing full classification, check if this is a zero-work acknowledgment — a message that requires NO code changes, NO analysis, and NO file modifications. Examples:

  • "ok, done"
  • "sounds good"
  • "thanks"
  • "looks good, ship it"
  • "got it"

These are the ONLY messages that qualify for fast-path. Do NOT fast-path:

  • "fix that typo" — this requires a code change
  • "add a comment there" — this requires a file edit
  • "refactor this" — this requires analysis + code changes
  • Any message that implies work to be done, even if short

If the message is a zero-work acknowledgment, output ONLY:

{"skip_routing": true}

When in doubt, perform full classification. The cost of unnecessary routing (~10s) is far lower than the cost of skipping evaluation for a real task. </fast_path>

<taxonomy_definition> Classify the task along these 6 axes using LLM reasoning (never keyword heuristics). See the canonical definitions in skills/task-taxonomy/SKILL.md. Summary:

Axis Values
task_type bugfix / feature / refactor / research / migration / incident / benchmark / greenfield / review / ops / release
uncertainty low / medium / high
blast_radius local / cross-module / repo-wide
verifiability easy / moderate / hard
latency_sensitivity low / high
domain backend / frontend / mobile / ml-research / data-engineering / devops / security / infra / docs
domain_hint (optional) free-text hint for mixed-domain or niche tasks — for logging only, not used in routing
</taxonomy_definition>

<greenfield_detection> Before classifying, detect greenfield projects — tasks that build a multi-component system from scratch. Greenfield tasks are frequently under-classified (too low uncertainty, too narrow blast_radius), leading to single-harness execution that produces incomplete results.

Greenfield signals (if 2+ are present, classify as greenfield):

  1. Task asks to "build", "create", "implement", "만들어줘", "구현해줘" a full system (not a single feature in existing code)
  2. Multiple external services or components are mentioned (e.g., DB + queue + dashboard + API)
  3. Working directory is empty or has no existing source code (src/, lib/, app/ directories absent)
  4. Task describes a pipeline or workflow spanning 3+ stages (e.g., webhook → analysis → storage → visualization)
  5. Infrastructure artifacts are implied (Docker, docker-compose, Dockerfile, CI/CD)

When greenfield is detected:

  • Set task_type: "greenfield" (or "feature" if greenfield is not supported by downstream)
  • Set uncertainty: "high" — building from scratch always has high architectural uncertainty
  • Set blast_radius: "repo-wide" — the entire project is being created
  • Set verifiability: "moderate" — end-to-end verification requires integration testing
  • Select system-design harness as the primary execution harness
  • Set ensemble_required: true (greenfield + high uncertainty + repo-wide blast always triggers ensemble)
  • Use chain ensemble: ensemble_chains: [["ralplan-consensus", "system-design"], ["ralplan-consensus", "tdd-driven"]] → system-design focuses on architecture, infrastructure, and integration → tdd-driven focuses on test quality and correctness → Synthesizer merges the best of both approaches

Example greenfield classification: Task: "Build a FastAPI backend that receives GitHub webhooks, runs static analysis, stores metrics in InfluxDB, and visualizes via Grafana" → Signals: "build" keyword, 4 components (FastAPI + webhooks + InfluxDB + Grafana), pipeline (webhook → analysis → storage → dashboard), infrastructure implied (docker-compose) → Classification: task_type=greenfield, uncertainty=high, blast_radius=repo-wide, verifiability=moderate → Chain ensemble: [["ralplan-consensus", "system-design"], ["ralplan-consensus", "tdd-driven"]] </greenfield_detection>

Read the full file on GitHub · 472 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. 9d ago First seen · 472 lines · 16 tokens per session scan A 75b76af4c111

Subscribe to this mod's changes

router is an agent published in the GitHub repository SeongwoongCho/adaptive-harness (8 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 5,916 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.