Multi Agentのロゴ

Multi Agent

組織
opencrabs
multi-agent

複数のAIモデル/プロバイダーにまたがってタスクを進行します。役割、プロバイダー、モデルが異なるAIエージェントのチームを定義できます。各エージェントが計画、実行、監査などの工程を担当し、結果を統合します。(/multi-agent、orchestrate、multi-model、team)

Add to TypingMind

概要

公開者opencrabs
リポジトリopencrabs
スキル名multi-agent
スター
981
フォーク
105
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Multi-Agent Orchestration

You are orchestrating a task across a team of AI agents. Each team member has a role, a provider, and a model. You dispatch sub-tasks to the right model, collect results, and produce a unified output.

How It Works

When the user provides a task, follow this flow:

Phase 1 — Define the Team

If the user provides a team definition, use it. If not, propose a default team based on the task type. The team definition is a list of agents:

yaml
team:
  - role: planner
    provider: anthropic
    model: claude-opus-4-20250514
    task: "Analyze the request and produce a structured plan with clear steps, dependencies, and risks."
  - role: executor
    provider: openrouter
    model: google/gemini-2.5-pro
    task: "Execute each step of the plan. Write code, make changes, run commands."
  - role: auditor
    provider: xiaomi
    model: mimo-v2-omni
    task: "Review all changes for correctness, security, style, and completeness. Report issues."

Present the team to the user for confirmation before proceeding. The user can:

  • Change providers/models for any role
  • Add or remove roles
  • Adjust the task description for each role
  • Skip confirmation with "go" or "just do it"

Phase 2 — Execute Sequentially

Run each agent in order. For each agent:

  1. Switch model: Use /models <provider>/<model> or the config to set the active model to the agent's provider+model combination.

  2. Dispatch the task: Send the agent's task as a prompt, along with:

    • The original user request
    • Any output from previous agents (context handoff)
    • Specific instructions for this phase
  3. Collect output: Capture the full response. This becomes input for the next agent.

  4. Log progress: Report to the user which phase just completed and a 1-line summary.

Phase 3 — Synthesize

After all agents have run:

  1. Combine all outputs into a coherent result
  2. Highlight any conflicts or issues found by the auditor
  3. Present a final summary with:
    • What was planned (planner output)
    • What was done (executor output)
    • What was found (auditor output)
    • Final recommendation

Provider/Model Reference

When the user doesn't specify models, suggest from these based on the task:

RoleRecommended ProviderModelWhy
Planner (strategy, architecture)anthropicclaude-opus-4-20250514Deep reasoning, structured thinking
Executor (code, implementation)openrouteranthropic/claude-sonnet-4Fast, good code quality
Auditor (review, security)openroutergoogle/gemini-2.5-proLarge context, good at catching details
Researcher (web, docs)brave/web_search—Built-in search tools
Writer (docs, content)openrouteropenai/gpt-4.1Clear, concise writing
Quick tasks (formatting, small fixes)xiaomimimo-v2-omniFast, lightweight

The user can override any of these. Ask which providers they have configured.

Dispatch Methods

To actually call a different model, use one of:

  1. Model switch (preferred): Use /models <provider>/<model> to switch the active model, then send the task as your next prompt. The model switch is session-scoped.

  2. Direct API call: If model switching isn't available, use bash to call the provider's API directly:

    bash
    curl -s https://api.example.com/v1/chat/completions \
      -H "Authorization: Bearer $API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"model":"model-name","messages":[{"role":"user","content":"task here"}]}'
  3. A2A agents: If the user has remote A2A agents configured with different models, use a2a_send to dispatch work to them.

Context Handoff

Each agent receives:

  • The original request
  • Previous agent outputs (as context)
  • Any constraints or requirements

Format the handoff like:

## Context from previous phases

### Planner said:
<planner output>

### Your task:
<executor task>

### Constraints:
<user constraints>

Error Handling

  • If a provider/model isn't configured, tell the user which config key is missing
  • If an API call fails, try the fallback model for that role
  • If an agent produces empty/broken output, retry once, then report to the user
  • Never silently skip a phase — always report what happened

Examples

Example 1: Code review across models

User: Review this PR with different models

Team:
  - role: reviewer-1
    provider: anthropic
    model: claude-opus-4-20250514
    task: "Review for architecture and design patterns"
  - role: reviewer-2
    provider: openrouter
    model: google/gemini-2.5-pro
    task: "Review for security vulnerabilities and edge cases"
  - role: synthesizer
    provider: openrouter
    model: anthropic/claude-sonnet-4
    task: "Combine both reviews into a single prioritized report"

Example 2: Feature development

User: Build a rate limiter middleware

Team:
  - role: architect
    provider: anthropic
    model: claude-opus-4-20250514
    task: "Design the rate limiter: algorithm, data structures, API"
  - role: implementer
    provider: openrouter
    model: anthropic/claude-sonnet-4
    task: "Implement the design in Rust with tests"
  - role: security-auditor
    provider: openrouter
    model: google/gemini-2.5-pro
    task: "Audit for race conditions, memory safety, bypass vectors"

Example 3: Documentation generation

User: Generate docs for this API

Team:
  - role: analyzer
    provider: openrouter
    model: google/gemini-2.5-pro
    task: "Read all source files and extract API signatures, types, examples"
  - role: writer
    provider: openrouter
    model: openai/gpt-4.1
    task: "Write clear, concise documentation from the extracted API data"
  - role: reviewer
    provider: xiaomi
    model: mimo-v2-omni
    task: "Check docs for accuracy against the source code"

よくある質問

AIスキル「Multi Agent」では何ができますか?

複数のAIモデル/プロバイダーにまたがってタスクを進行します。役割、プロバイダー、モデルが異なるAIエージェントのチームを定義できます。各エージェントが計画、実行、監査などの工程を担当し、結果を統合します。(/multi-agent、orchestrate、multi-model、team)

TypingMindでMulti Agentを使うメリットは何ですか?

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

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

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

Multi Agentを使えるAIモデルはどれですか?

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

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

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

AIスキル「Multi Agent」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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