MateClaw is a pluggable agent runtime that coordinates AI agents, tools, conversations, memory, and workflows. It is designed for personal and multi-user AI assistants, including agents used through chat platforms. Catalogue add-ons provide skills for extending its agent workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mateaix/mateclaw --skill multi_agent_collaborationgit clone --depth 1 https://github.com/mateaix/mateclawWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mateaix/mateclaw/multi_agent_collaboration)<a href="https://agentmods.dev/skills/mateaix/mateclaw/multi_agent_collaboration"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/multi_agent_collaboration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mateaix/mateclaw/multi_agent_collaboration"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/multi_agent_collaboration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00884 |
| Opus 5.5 | $0.00015 | $0.00354 |
| Sonnet 5.5 | $0.00007 | $0.00177 |
| Haiku 4.5 | $0.00004 | $0.00088 |
Grade A, and why
multi_agent_collaboration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
89% identical to multi-agent-design — 167 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
多 Agent 协作
何时使用
当任务明显需要多个专业 Agent 共同完成,或用户明确要求多 Agent 协作时使用。
应该使用
- 任务可拆分为多个专业子域,每个子域有对应 Agent
- 多个独立子任务可以并行执行(节省时间)
- 需要来自不同 Agent 的结果进行综合分析
- 用户明确要求"让 A 和 B 一起做"
不应使用
- 一个 Agent 可以完成,无需分工
- 只是简单咨询,用
chat_with_agent即可 - 刚收到某 Agent 的消息,不要立刻回调它(防死循环)
两种协作模式
模式一:串行(有依赖关系)
B 的任务需要 A 的结果时使用:
# 第一阶段:A 完成
result_a = delegateToAgent(
agentName="research-agent",
task="[来自 Agent coordinator 的请求] 收集最新 AI 大模型基准测试数据,返回原始数据表格。"
)
# 第二阶段:B 基于 A 的结果处理
result_b = delegateToAgent(
agentName="data-analyst",
task="[来自 Agent coordinator 的请求] 基于以下数据生成分析报告和可视化建议:\n\n" + result_a
)
模式二:并行(互相独立)
多个子任务之间没有依赖时使用,最多同时 3 个:
results = delegateParallel(
tasksJson="[
{\"agentName\": \"research-agent\", \"task\": \"[来自 Agent coordinator 的请求] 搜索竞品 A 的最新功能更新\"},
{\"agentName\": \"data-analyst\", \"task\": \"[来自 Agent coordinator 的请求] 分析我们产品上月用户留存数据\"},
{\"agentName\": \"writer-agent\", \"task\": \"[来自 Agent coordinator 的请求] 起草本次竞品分析报告的大纲\"}
]"
)
所有任务完成后一次性返回全部结果,再由当前 Agent 整合。
完整工作流程
第一步:查询可用 Agent
listAvailableAgents()
根据各 Agent 的描述分配任务。
第二步:判断串行 or 并行
| 判断条件 | 模式 |
|---|---|
| 子任务 B 依赖子任务 A 的结果 | 串行 |
| 子任务互相独立,可同时进行 | 并行 |
| 混合(部分有依赖) | 先并行无依赖任务,再串行有依赖任务 |
第三步:分配并执行
使用对应模式(见上)。
第四步:整合结果
由当前 Agent(编排者)负责整合所有 Agent 的返回结果,形成最终回复。不要把整合工作再委托给某个子 Agent。
关键规则
- 任务说明中加
[来自 Agent <名称> 的请求]帮助目标 Agent 识别来源 - 并行任务数量不超过 3 个;超过时按优先级分批
- 不让两个 Agent 互相调用对方(会形成死循环)
- 整合由编排者负责,不再向下委托
- 如需上下文连贯,在
task中附带前一阶段的关键结论
与 chat_with_agent 的区别
| 技能 | 场景 |
|---|---|
chat_with_agent |
一对一,咨询或单任务委托 |
multi_agent_collaboration |
一对多,多 Agent 分工、并行或串行编排 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 105 lines · 37 tokens per session scan A 6a70783ddc2b
multi_agent_collaboration is a skill published in the GitHub repository mateaix/mateclaw (1,216 stars, last pushed 2d ago), licensed Apache-2.0. It adds 37 tokens to every session and 884 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to multi-agent-design, differing in 167 lines, and is treated as a copy.
multi_agent_collaboration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| multi_agent_collaborationmateaix/mateclaw | Skill | 1.2k | 2d ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| appjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| openclaw-security-checkerjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| pentest-whitebox-code-reviewjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| pentest-business-logicjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| seclens-enterprise-webjd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |
| pentest-recon-attack-surfacejd-opensource/JoySafeter | Skill | 318 | 1mo ago | Apache-2.0 | A | 38 | Claude Code, Codex |