Agents Swarmのロゴ

Agents Swarm

コミュニティ
jpoehnelt
agents-swarm

Fan out N parallel subagent workers in one turn, aggregate their results, and report PASS, ISSUES, or BLOCKED per worker. Use for /agents-swarm, "swarm this", parallel coverage across slices, races between approaches, or broad exploration.

概要

公開者jpoehnelt
リポジトリskills
スキル名agents-swarm
スター
23
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Swarm

Fan out N workers, drain them, return one report. Keep a todo list with one entry per phase: Frame, Fan out, Aggregate, Report.

Repo facts (from AGENTS.md or CLAUDE.md): the local run command and whether parallel instances in separate worktrees get their own ports and data.

Phase A: Frame

  1. State the done predicate and the report the swarm must return.
  2. Choose the shape:
    • Partition. Each worker owns one slice.
    • Race. N workers get the same brief. Declare the rule before spawning: first pass, rank all, or best-of.
    • Mixed. Slices, with a race inside some of them.
  3. Pick N. Cover every required slice. Do not exceed what the machine and the task justify.
  4. Give each writing worker its own output path or its own worktree so workers never edit the same file. A worker in its own worktree must commit there and report the branch and commit; integrate each partition slice, and only the winning arm of a race, into the main checkout (merge or cherry-pick) before reporting it PASS; leave losing arms unmerged. Read-only workers need nothing. A worker that runs the app uses the repo's local run command in its own worktree; if instances would share ports or data, run those workers in batches that cannot collide.
  5. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method: sample count, what one sample is, and the order.

Phase B: Fan out

Spawn all N workers in one turn as parallel subagents, using a smaller, faster model for workers. Run them in the background if the client supports it so they run concurrently, then collect each result when it completes. (Claude Code: the Agent tool; Codex: its subagent/collaboration tool.) If the client caps concurrent subagents, run the slices in batches within that cap; if it cannot spawn subagents, run them sequentially in the main thread.

Every brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Workers report exactly one of:

  • PASS with evidence.
  • ISSUES with every issue the worker can prove, not only the first.
  • BLOCKED with what stopped it and what it needs.

If a worker drops out, proceed with N-1 and note it.

Phase C: Aggregate

  • Read every terminal result.
  • Drop a result that omits the SHAs or method its brief required, and respawn that worker once. After a second miss, record a gap. A gap is not a pass.
  • For coverage, every required slice needs a result.
  • For a race, apply the rule declared in Phase A. If judging a race needs taste or tradeoffs, spawn one judge subagent using the strongest available model and give it only the worker results.
  • Do not paste raw worker output.

Phase D: Report

Return one report in chat:

  • A table: worker or slice, status, one-line evidence.
  • One line per issue.
  • Gaps and dropouts.
  • The race rule and the winner, when a race ran.
  • Overall status: PASS only if every required slice passed.

Verify

  • Workers were launched in one message, or in batches within the client's subagent cap, or sequentially when subagents are unavailable.
  • Each passing worktree slice and race winner was integrated into the main checkout; losing arms were left unmerged.
  • Every brief was self-contained and named its report format.
  • Each slice has a result or a recorded gap.
  • The report has no raw dumps.

よくある質問

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

Fan out N parallel subagent workers in one turn, aggregate their results, and report PASS, ISSUES, or BLOCKED per worker. Use for /agents-swarm, "swarm this", parallel coverage across slices, races between approaches, or broad exploration.

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

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

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

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

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

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

Agents Swarmで使えるAIモデルの数に制限はありますか?

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

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

はい。jpoehneltがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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