Dispatching Parallel Agentsのロゴ

Dispatching Parallel Agents

コミュニティ
andreaswasita
dispatching-parallel-agents

Runs independent subtasks concurrently via sub-agents.

概要

公開者andreaswasita
リポジトリcopilot-agents-dojo
スキル名dispatching-parallel-agents
スター
54
フォーク
15
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    andreaswasitaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDispatching Parallel AgentsをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/dispatching-parallel-agents
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/dispatching-parallel-agents .claude/skills/dispatching-parallel-agents
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDispatching Parallel Agentsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDispatching Parallel Agentsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Dispatching Parallel Agentsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Dispatching Parallel Agents Skill

Runs multiple sub-agents concurrently when a plan contains independent subtasks with non-overlapping file boundaries. Each sub-agent receives a self-contained spec. Does NOT parallelize work with dependencies or shared mutable state — that path silently corrupts results.

When to Use

  • The plan contains 2+ tasks with no dependency edges between them.
  • Multiple research investigations or codebase explorations can run side-by-side.
  • Multiple verification runs (lint, test, type-check) can run in parallel.
  • User explicitly asks for parallel execution or to "speed this up".
  • NOT for debugging (parallel agents mask timing bugs).
  • NOT when tasks edit overlapping files or share mutable state.

Prerequisites

  • An approved plan in tasks/todo.md with task IDs and explicit dependencies.
  • The task Copilot tool available (or equivalent sub-agent mechanism).
  • Each candidate task has a precise file-boundary scope ("owns" a directory or file set).
  • Integration test or verification step that exercises the combined result.
  • The view, edit, grep, and powershell Copilot tools.

How to Run

text
1. From `tasks/todo.md`, pick tasks with no dependency edges between them.
2. Confirm each has a non-overlapping file scope.
3. Write a self-contained spec per agent (goal, files, DO NOT touch, verification).
4. Dispatch all sub-agents in one tool-call batch.
5. Collect each result; integrate.
6. Run an integration verification on the merged result.
7. Log failures and reasons in `tasks/lessons.md`.

Quick Reference

Parallel-safeSequential-only
Independent API modules in different foldersTask B reads Task A's output
Separate research questionsShared config edits
Per-package builds in a monorepoSame-file mutations
Per-file lint or type-check passesMigration scripts that order-depend
Spec fieldRequired
GoalOne sentence
Files ownedDirectory or explicit list
Files forbidden"DO NOT touch" list
VerificationTests this agent must pass before returning
Return formatWhat the agent reports back

Procedure

Step 1: Identify Independents

Use view on tasks/todo.md. List tasks with empty or already-satisfied dependency sets. Cross-check file scopes: any overlap → sequential, not parallel.

markdown
## Parallelizable
- [ ] Task A: User API endpoints (`src/api/users/`)
- [ ] Task B: Product API endpoints (`src/api/products/`)
- [ ] Task C: Migration scripts (`src/db/migrations/`)

## Sequential (depends on A+B+C)
- [ ] Task D: Integration tests for all endpoints

Step 2: Write Per-Agent Specs

Each spec is self-contained — no agent should need to ask "what do I do?":

markdown
### Agent 1 Spec: User API Endpoints
Goal: Implement CRUD endpoints for users.
Files owned: src/api/users/ (create new); src/routes/index.ts (add one route line).
DO NOT touch: src/api/products/, src/db/.
Verification: All new tests in src/api/users/__tests__/ pass; existing tests unaffected.
Return: list of files created + test result summary.

Step 3: Dispatch in One Batch

Issue the sub-agent calls in a single tool-calling batch so they execute in parallel, not sequentially. Use the task tool with mode: background for any agent expected to take more than a few seconds.

Step 4: Collect and Integrate

For each returned agent:

  • Confirm it reports verification PASS.
  • Inspect the diff with view and git diff --stat.
  • Merge changes into the current worktree if the agents wrote to separate worktrees.

Step 5: Integration Verification

After all agents complete, run the full test suite and bash scripts/verify.sh --check on the combined result. Per-agent green does not imply combined green.

Step 6: Handle Partial Failure

If one agent fails:

  1. Do not block the others — let successes complete.

  2. Diagnose: was the spec ambiguous? Hidden dependency missed?

  3. Re-dispatch the failed task with a revised spec, or finish it sequentially.

  4. Append to tasks/lessons.md:

    yaml
    - date: 2026-05-19
      error_type: parallel-dispatch-failure
      trigger: "Agent 2 needed Agent 1's output; was dispatched in parallel"
      root_cause: "Implicit dependency not surfaced in tasks/todo.md"
      fix: "Re-ran Agent 2 after Agent 1 completed"
      rule: "Every parallel-eligible task must declare its dependencies explicitly"

Pitfalls

  • DO NOT parallelize tasks with dependencies. They will race and one will silently produce wrong output.
  • DO NOT dispatch 20 agents at once. 3–5 is manageable; more is chaos and tool-budget exhaustion.
  • DO NOT skip integration verification. Per-agent green ≠ combined green.
  • DO NOT write vague specs ("handle the user stuff"). They produce vague output.
  • DO NOT ignore partial failures. One failure can invalidate downstream work that already merged.

Verification

  • Dependency check ran on tasks/todo.md — only zero-dep tasks dispatched in parallel.
  • File scopes verified non-overlapping before dispatch.
  • Each agent received a self-contained spec including DO NOT list.
  • All agents reported back; failures logged.
  • Integration test suite + scripts/verify.sh --check passed on the combined result.
  • If a failure occurred, tasks/lessons.md was updated with the root cause.

よくある質問

AIスキル「Dispatching Parallel Agents」では何ができますか?

Runs independent subtasks concurrently via sub-agents.

TypingMindでDispatching Parallel Agentsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Dispatching Parallel Agentsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDispatching Parallel Agentsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/dispatching-parallel-agentsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Dispatching Parallel Agentsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Dispatching Parallel Agentsは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDispatching Parallel Agentsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Dispatching Parallel Agents」は無料ですか?

はい。andreaswasitaがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇