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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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—spawndraws 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
spawncan hand its result on too — it takes anode_idand 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
subagentparameter 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
コメント
- …
このリポジトリの他のスキル
deck-to-pptx
6.0kpython-pptxで、アイコン、グラフ、数式、そのセットアップが持つツールを含めた、本物のPowerPointの.pptxファイルを作る方法をエージェントに教えます。
image-gen
6.0kOpenRouter上のGoogleのNano Bananaの画像モデルを使い、テキストの説明から絵や画像を生成します。
ppt-script-authoring
6.0k一つの明確な論点を中心にスライドデッキを設計し、独自のレイアウトを持つpython-pptxのプログラムとして作る方法をエージェントに教えます。
multi-agent-coding
6.0kコードの作業を適切なコーディングエージェントに渡し、作業ごとに新しいエージェントを起動して、ステップ間の結果をファイルで受け渡すようエージェントを支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。