model-router
Skill4 starsChanged 5 days agoMITView on GitHub
Routes tasks from a Gemini 4 Neon orchestrator to either direct execution or a `swarm` of workers pinned to the optimal Gemini 4 model (Hydrogen, Neon, Carbon, Argon) and effort level (low, medium, high, xhigh). Activate when planning multi-step, parallel, heavy-reasoning, or domain-specialist work, or when deciding whether to delegate via `swarm` or escalate a stalled worker.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- ritmillio/skillstheir own version, first seen Nov 29, 2026
- victoriacarbonell/claude-skillstheir own version, first seen Nov 29, 2026
- ZbienVC/claude-skillstheir own version, first seen Nov 22, 2026
- anoopnair-aipm/frugal-claudetheir own version, first seen Nov 22, 2026
- Vortexyyy/model-router-skilltheir own version, first seen Nov 22, 2026
- anmol26rajput/agent-model-routertheir own version, first seen Nov 22, 2026
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- nidhi-singh02/agent-router★ 124same name
- tance-mang/chinese-webnovel-skills★ 97same name
- RandomNest/aivideo-production-skills★ 15same name
- manishk753/claude-model-router★ 3same name
- anmol26rajput/agent-model-router★ 2same name
- francoisdp/skills★ 2same name
- anoopnair-aipm/frugal-claude★ 1same name
- hamzzaqureshi/gravidex★ 1same name
- hugharcher5/claude-code-workflow★ 1same name
- mehtab78/skills★ 1same name
15 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.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Never pick a model or effort level blindly from a short prompt.
- Distinctive: line 37
Do not spawn a swarm: if the task is:
- Very specific: line 55
If exact model IDs are not already known in this session, call swarm(action="models", all=true) first and pick the exact model ID matching …
“Common” is measured: kept by at least 6 in 10 of the 24 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
Model Router (Neon Orchestrator)
You are running on Gemini 4 Neon as the orchestrator. Your job is to inspect
incoming tasks, decide whether they merit a swarm, and—when they do—explicitly
invoke the swarm tool to spawn workers pinned to the right model and effort
level.
Model Lineup
| Model | Role | Use When | Avoid For |
| Gemini 4 Neon | Orchestrator & core engineering (~32% lower quota than Carbon at High) | Default daily driver: repo-level edits, refactors, standard debugging, multi-step coordination | Trivial high-volume fan-out (use Hydrogen) or extreme deadlocks (use Carbon) |
| Gemini 4 Hydrogen | Fast, high-frequency execution | Batched/parallel lightweight work: boilerplate, unit test suites, dependency/config sweeps, mechanical multi-file edits, verification runs | Single quick edits (swarm cold-start costs more than doing it in Neon) or subtle concurrency/architecture bugs |
| Gemini 4 Carbon | Heavyweight reasoning & escalation | Deep architectural planning, high-risk/massive migrations, or complex root-cause bugs where Neon stalls | Routine coding, simple edits, or high-volume mechanical changes |
| Gemini 4 Argon | Niche domain specialist | Security/cyber audits, threat modeling, long-document, legal, or financial analysis | General daily coding (superseded by Carbon/Neon/Hydrogen) |
Routing Procedure
1. Inspect Before Routing
Never pick a model or effort level blindly from a short prompt. Read the relevant files, stack traces, or diffs first so complexity is measured against actual code.
2. Apply the Tier 0 Bypass Gate
Do not spawn a swarm if the task is:
- A single-file change, quick fix, package update, or simple Q&A.
- Tightly coupled sequential work taking fewer than 3 distinct steps.
- Small enough that writing a worker brief and verifying its output takes longer than doing the edit directly.
Handle Tier 0 tasks directly in Neon.
3. Select Tier, Model, Effort, and Workspace
| Tier | Task Profile | Execution Mode | Model & Effort | Workspace |
| 0. Bypass | Quick fix, single-file edit, Q&A, tightly coupled work | Direct (no swarm) | Neon (current session) | — |
| 1. Fast Fan-out | Parallel mechanical edits, test writing across modules, lint/QA sweeps, scaffolding | swarm (tasks or n) | Hydrogen (low mechanical, medium code/tests) | share (writers) / inherit (verifiers) |
| 2. Core Engineering | Independent parallel features, multi-module refactors, standard debugging | swarm | Neon (medium default, high tricky logic) | share |
| 3. Heavy Reasoning | Deep architecture, massive migrations, or hard bugs where Neon stalls | swarm (Architect or Escalation) | Carbon (high default, xhigh only if stuck) | inherit (planning) / share (edits) |
| 4. Domain Specialist | Security/cyber audit, threat model, long-doc/legal/financial synthesis | swarm | Argon (medium / high) | inherit (read-only) |
4. Spawn the Swarm
- If exact model IDs are not already known in this session, call
swarm(action="models", all=true)first and pick the exact model ID matching the chosen model and effort level. - On a new swarm, set a short title with
swarm(action="title", title="..."). - Spawn workers with
swarm(action="add", ...), passingmodel,workspace, and a self-containedbrief(workers start fresh unlessforkis passed). Every brief must specify:- Exact files or module scope owned.
- Constraints and conventions to preserve.
- Objective verification command(s) to run.
- Concrete definition of done.
- For large or ambiguous projects, use the Architect -> Execute pattern: spawn a Carbon (
high) worker (workspace: "inherit") to produce a concrete plan/spec first, then fan out implementation to Neon or Hydrogen workers (workspace: "share").
5. Escalate in Place, Verify, and Clean Up
- Escalate instead of restarting: If a worker gets stuck, loops, or misses a subtle root cause, upgrade it in place using
swarm(action="model", name="<worker>", model="<higher-model>")(Hydrogen -> Neon, or Neon -> Carbonhigh/xhigh) with a brief explanation. Do notkilland re-add—preserving its conversation history avoids re-reading the codebase. - Land before killing: Review and merge worker changes from
share/branchworkspaces and run final verification before callingswarm(action="kill", name="<worker>").
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.

