agentleFS
ind4xind4x/model-router/SKILL.md

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

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
  1. Distinctive:

    Never pick a model or effort level blindly from a short prompt.

    line 32
  2. Distinctive:

    Do not spawn a swarm: if the task is:

    line 37
  3. Very specific:

    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 …

    line 55

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

ModelRoleUse WhenAvoid For
Gemini 4 NeonOrchestrator & core engineering (~32% lower quota than Carbon at High)Default daily driver: repo-level edits, refactors, standard debugging, multi-step coordinationTrivial high-volume fan-out (use Hydrogen) or extreme deadlocks (use Carbon)
Gemini 4 HydrogenFast, high-frequency executionBatched/parallel lightweight work: boilerplate, unit test suites, dependency/config sweeps, mechanical multi-file edits, verification runsSingle quick edits (swarm cold-start costs more than doing it in Neon) or subtle concurrency/architecture bugs
Gemini 4 CarbonHeavyweight reasoning & escalationDeep architectural planning, high-risk/massive migrations, or complex root-cause bugs where Neon stallsRoutine coding, simple edits, or high-volume mechanical changes
Gemini 4 ArgonNiche domain specialistSecurity/cyber audits, threat modeling, long-document, legal, or financial analysisGeneral 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

TierTask ProfileExecution ModeModel & EffortWorkspace
0. BypassQuick fix, single-file edit, Q&A, tightly coupled workDirect (no swarm)Neon (current session)—
1. Fast Fan-outParallel mechanical edits, test writing across modules, lint/QA sweeps, scaffoldingswarm (tasks or n)Hydrogen (low mechanical, medium code/tests)share (writers) / inherit (verifiers)
2. Core EngineeringIndependent parallel features, multi-module refactors, standard debuggingswarmNeon (medium default, high tricky logic)share
3. Heavy ReasoningDeep architecture, massive migrations, or hard bugs where Neon stallsswarm (Architect or Escalation)Carbon (high default, xhigh only if stuck)inherit (planning) / share (edits)
4. Domain SpecialistSecurity/cyber audit, threat model, long-doc/legal/financial synthesisswarmArgon (medium / high)inherit (read-only)

4. Spawn the Swarm

  1. 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.
  2. On a new swarm, set a short title with swarm(action="title", title="...").
  3. Spawn workers with swarm(action="add", ...), passing model, workspace, and a self-contained brief (workers start fresh unless fork is 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.
  4. 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 -> Carbon high/xhigh) with a brief explanation. Do not kill and re-add—preserving its conversation history avoids re-reading the codebase.
  • Land before killing: Review and merge worker changes from share/branch workspaces and run final verification before calling swarm(action="kill", name="<worker>").

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.