mcpField
M
manager

manager

github.com/metyatechAgent workflows160 installsUpdated 6w ago
Repository

About manager

manager is a skill for decomposing requests and dispatching sub-agents in parallel, intended for agent workflows using agents-mcp. It provides procedures for task classification, dispatch, monitoring, verification deliverables, and model routing.

Key features

  1. 01Decompose and track independent tasks
  2. 02Dispatch sub-agents in parallel
  3. 03Monitor task status and errors
  4. 04Require verification evidence
  5. 05Route models by task tier

Use cases

  1. 01Delegate multi-part requests to multiple agents
  2. 02Run independent implementation tasks in parallel
  3. 03Track sub-agent status and summarize results

MCP support

The skill uses metyatech's agents-mcp MCP server to spawn and monitor sub-agents. The README says it works with Claude Code, Codex, Gemini CLI, and other agent CLIs.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/metyatech/skill-sub-agent-dispatch --skill manager

After installing, type/managerin Claude Code to confirm it loaded.

Details

From the project README

Sub-agent dispatch reference

Source: metyatech/skill-sub-agent-dispatch. To update this skill, edit the repository and push. The agent MUST NOT edit the installed copy.

This skill contains reference data and detailed procedures for dispatching sub-agents. The always-loaded invariants for sub-agent dispatch (agents-mcp tooling, ai-quota, mode, decision framework, verification deliverable format, cost discipline, execution discipline, lifecycle) live in the sub-agent-dispatch rule module. Spawning prompt requirements and delegated-agent obligations live in the delegation rule module. Approval rules live in the approval-gates rule module.

Dispatch workflow

  1. Receive the user's request.
  2. Decompose into discrete work items. Track them.
  3. Classify each item using the Decision framework defined in the sub-agent-dispatch rule.
  4. Dispatch all independent items in parallel.
  5. Report to the user: what was dispatched, what is pending. Return control immediately.
  6. On every subsequent user message, the agent MUST call Status(wait=false) first and report any state changes before addressing the user's new request.
  7. When all sub-agents are done and review gates pass, the agent MUST summarize results and proceed to next steps.

Cross-agent invocation (agents-mcp)

agents-mcp is the metyatech MCP server that works uniformly from Claude Code, Codex, Gemini CLI, and other agent CLIs.

One-time setup

See README.md for platform-specific installation commands.

Dispatching a task

Use agents-mcp to spawn sub-agents with these parameters:

  • prompt — the full self-contained task description.
  • agent_type — target agent (claude, codex, copilot). The agent MUST NOT use gemini (see Gemini section below).
  • model — explicit model string from the Model Inventory (e.g., "claude-sonnet-4-6").
  • effort — optional reasoning effort. Set from the Model Inventory; omit when not needed.
  • mode: 'edit' — REQUIRED for implementation agents.
Monitoring

After spawning agents, return to the user immediately. Use background or non-blocking monitoring to be notified when agents finish. agents-mcp wait and Status(wait=true) both poll until completion or timeout.

If agents-mcp is not configured

Stop and report the limitation to the user. The agent MUST NOT simulate or substitute the work itself.

Verification prompt templates

Implementation-agent template
Delegated mode. Implement approved scope only.
Return exactly: (1) Restated AC, (2) AC->evidence with exact commands/manual steps + PASS/FAIL/NOT RUN, (3) Files changed, (4) Assumptions/uncertainties, (5) Risks/rollback notes.
If spec/behavior text changed: cite file + section and summarize behavior delta.
Run applicable tests/verification and include exact commands and outputs summary.
Review-agent template
Delegated mode reviewer. Do not implement; review only.
Original requirements: [paste original AC/spec here]
Implementation output: [paste implementation agent's report here]
Note: tests were written by an agent and may confirm implementation behavior rather than spec intent.
Return: explicit PASS or FAIL, reasons, spec alignment (does the implementation meet the original requirements, not just the tests?), AC coverage gaps, and any ambiguous points.
Reject if evidence format is incomplete, outcomes are unsupported, or implementation deviates from original spec.
Spec-change protocol
  • If behavior or spec text changes, the implementation agent MUST cite where it changed (file + section heading) and MUST summarize the behavior delta.
  • The reviewer MUST explicitly confirm spec alignment and list any ambiguous points requiring follow-up.

Reviewer model selection

  • For Standard tier reviews when verification fails: use claude-haiku-4-5-20251001.
  • For Heavy tier reviews and release/production changes: use claude-sonnet-4-6 with medium effort.

Error handling

  • If a sub-agent fails, call Status and treat agents[].errors and agents[].diagnostics.tail_errors as the primary failure reason.
  • Open raw logs only when needed via agents[].diagnostics.log_paths.stdout (e.g., tail the file). Do not manually hunt logs.

Model inventory and routing

Last reviewed: 2026-02-27. Update this section when models change.

Tier definitions
  • Free — trivial lookups, simple Q&A, straightforward single-file edits. Copilot only.
  • Light — mechanical transforms, formatting, simple implementations, quick clarifications.
  • Standard — general implementation, code review, multi-file changes, most development work.
  • Heavy — architecture decisions, safety-critical code, complex multi-step reasoning.
  • Large Context — tasks requiring more than 200k token input.
  • Bulk/Idle — automated compliance checks, repetitive transforms across repos. Prefer lowest-cost agents.

Classify each task into a tier, then pick an agent with available quota and select the ★ preferred model for that tier. Fall back to other models in the same tier when the preferred model's agent has no quota.

Claude
TierModelEffortNotes
Lightclaude-haiku-4-5-20251001—Effort not supported; SWE-bench 73%
Standardclaude-sonnet-4-6medium★ Default; SWE-bench 80%
Heavyclaude-opus-4-6highSWE-bench 81%; max effort for hardest tasks
Codex
TierModelEffortNotes
Lightgpt-5.1-codex-minimediummedium/high only
Standardgpt-5.3-codexmedium★ Latest flagship; SWE-bench Pro 57%
Standardgpt-5.2-codexmediumPrevious gen; SWE-bench Pro 56%
Standardgpt-5.2mediumGeneral-purpose; best non-codex reasoning; SWE-bench 80%
Heavygpt-5.3-codexxhigh★ Best codex at max effort
Heavygpt-5.1-codex-maxxhighExtended reasoning; context compaction
Heavygpt-5.2-codexxhighAlternative
Heavygpt-5.2xhighGeneral reasoning fallback
Gemini sub-agent reliability

⚠ The gemini agent type MUST NOT be used for sub-agent delegation. Gemini CLI agents fail with HTTP 429 "No capacity available" server errors too frequently to be reliable, even for single unattended tasks. Gemini CLI MAY be used interactively when invoked directly by the user. For large-context work, use Copilot with the gemini-3-pro model instead.

TierModelEffortNotes
Lightgemini-3-flash-preview—SWE-bench 78%
Standardgemini-3-pro-preview—★ 1M token context; SWE-bench 76% (interactive only)
Large Contextgemini-3-pro-preview—>200k token tasks; 1M context (interactive only)
Aider (BYOK)

Aider uses external API keys. Cost is per-token from the provider (no subscription). Best for bulk/idle tasks with cheap API models.

TierModelProviderNotes
Bulk/Idledeepseek/deepseek-chatDeepSeek★ $0.07-$0.27/MTok input; SWE-bench 73%
Bulk/Idledeepseek/deepseek-reasonerDeepSeek$1.30/Aider task
Lightclaude-3-5-haiku-20241022AnthropicSame as Claude Haiku
Standardclaude-sonnet-4-6-20261022AnthropicSame as Claude Sonnet

Configure via DEEPSEEK_API_KEY or ANTHROPIC_API_KEY. Aider is not yet integrated into agent-runner (tracked task).

Copilot

Copilot charges different quota per model. Prefer lower-multiplier models when task complexity allows. Effort is not configurable (ignored).

TierModelQuotaNotes
Freegpt-5-mini0x★ SWE-bench ~70%
Freegpt-4.10x1M context; SWE-bench 55%
Lightclaude-haiku-4-50.33x★ SWE-bench 73%
Lightgpt-5.1-codex-mini0.33xMechanical transforms
Standardclaude-sonnet-4-61x★ Default; SWE-bench 80%
Standardgpt-5.3-codex1xLatest codex flagship
Standardgpt-5.21xBest general reasoning
Standardgpt-5.2-codex1xAgentic coding
Standardgpt-5.1-codex-max1xExtended reasoning
Standardclaude-sonnet-4-51xSWE-bench 77%; prefer 4.6
Standardgpt-5.1-codex1xSWE-bench 77%
Standardgpt-5.11xGeneral purpose; SWE-bench ~76%
Standardgemini-3-pro1x1M context; SWE-bench 76%
Standardclaude-sonnet-41xLegacy; last choice
Heavyclaude-opus-4-63x★ SWE-bench 81%
Heavyclaude-opus-4-53xSWE-bench 81%; prefer 4.6
—claude-opus-4-6 fast30xAvoid; excessive quota cost
Routing principles
  • Active sub-agent types are claude, codex, copilot. The gemini agent type MUST NOT be spawned (see Gemini section above). All active agent types operate on independent flat-rate subscriptions. Route by model quality, quota conservation, and quota distribution.
  • All agents can execute code, modify files, and perform multi-step tasks. Route by model quality and quota, not by execution capability.
  • Spread work across agents to maximize total throughput.
  • For large-context tasks (>200k tokens), prefer Copilot with the gemini-3-pro model. Do NOT use the gemini agent type.
  • For trivial tasks, prefer Copilot free-tier models (0x quota) before consuming other agents' quota.
  • When multiple agents can handle a task equally well, prefer the one with the most remaining quota.
Cost-efficiency priority
  • Prefer flat-rate (subscription) agents over pay-per-token agents when quota is available.
  • Idle/bulk tasks MUST NOT consume premium quota. Route to: Copilot 0x → Aider+DeepSeek → Amazon Q.
  • Reserve premium quota for interactive use. Usage gates enforce minimum 70% remaining for Claude and Codex 5-hour windows.
  • Sonnet 4.6 is the workhorse. Default to Sonnet; escalate to Opus for Heavy tier or when strict rule compliance failures occur. Use medium effort for both — research shows higher effort degrades instruction-following on multi-constraint rule sets (arXiv:2505.11423).
Quota fallback logic

If the primary agent has no remaining quota:

  1. Query quota for all agents via ai-quota.
  2. Select any agent with available quota that has a model at the required tier.
  3. For Copilot fallback, prefer lower-multiplier models to conserve quota.
  4. For Standard tier with no subscription quota: fall back to Aider + DeepSeek (pay-per-token, ~$1/task).
  5. If the fallback model is significantly less capable, note the degradation in the dispatch report.
  6. If no agent has quota and no pay-per-token fallback is available, queue the task and report the block immediately. Do not drop silently.
Routing decision sequence
  1. Classify the task tier (Free / Light / Standard / Heavy / Large Context / Bulk/Idle).
  2. For Free tier: dispatch to Copilot with a 0x model. Skip quota check.
  3. For Bulk/Idle tier: dispatch to Copilot 0x → Aider+DeepSeek → Amazon Q (in that order). Skip premium agents and do not use the Gemini agent type.
  4. For other tiers: check quota for all agents via ai-quota.
  5. Pick the agent with available quota at the required tier; prefer the agent with the most remaining quota when multiple qualify.
  6. Set agent_type, model, and effort from the tables above (omit effort when column shows —).
  7. If primary choice has no quota: apply fallback logic.
  8. Include the chosen agent, model, tier, and effort in the dispatch report.
Notable models (not in current routing)

These models are not yet accessible via supported agent CLIs but are worth monitoring:

ModelProviderStrengthAccess
Kimi K2.5Moonshot AIIFEval SOTA 94.0API only; no CLI
Grok 4.20xAI4-agent council; 2M contextxAI API only
Qwen 3.5AlibabaIFEval 92.6API only
GLM-4.7Zhipu AIDual-judge highest scoreAPI only

Platform-specific workarounds

  • On platforms with policy-blocked file deletion commands (e.g., Codex on Windows), see the Codex-specific workarounds in the command-execution rule module.

Comments

Markdown supported