agent-routing

agent-routing is a skill for Claude Code from sefaertunc/Worclaude. It costs 10 tokens per session (1,928 once invoked), scanned A, original, MIT.

A guide that maps tasks to installed specialist agents, which are separate processes that can handle focused work. It also explains when agents may run in parallel and how isolated worktrees keep changes separate.

In plain words
What is it for?
Use it at the start of a session to decide whether to delegate a task, select an agent, and understand the limits on concurrent agents and shared files.
Why use it?
It helps choose the right agent and avoid conflicts when several agents or the main session work at the same time.

Skill for Claude Code

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

Good fit Use it at the start of a session to decide whether to delegate a task, select an agent, and understand the limits on concurrent agents and shared files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sefaertunc/worclaude/agent-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.

Any agent
npx skills add sefaertunc/Worclaude --skill agent-routing
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sefaertunc/worclaude/agent-routing.svg)](https://agentmods.dev/skills/sefaertunc/worclaude/agent-routing)
Your own site
<a href="https://agentmods.dev/skills/sefaertunc/worclaude/agent-routing"><img src="https://agentmods.dev/badge/skills/sefaertunc/worclaude/agent-routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,928 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.00010 $0.01928
Opus 5 $0.00005 $0.00964
Sonnet 5 $0.00002 $0.00386
Haiku 4.5 $0.00001 $0.00193

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

Security

Grade A, and why

agent-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 7d 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/skills/agent-routing/SKILL.md · 170 lines

How it starts

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

Agent Routing Guide

Read this file at the start of every session. It tells you which agents are available and when to use them.

How Agents Work

  • Agents are specialist subprocesses. Spawn them to keep your main context clean.
  • Worktree agents run in isolation — safe to run in parallel with your work.
  • Non-worktree agents share your context — don't edit the same files they're reading.
  • Never spawn more than 3 agents simultaneously.
  • If a task is small enough to do yourself in 2 minutes, don't spawn an agent for it.

Background-Agent Concurrency

Two background agents on the same branch coexist cleanly:

  • Worktree-isolated agents (isolation: "worktree") each create their own sibling worktree off origin/HEAD. They never collide on files, refs, or the index — running multiple in parallel is safe by design.
  • Non-isolated agents share the main checkout but are read-only by convention. The main session and these agents must avoid editing the same files concurrently; otherwise behavior is up to whoever writes last.

Worktree lock semantics: Claude Code locks each agent worktree with the agent's pid; the lock survives agent completion. Stale locks are normal. Clean up with git worktree remove -f -f <path> or the project's worktree-cleanup helper.

The earlier "lock file per branch" plan was rejected after the 2026-04-26 concurrency test — worktree isolation already provides the guarantee a lock file would have, and a lock would block the legitimate parallel-agents case.


Automatic Triggers

These agents should be spawned without being asked when their trigger condition is met.

build-validator

  • Model: Haiku | Isolation: None
  • When: Before every commit. After merging worktree branches.
  • Trigger: Automatic — spawn when trigger condition is met
  • What it does: Quick validation — tests pass, build succeeds, lint clean. Fast and cheap (Haiku model).
  • Expect back: Pass/fail with specific errors if failed.

Read the full file on GitHub · 170 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. 7d ago First seen · 170 lines · 10 tokens per session scan A 1d8beec18ad0

Subscribe to this mod's changes

agent-routing is a skill published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 28d ago), licensed MIT. It adds 10 tokens to every session and 1,928 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.

Related

Other skills, from other repositories

unicli-repair

Evidence-driven repair workflow for a broken Uni-CLI adapter. Trigger on a failed unicli envelope, a quarantined adapter, or an explicit adapter-repair request. Classifies non-source failures, edits only the reported adapter path, and uses the original command as a bounded oracle.

olo-dot-io/Uni-CLI · 68 tokens

autonomous-run

Prepare, start, inspect, resume, or stop a finite local overnight coding run after a human has accepted a Wayfinder terminal spec; coordinates a declared Claude/Codex maker and independent checker without pushing, merging, or writing to external systems.

PromptPartner/agentsmith · 53 tokens

authentication-patterns

OAuth 2.0, JWT, SSO, MFA, NextAuth/Clerk/Supabase Auth implementation patterns.

travisjneuman/.claude · 28 tokens

case-interview-practice

Interactive consulting case interview practice with structured frameworks, feedback mechanisms, and progressive difficulty. Use when preparing for management consulting interviews, case competitions, or business problem-solving exercises.

travisjneuman/.claude · 39 tokens

i18n-localization

Internationalization and localization for global applications. Use when adding multi-language support, handling regional formats, or preparing apps for global markets.

travisjneuman/.claude · 32 tokens

electron-desktop

Desktop application development with Electron for Windows, macOS, and Linux. Use when building cross-platform desktop apps, implementing native OS features, or packaging web apps for desktop.

travisjneuman/.claude · 38 tokens