← 返回
AI智能 中文

Delegate

Route tasks to sub-agents with optimal model selection, error recovery, and result verification.
将任务路由至子代理,实现最优模型选择、错误恢复和结果验证。
ivangdavila
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 3
Stars
📥 1,435
下载
💾 54
安装
1
版本
#latest

概述

Core Rule

Spawn cost < task cost → delegate. Otherwise, do it yourself.

Model Tiers

TierModelsCostUse for
-----------------------------
SmallHaiku, GPT-4o-mini, Gemini Flash~$0.25/1MSearch, summarize, format, classify
MediumSonnet, GPT-4o, Gemini Pro~$3/1MCode, analysis, synthesis
LargeOpus, o1, Gemini Ultra~$15/1MArchitecture, complex reasoning

Rule of thumb: Start with smallest tier. Escalate only if output quality insufficient.

Spawn Checklist

Every spawn must include:

1. TASK: Single clear deliverable (not "help with X")
2. MODEL: Explicit tier choice
3. CONTEXT: Only files/info needed (never full history)
4. OUTPUT: Expected format ("return JSON with...", "write to file X")
5. DONE: How to signal completion

Check templates.md for copy-paste spawn templates.

Error Recovery

Error TypeAction
--------------------
Sub-agent timeout (>5 min no response)Kill and retry once
Wrong output formatRetry with stricter instructions
Task too complex for tierEscalate: Small→Medium→Large
Repeated failures (3x)Abort, report to user

Check errors.md for recovery patterns and escalation logic.

Verification

Never trust "done" without checking:

  • Code: Run tests, check syntax
  • Files: Verify they exist and have content
  • Data: Spot-check 2-3 items
  • Research: Confirm sources exist

Don't Delegate

  • Quick tasks (<30 seconds to do yourself)
  • Tasks needing conversation context
  • Anything requiring user clarification mid-task

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 23:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,664
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,836
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,138