model-routing
Skill2 starsChanged 47 days agoMITView on GitHub
Decide which model owns which task and when to escalate: give the cheap tier the legwork, keep planning and final review with the expensive one, and protect the driver's context. Symptoms: do this cheaply, which model should do this, delegate the legwork, we're burning tokens, this is too big for one context, set up / switch / inspect / clear a routing profile.
30 other projects use a version of this.
Adopted by
Most recently taken up by
- cveralyon/axel-setuptheir own version, first seen Nov 8, 2026
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- weedmo/skillstheir own version, first seen Nov 8, 2026
- naman10parikh/wikimemtheir own version, first seen Nov 8, 2026
- fal-ai-community/skillstheir own version, first seen Nov 7, 2026
- ArcReel/ArcReeltheir own version, first seen Nov 1, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
KirchliveSkillskill-routing
Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.
Also in 5 projects that use this
sublimotionSkillagent-runtime
Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).
Also in 5 projects that use this
GoZippySkillrepo-scout
Also in 5 projects that use this
BenjaminGSkillharness-review
Turn one PR's review comments into harness fixes — classify each cause by the most solid place it can live (codebase, lint, rules, skill), then draft the fixes in a separate PR.
Also in 5 projects that use this
- +6 more from naman10parikh
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- ArcReel/ArcReel★ 6.3ksame name
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- fal-ai-community/skills★ 265same name
- NoobyGains/godmode★ 118same name
- nahid-sparktales/agent-dispatcher★ 59same name
- echo-of-machines/fable-advisor★ 27same name
- frankxai/agentic-creator-os★ 10same name
- FaisalAlqarni/sp-ecc★ 9same name
- naman10parikh/agentgrid★ 9same name
20 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- agent-lifecycleSkill
- analyse-ticketSkill
- blast-areaSkill
- blocksSkill
- codex-review-loopSkill
- coding-teacherSkill
- decision-journalSkill
- delphi-groundSkill
- delphi-imagineSkill
- derive-codebase-contextSkill
- describe-changesSkill
- github-webhooksSkill
- handoff-promptSkill
- implement-ticketSkill
- investigate-codebaseSkill
- isolated-change-validationSkill
- land-complex-changeSkill
- layer-repository-docsSkill
- mine-session-transcriptsSkill
- new-ux-discoverySkill
- onboard-projectSkill
- preregistered-model-studySkill
- promote-releaseSkill
- publish-agent-skillSkill
- publish-to-linearSkill
- release-ledgerSkill
- release-notesSkill
- report-progressSkill
- request-answersSkill
- request-blocks-reviewSkill
- resolve-problem-reportSkill
- resume-after-limitSkill
- rotate-shared-secretSkill
- secure-credential-setupSkill
- track-in-linearSkill
- update-agent-skillsSkill
- visualise-blast-areaSkill
- work-in-external-repoSkill
- workspace-governanceSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 12 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Don't delegate a task whose context-packaging and reconciliation overhead exceeds the likely savings.
- Distinctive: line 34
Read the routing policy before planning a routed run.
- Distinctive: line 46
Prefer deterministic local tools before any model for exact transformations, formatting, extraction, filtering, counting, and validation.
- Distinctive: line 53
Read profile controls and the reference for the active harness.
- Distinctive: line 62
Choose the lowest viable route: Use deterministic tools first.
- Distinctive: line 73
Decompose only when savings exceed overhead: Prefer one coherent owner.
- Distinctive: line 75
Complete when: no fan-out duplicates source reading, output, or ownership.
- Distinctive: line 76
Escalate on evidence: Stop at ambiguity, failed acceptance, quality risk, or ownership conflict.
- Distinctive: line 80
Verify economically: Run deterministic/focused checks first and broader checks at risk or phase boundaries.
- Distinctive: line 139
Never send complete conversations, repositories, plans, or raw logs to every child.
- Distinctive: line 141
Never blindly retry the same prompt.
- Distinctive: line 144
Never claim separate role models when the harness can run only one child model.
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Token-efficient, quality-preserving model routing
Complete work with the fewest model tokens and least DRIVER-context growth that still meets the acceptance criteria. Route each task to the least expensive configured model that can own it completely, and escalate only when evidence shows that route cannot meet quality. Profiles and exact identifiers preserve approved bindings; they are mechanisms, not the product goal.
Fable/Opus/Haiku and Sol/Terra/Luna are illustrative names, not defaults or tiers. Never infer a model from one of those examples, a provider, a nickname, or a harness default.
When to Use
- Work can be decomposed so expensive-model reasoning is reserved for judgment, synthesis, and acceptance.
- Delegated research, implementation, review, or mechanical processing would otherwise inflate DRIVER context or use a stronger model than necessary.
- A user asks to set up, inspect, change, switch, clear, reset, delete, or use a routing profile.
Don't delegate a task whose context-packaging and reconciliation overhead exceeds the likely savings. Do not optimize token count by weakening acceptance or verification. Do not use a sweeper for interpretation, quality judgment, or taste.
Read the routing policy before planning a routed run. Its local-tool-first, decomposition, context-bound, escalation, retry, and verification rules are normative.
Roles
| Role | Assignment rule | Owns |
| DRIVER | Strongest approved model; use only where marginal reasoning quality matters. | Ambiguity, scope, trade-offs, architecture, orchestration, synthesis, acceptance, and user communication. |
| BUILDER | Least-cost approved model that can meet bounded substantive acceptance criteria. | Implementation, research, tests, debugging, and implementation-level review. |
| SWEEPER | Least-cost approved model for mechanically verifiable language work. | Only bounded zero-judgment transforms when deterministic local tools are insufficient. |
Prefer deterministic local tools before any model for exact transformations, formatting, extraction, filtering, counting, and validation. A task moves upward only when evidence shows the lower route cannot meet acceptance: local tool → SWEEPER → BUILDER → DRIVER.
Prerequisites
- Read profile controls and the reference for the active harness. Complete when: the profile command, persistence location, and supported role bindings are known for that harness.
- Inventory models the harness can address now. Record each identifier literally. Complete when: every proposed binding names an identifier that the harness reports, not a guessed vendor label.
- Before child delegation, check for and load the
agent-lifecycleskill. If it is unavailable, offer to install it and wait for user approval before installation. Do not substitute a todo list for lifecycle evidence. Complete when: lifecycle authority and its visible surface are known, or the user has declined installation and the resulting visibility limitation is explicit.
Procedure
- Set the acceptance standard. State the required output, decisive checks, and judgment/blast radius. Complete when: cost cannot be reduced by silently reducing required quality.
- Choose the lowest viable route. Use deterministic tools first; otherwise classify SWEEPER, BUILDER, or DRIVER by judgment required. Complete when: each task has one owner and a reason the cheaper route is insufficient.
- Resolve bindings only as needed. Reuse and validate a matching scoped profile. Enter profile setup/control mode only when requested or when a needed binding is absent/invalid. Complete when: no setup ceremony is repeated for an already valid profile.
- Package minimum context. Give children source paths, immutable decisions, ownership, acceptance checks, stop conditions, and a bounded result contract; never paste whole conversations/logs/plans. Complete when: the child can work from source without receiving unrelated context.
- Decompose only when savings exceed overhead. Prefer one coherent owner. Parallelize only independent, disjoint work with non-overlapping questions. Complete when: no fan-out duplicates source reading, output, or ownership.
- Escalate on evidence. Stop at ambiguity, failed acceptance, quality risk, or ownership conflict. Retry once only for a transient execution failure; otherwise pass the failure delta/artifacts to a stronger route. Complete when: no blind retry repeats full discovery/context.
- Verify economically. Run deterministic/focused checks first and broader checks at risk or phase boundaries; DRIVER independently accepts the result. Complete when: accepted output has fresh evidence and concise reporting.
- Expose lifecycle truth. Load
agent-lifecyclefor child delegation and prefer native child UI; use its display-only fallback only when needed. Complete when: visible state comes from lifecycle evidence, not task guesses.
Usage Examples
Show the active route
Show routing. Compare the scoped profile with live bindings and report MATCH,
MISMATCH, UNBOUND, NOT_ADDRESSABLE, or UNAVAILABLE for each role. Do not write.Set up a reusable profile
Set up routing as "balanced". Ask me for exact DRIVER and BUILDER models, and a
SWEEPER model or explicit degraded mode. Validate the live inventory, preview
the changes, and wait for confirmation before applying and saving them.Route a task efficiently
Use the active routing profile. Define acceptance first. Use deterministic local tools
for exact work, BUILDER for bounded implementation with objective checks,
and DRIVER only for ambiguity, trade-offs, synthesis, and acceptance. Delegate
only when the savings exceed dispatch/context overhead. Keep child work visible
with agent-lifecycle and independently verify the result.Escalate without repeating discovery
The current route failed verification. Do not rerun the same prompt. Pass the
failure delta, relevant artifacts, attempted checks, and remaining acceptance
criteria to the next capable route.Harness References
| Harness | Reference |
| Hermes Agent | references/harness-hermes.md |
| Generic Agent Skills harness | references/harness-generic.md |
| User command semantics and profile scripts | references/profile-controls.md |
| Token/quality routing policy | references/routing-policy.md |
Pitfalls
- A configured harness default is not a user-selected routing profile.
- A saved profile is not valid forever: model inventory can change, so validate at auto-load and before dispatch.
- “Cheapest” applies only after the user has selected an exact sweeper model; it never authorizes an agent to pick an unapproved model.
- Parallelism does not permit concurrent edits to shared files, manifests, or acceptance criteria.
- Fan-out can spend more tokens than it saves; parallelize only independent work whose wall-time or context benefit exceeds dispatch/reconciliation overhead.
- Never send complete conversations, repositories, plans, or raw logs to every child. Pass source references and bounded evidence.
- Never blindly retry the same prompt. Preserve artifacts and escalate on the failure delta.
- A native task display is not lifecycle authority; a todo fallback is weaker still.
- Never claim separate role models when the harness can run only one child model.
Verification
- Every bound role has a literal exact identifier from the live inventory.
- The DRIVER is the strongest model explicitly selected by the user for important reasoning.
- Builder work is substantive and independent work is parallel only when ownership is disjoint.
- Sweeper work is mechanically specified and contains zero judgment.
- Deterministic local tools were preferred where no model judgment was needed.
- Child context/results are bounded and do not duplicate broad source material.
- Escalations follow failed evidence/ambiguity; no blind retry repeated discovery.
- Token reduction did not weaken acceptance criteria or fresh verification.
- The active scoped profile auto-load behavior and revalidation outcome are shown.
agent-lifecyclewas loaded before child delegation, or its absence and approved installation decision are recorded.- Native lifecycle UI is used when present; otherwise the todo fallback is labelled non-authoritative.
- Any harness limitation is reported as a degradation, not presented as a successful binding.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

