Multi Agent 标志

Multi Agent

组织
opencrabs
multi-agent

协调多个 AI 模型/服务提供商协同完成任务。为智能体团队指定不同的角色、服务提供商和模型。每个智能体负责一个阶段(规划、执行、审核等),最后汇总结果。(/multi-agent、orchestrate、multi-model、team)

Add to TypingMind

概览

发布者opencrabs
代码仓库opencrabs
技能名称multi-agent
星标数
981
复刻数
105
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 opencrabs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Multi Agent AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

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

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Multi Agent。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Multi Agent 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 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"

常见问题

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,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Multi Agent?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Multi Agent 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Multi Agent 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Multi Agent AI 技能免费吗?

是的。opencrabs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇