- Home
- Skills
- Agents & Orchestration
- Gemini 4 Model Router
Gemini 4 Model Router
Routes tasks from a Gemini 4 Neon orchestrator to direct execution or a multi-model swarm (Hydrogen, Neon, Carbon, Argon) with explicit effort pinning.
Free
Works with the AI Agents you already use
Gemini 4 Model Router
Example session with this skill installed
I need to refactor the entire auth module for better security and also add basic unit tests to 12 utility files. How should we handle this?
- Read your context and instructions
- Compiled the gemini 4 model
1. Codebase Inspection
Read auth-gateway/src/session.ts, shared/middleware/auth.ts, and the service manifest across all 14 services. Confirmed shared middleware is imported by 14 independent repositories/modules with distinct route guards and test suites.
2. Tier 0 Bypass Gate
Bypass rejected: this spans 14 services, combines architectural risk (auth migration), parallel test generation, and a security audit. Routing via swarm using the
Architect -> Execute pattern.
3. Routing Plan
| Stage | Role | Tier | Model & Effort | Workspace | Scope |
|---|---|---|---|---|---|
| 1 | jwt-architect | Tier 3 (Heavy Reasoning) | Carbon (high) | inherit | Produce JWT claim schema, key rotation design, and migration contract |
| 2 | auth-core | Tier 2 (Core Engineering) | Neon (high) | share | Implement shared JWT verification middleware and gateway issuance |
| 3 | svc-tests-1..4 | Tier 1 (Fast Fan-out) | Hydrogen (medium) | share | Migrate route guards and add unit tests across the 14 services in parallel |
| 4 | sec-auditor | Tier 4 (Domain Specialist) | Argon (high) | inherit | Audit JWT signature verification, alg-none/key-confusion vectors, and expiration handling |
4. Execution & Escalation
- Called
swarm(action="models", all=true)to resolve exact model IDs and titled the swarmjwt-auth-migration. - Spawned
jwt-architectfirst; once the spec was approved, fanned outauth-coreand shardedsvc-testsworkers with explicit file ownership andnpm testverification commands. - When
svc-tests-3hit a subtle async race condition in token refresh mocks, escalated it in place withswarm(action="model", name="svc-tests-3", model="<neon-high>")to preserve context instead of restarting. - Ran
sec-auditoron the merged branch, resolved two findings (strictaud/issvalidation and clock-skew cap), verified all 14 test suites passed, and terminated workers cleanly.
Connects securely to your tools. The creator never sees your data.
About this skill
Model Router is an orchestration skill for Gemini 4 Neon that evaluates incoming engineering tasks and routes each piece of work to the optimal execution tier, model, effort level, and workspace mode.
Why use Model Router
- Eliminates unnecessary multi-agent overhead: Enforces a strict Tier 0 Bypass Gate so single-file edits, quick fixes, and tightly coupled tasks stay directly in Neon instead of paying swarm cold-start costs.
- Right-sizes model capability and quota: Dispatches parallel mechanical work to Hydrogen, core engineering to Neon, deep architectural planning or deadlock resolution to Carbon, and security/long-document/compliance analysis to Argon.
- Inspects before routing: Requires reading actual files, diffs, or stack traces before choosing a tier so complexity is measured against real code rather than guessed from a short prompt.
- Escalates in place: Upgrades stalled workers to a stronger model without killing them or losing their conversation history, avoiding redundant codebase re-reads.
Routing Tiers
| 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) | None |
| 1. Fast Fan-out | Parallel mechanical edits, test suites, lint/QA sweeps, scaffolding | swarm (tasks or n) | Hydrogen (low / medium) | share (writers) / inherit (verifiers) |
| 2. Core Engineering | Independent parallel features, multi-module refactors, standard debugging | swarm | Neon (medium / high) | share |
| 3. Heavy Reasoning | Deep architecture, massive migrations, hard root-cause bugs | swarm (Architect / Escalation) | Carbon (high / xhigh) | inherit (planning) / share (edits) |
| 4. Domain Specialist | Security/cyber audits, threat modeling, long-doc/legal/financial synthesis | swarm | Argon (medium / high) | inherit (read-only) |
Included Patterns
- Architect -> Execute: Spawns a Carbon (
high) architect ininheritmode to produce a concrete spec before fanning out implementation to Neon or Hydrogen workers inshareworkspaces. - Self-contained Worker Briefs: Enforces explicit file/module ownership, constraints, objective verification commands, and concrete definitions of done.
- Safe Cleanup: Ensures all
share/branchworkspace changes are reviewed, merged, and verified before terminating workers.
Requires Gemini 4 environment and swarm tool access. Worker efficiency depends on the quality of the generated brief. Cold-start costs may apply for very short tasks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 3 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.