跳到正文
Skillpedia
智能体6.0k · #14476

subagent-dag-orchestration

它能做什么

这项技能说明如何为一组 AI 智能体组织较大的任务,决定哪些步骤可以一起运行、哪些必须等待。适合把包含许多部分的复杂任务交给 AI 宿主的人。

适用场景

  • ✓当一项委派的任务可以拆分为多个由智能体执行的子任务时。
  • ✓当某些步骤可以同时进行,而其他步骤依赖于较早步骤的结果时。
  • ✓当一个步骤需要另一个步骤的输出,并且必须正确设置交接时。

技能链接

https://github.com/EverMind-AI/Raven/blob/main/raven/memory_engine/skills/subagent-dag-orchestration/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EverMind-AI/Raven/blob/main/raven/memory_engine/skills/subagent-dag-orchestration/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把这项研究任务拆分为可并行执行的子任务,并把每个结果传给写作步骤。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体把任务组织成一张图,在共享的数量上限内把彼此独立的步骤一起运行,并把每一步的输出保存到下一步会读取的文件中。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Sub-Agent DAG Orchestration

When to use

The trigger is delegated work that breaks into several tasks.

The host's role decides what to delegate; this guide decides how to group the work. A DAG node dispatches to an agent on the roster, including Raven-General; it cannot call the host's tools. Choose from that tool's subagent parameter enum: agent names on ordinary turns, worker labels when a Worker Table is bound. A worker label selects the underlying agent together with that worker's brief. The roster describes the underlying agents' capabilities; its names are not dispatch values on a worker turn. The host's own coordination calls, such as reading a brief or checking task status, are not delegated tasks and do not need a graph just because there are several of them.

For the delegated tasks, test three things before dispatching them one at a time:

  • Independence — can two or more steps run at the same time? Independent nodes are scheduled concurrently, up to the shared sub-agent cap (max_concurrent_subagents — spawn draws on the same allowance).
  • Handoff — does a step hand its result to the next one? A node's output is written to a file the downstream node reads, and the graph wires that handoff itself. A spawn can hand its result on too — it takes a node_id and a later task names it the same way a node does — but only across a turn of yours; a graph needs none.
  • Specialism — do the steps want different sub-agents? The roster at the end of the tool list says what each agent is for. When a Worker Table is bound, the subagent parameter also describes each worker's brief; choose a label that fits.

If any of the three holds, express the whole task as one run_subagent_dag call rather than dispatching sub-agents one at a time. Persistence is not one of the reasons: every node's prompt and output is written to disk, and so is every spawn's.

Iteration is graphs in series, not a cycle in one graph. A graph is acyclic and runs once. When the work loops — code changes feeding experiment rounds feeding the next code change — dispatch one graph per round and drive the loop yourself: each graph's outputs come back to you, and the next round's nodes reuse the same instance handles, so each side keeps its context across rounds.

If none of the three holds, dispatch the work to one agent: use spawn if it is offered, or a one-node graph if run_subagent_dag is the only dispatch path. The host's role still governs the work; choosing one agent instead of a graph does not change that role.

Every install can run a graph: raven's own agents are on the roster whether or not any third-party agent is configured, so run_subagent_dag is always available. Which agents exist is still the roster's answer, not this file's — read it at the end of the tool list. Use the current parameter enum to choose which names or worker labels you can pass.

Write the brief as the owner gave it

A node sees only its prompt. Whatever the owner asked for, and whatever the owner allowed the node to change, reaches the node only if the prompt carries it -- and the prompt is where a whole run's search space gets narrowed without anyone deciding to narrow it. Three rules, each from a measured loss on 2026-09-08, where a two-round search left the one knob worth most of the result untouched:

  • The owner's words and scope go in as written; your steer is marked as yours. Quote the owner's request in every node's brief, not only the first round's. Your own reading of where the gains are is welcome as a suggestion, and it stays a suggestion: "gains can only come from ..." is a boundary the owner never drew. That day the owner allowed "training configuration, data mix, architecture, algorithm"; the round-one brief added "the hyperparameters are exhausted, so gains can only come from three classes outside the falsified list", and the round-two brief to the experiment runner opened with "you change no case". The runner changed nothing in 26 scored runs. One plain training setting, the kind the runner owned, was worth most of the gap to the best known result. It was never tried.
  • A list of tried things stays a list; it does not become a category. When a handover names settings already swept, pass the list itself and ask the node to check what is not on it before it picks directions. Eighteen named hyperparameter groups became "the hyperparameters are exhausted"; the
常见问题

所有任务都会同时运行吗?

不会。只有彼此独立的步骤会同时运行,且受并发子智能体的共享上限约束。

步骤之间如何传递结果?

每一步把输出写入文件,下一步读取该文件。

子智能体可以使用宿主的工具吗?

不可以。每个步骤都在团队中的某个智能体上运行,无法调用宿主自己的工具。

详情

作者的原始描述

Use when delegated work breaks into several tasks that agents on the roster can carry out. The host's role decides what to delegate; this skill decides how to group that work. A DAG node dispatches to a roster agent, including the generic agent, and cannot call the host's tools. Choose from the tool's `subagent` parameter enum -- agent names on ordinary turns, worker labels when a Worker Table is bound. The roster describes underlying capabilities. Reading a brief or checking task status is host coordination, not a reason to create graph nodes. Before dispatching tasks one at a time, test thre

repo: EverMind-AI/Raven

热度

GitHub 星标
6.0k
排名
#14476
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能