Skip to Content
MeowKit

Model Routing

How MeowKit assigns a model tier to each task: Trivial, Standard or Complex, and the rules that force a higher tier.

The orchestrator classifies every task by complexity before work begins and prints the result: Task complexity: [TRIVIAL|STANDARD|COMPLEX] → using [model tier]. mk:scale-routing emits provider-neutral complexity, workflow and execution-tier signals. The active provider adapter maps them to models. The table below is the Claude Code adapter (.claude/skills/agent-detector/references/model-selection-rules.md).

This page covers the session model for a task. Which model each subagent runs on is a separate fixed assignment, covered in Agent models.

Routing table

TaskTierClaude Code modelExamples
Quick editsTRIVIALHaikuRename, typo, format, version bump, config change
Feature implementationSTANDARDSonnetFeature under 5 files, bug fix, tests, API endpoint, UI component
Complex architectureCOMPLEXOpusSystem design, multi-module refactor, auth, payments, database schema
Code reviewCOMPLEXOpusStructural audit, security review, architecture review
Research and analysisSTANDARD or COMPLEXSonnet or OpusTechnical research, dependency analysis, profiling

Escalation rules

  • Security work is always COMPLEX. This covers authentication and authorization, payment processing, credential handling, security audits and vulnerability fixes, and schema changes with CASCADE. It also covers data-loss migrations, external provider behavior changes, and removing or weakening validation.
  • Risk flags escalate. A Phase 0 risk flag of AUTH, AUTHZ, DATA_MODEL, AUDIT_SEC or EXT_SYSTEM forces COMPLEX even when no domain keyword matched.
  • A task never moves down a tier. Once assigned, a task keeps its tier for the session, because a downgrade mid-task loses reasoning context.
  • A high-complexity domain overrides everything. When mk:scale-routing matches a domain with level=high, the tier is COMPLEX whatever else the classification said.

Domain matching

Before manual classification, mk:scale-routing matches keywords in the task against .claude/skills/scale-routing/data/domain-complexity.csv. Each row has a domain, its signal keywords, a level (low, medium or high), a workflow and suggested searches.

DomainSignalsLevelWorkflow
fintechbanking, payment, trading, finance, money, investmenthighenhanced
healthcaremedical, diagnostic, clinical, patient, hospital, healthhighenhanced
governmentgovernment, civic, public, admin, regulationhighenhanced
e_commerceshopping, cart, checkout, payment, products, storemediumstandard
internal_toolsadmin, dashboard, internal, backoffice, cmslowstandard
docsdocumentation, readme, changelog, wiki, guidelowone-shot

The file has more rows than these. You can add rows for your own project's domains. A domain verdict cannot be lowered mid-task.

Density for autobuild

For /mk:autobuild the model also decides how much scaffolding runs. See Adaptive density.

See also

On this page