Model Routing Orchestrator
by @stephensu66
Route each user request to the most cost-effective model or multi-model workflow based on task type, complexity, risk, latency, budget, tool needs, and verif...
clawhub install model-routing-orchestratorπ About This Skill
name: production-model-router description: Route each user request to the most cost-effective model or multi-model workflow based on task type, complexity, risk, latency, budget, tool needs, and verification requirements. version: 2026.3.27
Production Model Router
Overview
Use this skill to decide which model tier, workflow shape, and verification strategy should handle a user's request.The goal is to maximize cost-effectiveness without sacrificing task fit, correctness, or operational reliability.
This skill does not blindly choose the strongest model. It chooses the cheapest safe path that still meets the quality bar for the task.
It may recommend:
Primary objective
For every request, choose the minimum-cost execution path that can still satisfy:When to use
Use this skill when you need to decide:Do not use
Do not use this skill to:Inputs to collect
Collect or infer the following from the request and system context:Request characteristics
Execution constraints
Risk profile
Failure tolerance
Task taxonomy
Classify the request into one or more of these categories:1. Simple generation - rewrite - summarization - formatting - light translation - basic brainstorming
2. General reasoning - explanation - comparison - concept mapping - normal business analysis
3. Deep reasoning - multi-step planning - tradeoff analysis - architecture design - ambiguous decision support - chain-dependent reasoning
4. Exact calculation or formal logic - arithmetic - financial calculations - unit conversion - spreadsheet-like reasoning - symbolic or step-sensitive math - combinatorics or logic puzzles where exactness matters
5. Coding and technical execution - code generation - debugging - refactoring - test generation - query writing - infrastructure or API design
6. Long-context synthesis - large documents - multiple files - multi-source comparison - transcript or contract review
7. Multi-modal tasks - image understanding - diagram interpretation - PDF with layout-heavy content - video or audio related tasks if supported
8. High-risk tasks - medical - legal - financial decisions - compliance - security-sensitive operations - anything where incorrect advice has material consequences
Core routing principle
Always prefer the cheapest path that can safely succeed.Apply this order of preference: 1. Cheap single-model path 2. Balanced single-model path 3. Premium single-model path 4. Tool-assisted path 5. Staged multi-model path 6. Parallel multi-model comparison 7. Premium plus verifier or consensus workflow
Do not escalate unless the task characteristics justify it.
Model tiers
Use abstract capability tiers unless the deployment specifies exact providers.Economy tier
Use for:Strengths:
Weaknesses:
Balanced tier
Use for:Strengths:
Weaknesses:
Premium tier
Use for:Strengths:
Weaknesses:
Tool-assisted tier
Use when exactness matters more than fluent wording.Use this path for:
Rule: When a task requires exact numeric correctness, prefer tools plus model orchestration over pure model reasoning.
Decision dimensions
Score the request across these dimensions:1. Complexity
2. Exactness requirement
3. Risk level
4. Latency priority
5. Budget strategy
6. Context burden
7. Modality burden
Hard routing rules
Apply these rules before any soft optimization.Exact calculation rule
If the task involves exact arithmetic, formulas, tables, accounting-like operations, unit-sensitive conversions, or step-sensitive logic:High-risk rule
If the task is high-risk:Ambiguity rule
If the task is materially ambiguous and the answer quality depends on interpretation:Long-context rule
If the input is large or multi-document:Multimodal rule
If the task includes images, diagrams, PDFs with layout dependence, or visual interpretation:Coding rule
For code tasks:Recommended workflows
Choose one of these workflow shapes.1. Single economy
Use when:Examples:
2. Single balanced
Use when:Examples:
3. Single premium
Use when:Examples:
4. Tool-assisted reasoning
Use when:Pattern:
5. Staged pipeline
Use when:Pattern: 1. economy or balanced model for triage or extraction 2. balanced or premium model for synthesis 3. optional verifier pass
Examples:
6. Draft and review
Use when:Pattern: 1. cheaper model drafts 2. stronger model critiques, corrects, or upgrades
Best for:
7. Parallel comparison
Use when:Pattern: 1. two models produce independent answers 2. a stronger model or rule layer compares and merges
Best for:
8. Consensus or verifier workflow
Use when:Pattern: 1. primary model produces answer 2. verifier model checks logic, calculations, or policy fit 3. disagreements trigger escalation or explicit uncertainty
Best for:
Cost-control strategy
Use these strategies to keep cost high-value.Default strategy
Escalation triggers
Escalate to a stronger model or multi-step workflow when any of these appear:De-escalation triggers
Use a cheaper path when:Complex calculation policy
When the request includes complex calculations or formal reasoning:1. Separate interpretation from computation. 2. Use the model to parse the problem and define the method. 3. Use a deterministic tool or calculational path when available. 4. Ask a verifier layer to check assumptions, formulas, units, and edge cases for high-impact outputs. 5. Present the final answer with explicit assumptions and, when relevant, step order.
Never use a fluent but non-verified freeform model answer as the final authority for exact numeric work when a deterministic path exists.
Long-context policy
When the request includes large context:Output format
Return exactly this structure:Routing Decision:
Primary Reason:
Task Profile:
Recommended Execution Plan:
1.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule:
Fallback Rule:
Examples
Example 1: Simple rewrite
Request: "Rewrite this email to sound more professional."Output: Routing Decision: single-economy
Primary Reason: This is a low-risk rewriting task where a low-cost model should meet the quality bar.
Task Profile:
Recommended Execution Plan: 1. Use an economy model to rewrite the email. 2. Preserve intent and tone constraints. 3. Return one polished version and one shorter variant.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate only if the user requests highly nuanced persuasion, legal sensitivity, or multiple tone variants.
Fallback Rule: If the first rewrite is too generic, retry once with stricter tone instructions using a balanced model.
Example 2: Complex system design
Request: "Design an AI agent architecture for long-form writing with memory, retrieval, conflict resolution, and chapter planning."Output: Routing Decision: single-premium
Primary Reason: This task requires deep reasoning, abstraction, and multi-part architecture tradeoff analysis.
Task Profile:
Recommended Execution Plan: 1. Use a premium model to identify major architecture components and constraints. 2. Structure the answer into memory layers, retrieval flow, consistency controls, and orchestration. 3. Include tradeoffs and failure modes. 4. Add implementation recommendations only after the design is coherent.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to parallel-comparison only if multiple competing architecture strategies are explicitly required.
Fallback Rule: If the first answer is too generic, rerun with a staged outline-first then full-design workflow.
Example 3: Financial calculation with policy impact
Request: "Calculate the projected monthly burn and runway under three hiring scenarios and explain the assumptions."Output: Routing Decision: tool-assisted
Primary Reason: This request depends on exact calculations, so deterministic computation is safer and more cost-effective than pure model reasoning.
Task Profile:
Recommended Execution Plan: 1. Use a balanced model to extract the variables, hiring scenarios, and required formulas. 2. Use a deterministic calculator or spreadsheet-capable path to compute burn and runway. 3. Run a verification check on formulas, assumptions, and units. 4. Use the model to present the results clearly with assumptions and scenario breakdowns.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to premium review only if the scenario assumptions are ambiguous or strategically sensitive.
Fallback Rule: If tool-based computation is unavailable, return assumptions explicitly and mark the result as unverified instead of presenting certainty.
Example 4: Multi-document review
Request: "Compare these five candidate proposals and recommend the best one based on cost, timeline, technical fit, and risk."Output: Routing Decision: staged-pipeline
Primary Reason: The request is large and decomposable, so staged extraction and synthesis is more cost-effective than sending everything directly to a premium model.
Task Profile:
Recommended Execution Plan: 1. Use an economy or balanced model to extract structured facts from each proposal. 2. Normalize the proposals into a common comparison table. 3. Use a stronger model to synthesize tradeoffs and recommend the best option. 4. Add a brief verifier pass if the recommendation is high stakes.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to consensus-check if the recommendation will drive a major decision or if proposal differences are subtle.
Fallback Rule: If extraction quality is poor, rerun the extraction stage with a stronger model before recomputing the final recommendation.
β‘ When to Use
π‘ Examples
Example 1: Simple rewrite
Request: "Rewrite this email to sound more professional."Output: Routing Decision: single-economy
Primary Reason: This is a low-risk rewriting task where a low-cost model should meet the quality bar.
Task Profile:
Recommended Execution Plan: 1. Use an economy model to rewrite the email. 2. Preserve intent and tone constraints. 3. Return one polished version and one shorter variant.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate only if the user requests highly nuanced persuasion, legal sensitivity, or multiple tone variants.
Fallback Rule: If the first rewrite is too generic, retry once with stricter tone instructions using a balanced model.
Example 2: Complex system design
Request: "Design an AI agent architecture for long-form writing with memory, retrieval, conflict resolution, and chapter planning."Output: Routing Decision: single-premium
Primary Reason: This task requires deep reasoning, abstraction, and multi-part architecture tradeoff analysis.
Task Profile:
Recommended Execution Plan: 1. Use a premium model to identify major architecture components and constraints. 2. Structure the answer into memory layers, retrieval flow, consistency controls, and orchestration. 3. Include tradeoffs and failure modes. 4. Add implementation recommendations only after the design is coherent.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to parallel-comparison only if multiple competing architecture strategies are explicitly required.
Fallback Rule: If the first answer is too generic, rerun with a staged outline-first then full-design workflow.
Example 3: Financial calculation with policy impact
Request: "Calculate the projected monthly burn and runway under three hiring scenarios and explain the assumptions."Output: Routing Decision: tool-assisted
Primary Reason: This request depends on exact calculations, so deterministic computation is safer and more cost-effective than pure model reasoning.
Task Profile:
Recommended Execution Plan: 1. Use a balanced model to extract the variables, hiring scenarios, and required formulas. 2. Use a deterministic calculator or spreadsheet-capable path to compute burn and runway. 3. Run a verification check on formulas, assumptions, and units. 4. Use the model to present the results clearly with assumptions and scenario breakdowns.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to premium review only if the scenario assumptions are ambiguous or strategically sensitive.
Fallback Rule: If tool-based computation is unavailable, return assumptions explicitly and mark the result as unverified instead of presenting certainty.
Example 4: Multi-document review
Request: "Compare these five candidate proposals and recommend the best one based on cost, timeline, technical fit, and risk."Output: Routing Decision: staged-pipeline
Primary Reason: The request is large and decomposable, so staged extraction and synthesis is more cost-effective than sending everything directly to a premium model.
Task Profile:
Recommended Execution Plan: 1. Use an economy or balanced model to extract structured facts from each proposal. 2. Normalize the proposals into a common comparison table. 3. Use a stronger model to synthesize tradeoffs and recommend the best option. 4. Add a brief verifier pass if the recommendation is high stakes.
Model Role Assignment:
Why This Is Cost-Effective:
Escalation Rule: Escalate to consensus-check if the recommendation will drive a major decision or if proposal differences are subtle.
Fallback Rule: If extraction quality is poor, rerun the extraction stage with a stronger model before recomputing the final recommendation.