Skip to content

Model Routing

MeowKit declares complexity before every task, ensuring trivial tasks don't burn expensive models and complex tasks get the reasoning power they need.

Routing table

Task typeModel tierExamples
TrivialCheapest (Haiku)Rename, typo, format, version bump, config change
StandardDefault (Sonnet)Feature (<5 files), bug fix, test writing, API endpoint
ComplexBest (Opus)Architecture, security audit, multi-module refactor, auth/payments

How it works

The orchestrator agent classifies every incoming task and prints:

Task complexity: STANDARD → using Sonnet

Escalation rules

  • Always Complex: Authentication, payment processing, database schema, security audit
  • Never downgrade: Once assigned, a task stays at its tier for the entire session
  • Code review always Complex: Structural audits need the highest reasoning capability

Scale-Adaptive Intelligence (Phase 0)

Before the orchestrator applies manual classification, MeowKit runs domain-based routing via the meow:scale-routing skill. It reads keywords from the task description and matches them against domain-complexity.csv.

Task: "Add Stripe payment checkout"


meow:scale-routing
  → domain: fintech
  → level: high
  → OVERRIDE → COMPLEX tier (no manual override possible)

Domain routing table (examples)

DomainKeywordsLevelEffect
fintechpayment, stripe, billing, invoicehighForce COMPLEX
healthcarehipaa, phi, ehr, patient datahighForce COMPLEX
authoauth, jwt, session, credentialshighForce COMPLEX
docsreadme, changelog, commentlowAllow one-shot
configenv, .yaml, version bumplowAllow one-shot

When level is low AND the task has zero blast radius, Gate 1 is bypassed (same behavior as /meow:fix --quick).

Extending the CSV

The domain-complexity.csv file is user-editable. Add rows for your project's specific domains:

csv
domain,keywords,level,workflow
payments,braintree;adyen;paypal,high,full
internal-tools,admin;dashboard;report,low,one-shot

Anti-rationalization hardening

Scale-routing verdicts cannot be downgraded mid-task. If the CSV returns COMPLEX, the agent cannot argue its way to a cheaper tier. No exceptions.

Planning Depth Per Mode

Each workflow mode declares a Planning Depth — the number of researchers that run before the planner writes the plan.

ModeResearchersResearch approach
strict2 (parallel)Competing approaches — each researcher argues a different design
architect2 (parallel)Competing approaches — same as strict
default1Standard depth
audit1Security-focused
fast0Skip research
cost-saver0Skip research, minimize tokens
document0Skip research — docs tasks don't need it

strict and architect use competing approaches to surface trade-offs that single-researcher planning misses. The synthesis step resolves the competition into a single recommended path before Gate 1.

Agent default models

AgentDefaultUpgrades to Opus when
orchestratorHaikuNever (routing only)
plannerSonnetComplex multi-phase planning
architectSonnetSchema design, migrations
developerSonnetNever
reviewerSonnetSecurity-critical reviews
securitySonnetFull audits
analystHaikuNever

Released under the MIT License.