task-router

Analyze tasks and recommend an agent for spawning sub-agents.

2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/mmcmedia/openclaw-agents --skill task-router-mmcmedia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: task-router
Source: https://github.com/mmcmedia/openclaw-agents/tree/main/skills/task-router
Command: npx skills add https://github.com/mmcmedia/openclaw-agents --skill task-router-mmcmedia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Analyze tasks and recommend the optimal agent to spawn sub-agents, balancing cost and performance to prevent defaulting to expensive options.

Core Features & Use Cases

  • Deterministic routing: Analyze a task and context to select the best agent (Haiku, Sonnet, Codex, Opus) before spawning sub-agents.
  • Cost optimization: Minimize Opus usage by matching tasks to cheaper agents when possible.
  • Usage scenarios: Integrate before sessions_spawn to route tasks efficiently and provide actionable agent recommendations.

Quick Start

Analyze a task and context to return the recommended agent for spawning sub-agents.

Frequently Asked Questions about task-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route tasks to the right AI agent and reduce Opus usage?

Task routing analyzes your workload and context to recommend the optimal agent, defaulting to Sonnet when uncertain to minimize expensive Opus usage. It matches simple tasks to cheaper alternatives like Haiku before you spawn sub-agents.

What is multi-agent task routing and when do I need it?

Multi-agent task routing is the process of analyzing tasks to deterministically select the best AI model, such as Haiku or Codex, before execution. You need it when balancing cost and performance across varying workloads to prevent defaulting to expensive agents.

How do I integrate agent selection into my session workflows?

You integrate agent selection by passing task and context data to the router, which returns a structured output containing the recommended agent and reasoning. Use this structured output directly before your sessions_spawn call to route tasks efficiently.

Can I use task routing for both simple and complex workloads?

Yes, task routing covers simple to complex workloads using a heuristic router. It evaluates the specific context of your task to match it with the appropriate agent, ensuring cost optimization across all levels of complexity.

Does the router require specific dependencies to analyze context?

No, the router operates independently without any specific dependencies. It analyzes tasks and context directly to provide actionable agent recommendations and reasoning for your session workflows.