multi-agent-coding
它能做什么
这项技能指导 AI 宿主把编程工作(例如编写、修复、测试或审查代码)交给编程子智能体。适合同时运行多个 AI 智能体、并希望编程工作处理得当的人。
适用场景
- ✓当你要求一组智能体编写、修改、修复、测试或审查代码时。
- ✓当尚未完成的编程工作需要修正或修复 bug 时。
- ✓当某个编程智能体报告已达到使用上限,而工作必须继续时。
技能链接
https://github.com/EverMind-AI/Raven/blob/main/raven/memory_engine/skills/multi-agent-coding/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让一个编程智能体编写登录功能,然后审查它的改动。”
每周 5 个新技能,1 分钟读完。
工作原理
宿主从团队中挑选合适的编程智能体,为每项工作启动新任务,并通过文件在各步骤之间传递结果。在任务未结束前,后续请求会交回同一个智能体。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Coding with sub-agents
1. A coding agent for the work
Coding work goes to a coding agent on the roster: the one the user named, otherwise one
the ## Delegation section says owns coding, otherwise one whose description says it
writes or edits code. When a Worker Table is bound, subagent takes worker labels
instead: pick the worker whose brief covers the coding work. When none does, tell the user
and ask how to go on rather than writing the code yourself or sending it to an agent
outside the enum.
2. One instance per task
An instance is one conversation with one agent, named by the instance handle.
- A new task gets a new instance, never an earlier task's handle, which would carry that task's context into it. That holds for a task built on a finished one, such as docs for a finished feature: it starts fresh, with the earlier task's output file (section 3).
- A follow-up on an unfinished task - a correction, a bug in what it did, "keep going" -
goes to that task's instance: same
subagent, sameinstance, a newnode_id. The agent keeps its context, so the prompt carries the new request in the user's words. - Send a follow-up only once the instance's running dispatch has returned: sent sooner, it can start a separate conversation without that context.
3. Results by file
When a task needs what another produced, put that task's output file in its prompt -
{{ <node_id>.output_path }} of its last dispatch - instead of retelling the result. The
file is the agent's report, not the code, so also say where the code is (section 4).
4. A worktree per task in a shared project
Local sub-agents share this session's working directory, where nothing locks a file, and
giving each agent its own files there does not isolate them: tests run against the other's
half-made edits, and one agent's git stash or checkout wipes the other's work. So when
a coding task will run beside another in the same project - dispatched together, or while
the other is running or unfinished - its prompt tells the agent to make its own worktree,
on a branch you name for the task (fix/login-session-expiry), so the work can be found
even if the agent stops before reporting:
Create a git worktree of your own for this task on a new branch
<branch>, outside the project or in a directory git ignores. Work only there, and end your report with its path and branch. If the project is not a git repository, do not make it one: work in place on only this task's files, and say so.
- Every later prompt for the task - a follow-up, a takeover (section 5) - names its worktree: the branch, and the path from the report. A task built on its code, such as docs for it, works there too once the task has finished.
- A worktree starts from the last commit, without the checkout's uncommitted changes. When the request depends on them, ask the user before dispatching.
- When the work is done, tell the user which branch holds it. Merging the branch or removing the worktree is work for the task's instance, once the user asks.
5. Out of quota: another coding agent
When a coding agent's result says its usage limit, quota, credits or balance is used up - often with a 402 or 429 status or a reset time, in whatever words or language - send the task to another coding agent right away.
- Pick one that does not draw on the same account: agents that run through one platform share its quota, and a spent platform credit fails them all.
- When a Worker Table is bound, the takeover goes to another worker whose brief covers it and that runs on a different agent, by the same account rule.
- Use a new
node_idand a newinstance. The old instance's context does not carry over, so the prompt carries what the task needs: the user's requests on it, the worktree's branch and any path a report gave (the worktree may hold the first agent's unfinished changes), and the output files of the task's finished dispatches. From then on, the new instance is the task's instance. - Tell the user which agent ran out (and when it resets, if it said) and which took over. Do not send the task back to the one that ran out; when no coding agent is left, ask the user how to go on.
- In a graph, answer the node's report with
replan, putting its work on another coding agent under a new id.continuewould send it back to the agent that ran out, and the user need not be asked.
Raven's own limits refuse every agent alike, so follow th
常见问题
宿主自己写代码吗?
不写。它把编程工作交给合适的编程智能体,而不是直接编写代码。
每项任务都是全新开始的吗?
是的。新任务会启动新的智能体,因此旧的上下文不会带过去,除非是对未完成工作的后续请求。
如果没有合适的编程智能体怎么办?
宿主会告知你,并询问如何继续,而不会自己编写代码。
详情
作者的原始描述
Use when the user needs a coding task done - code written, changed, fixed, tested or reviewed - through its follow-ups, and when a coding agent reports its quota or usage limit used up.
repo: EverMind-AI/Raven
热度
- GitHub 星标
- 6.0k
- 排名
- #14474
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
deck-to-pptx
6.0k教你的智能体用 python-pptx 制作真正的 PowerPoint .pptx 文件,包括图标、图表、公式以及本环境中的工具。
image-gen
6.0k帮你的智能体根据文字描述绘制或生成图片,使用 OpenRouter 上 Google 的 Nano Banana 图像模型。
ppt-script-authoring
6.0k教你的智能体围绕清晰的故事设计幻灯片,并使用自定义版式,以 python-pptx 程序的形式制作。
raven-self-config
6.0k帮你的智能体查看并修改 Raven 应用自身的设置,例如连接智能体和聊天应用,并解释某项能力为何缺失。