Search

PythonReactSEOPDF
OpenClaw

Multi Agents Orchestration

OpenClaw 多 Agent 编排方法论

cchaojiejes0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cchaojiejes/multi-agents-orchestration

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

OpenClaw 多 Agent 编排方法论

本 skill 定义了 OpenClaw 多 Agent 团队的编排方法论:两种协作模式的本质区别、如何共存、配置落点、排障指南。主 Agent 在需要搭建或调整团队协作时加载此 skill。


一、两种协作模式

OpenClaw 多 Agent 协作有两条独立链路。理解它们的区别是搭建团队的前提。

模式 A:后台调度(Backend Spawn)—— 主链路

主 Agent 通过 sessions_spawn 在后台拉起子 Agent。用户只和主 Agent 对话。

用户 → 主Agent → sessions_spawn(agentId, task) → 专业Agent → 结果回传 → 主Agent汇总输出

调用示例:

sessions_spawn({
  agentId: "finance",
  task: "分析这份财报,给出结论、依据和风险提示",
  mode: "run",
  runtime: "subagent"
})

特征:

  • 子任务后台完成,用户不可见
  • 主 Agent 统一汇总、统一对外
  • 不依赖任何 Discord 配置
  • 适合研究、分析、复核、技术执行等编排型工作
模式 B:Discord @Mention —— 外显层

Agent 作为独立 Discord Bot 出现,用户或其他 Bot 通过 @ 直接触发。

Discord用户 → @某Bot → Discord Account → Gateway Binding → 对应Agent → 回复用户

特征:

  • Agent 以独立身份在频道发言
  • 需要额外维护 Discord token、binding、频道权限
  • 适合公开协作、角色人格化、分频道值守
模式 C:Bot-Bot @Mention —— 增强层(第三优先级)

Bot 之间在 Discord 里互相 @。非主流程,仅在明确需要公开协作时启用。

要求 allowBots: true 且 bot ID 进入白名单。核心调度仍应走 spawn。


二、两种模式的本质区别

维度 Backend Spawn Discord @Mention
本质 主Agent的内部编排能力 外部渠道的接入入口
触发方式 主Agent代码调用 sessions_spawn 用户在Discord频道 @ Bot
用户感知 只看到主Agent的汇总输出 看到独立Bot在频道发言
配置依赖 agents.list + subagents.allowAgents 额外需要 token + accounts + bindings
是否必须 是(核心链路) 否(可选增强)
Agent间协作 主Agent内部路由,用户无感 Bot之间公开@,用户可见
适合场景 内部编排、复杂任务链、统一输出 角色外显、分频道值守、公开协作

三、两种模式如何同时运行

**核心机制:...

Source information

Source
github
Repository
openclaw/skills
Path
skills/cchaojiejes/multi-agents-orchestration
Version
—
Commit
c7a081eecfc247e4c57341554df6220d9522feb3
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# OpenClaw 多 Agent 编排方法论

> 本 skill 定义了 OpenClaw 多 Agent 团队的编排方法论:两种协作模式的本质区别、如何共存、配置落点、排障指南。主 Agent 在需要搭建或调整团队协作时加载此 skill。

---

## 一、两种协作模式

OpenClaw 多 Agent 协作有两条独立链路。理解它们的区别是搭建团队的前提。

### 模式 A:后台调度(Backend Spawn)—— 主链路

主 Agent 通过 `sessions_spawn` 在后台拉起子 Agent。用户只和主 Agent 对话。

```
用户 → 主Agent → sessions_spawn(agentId, task) → 专业Agent → 结果回传 → 主Agent汇总输出
```

调用示例:

```js
sessions_spawn({
  agentId: "finance",
  task: "分析这份财报,给出结论、依据和风险提示",
  mode: "run",
  runtime: "subagent"
})
```

特征:
- 子任务后台完成,用户不可见
- 主 Agent 统一汇总、统一对外
- 不依赖任何 Discord 配置
- 适合研究、分析、复核、技术执行等编排型工作

### 模式 B:Discord @Mention —— 外显层

Agent 作为独立 Discord Bot 出现,用户或其他 Bot 通过 `@` 直接触发。

```
Discord用户 → @某Bot → Discord Account → Gateway Binding → 对应Agent → 回复用户
```

特征:
- Agent 以独立身份在频道发言
- 需要额外维护 Discord token、binding、频道权限
- 适合公开协作、角色人格化、分频道值守

### 模式 C:Bot-Bot @Mention —— 增强层(第三优先级)

Bot 之间在 Discord 里互相 `@`。**非主流程,仅在明确需要公开协作时启用。**

要求 `allowBots: true` 且 bot ID 进入白名单。核心调度仍应走 spawn。

---

## 二、两种模式的本质区别

| 维度 | Backend Spawn | Discord @Mention |
|------|--------------|-----------------|
| **本质** | 主Agent的内部编排能力 | 外部渠道的接入入口 |
| **触发方式** | 主Agent代码调用 `sessions_spawn` | 用户在Discord频道 `@` Bot |
| **用户感知** | 只看到主Agent的汇总输出 | 看到独立Bot在频道发言 |
| **配置依赖** | `agents.list` + `subagents.allowAgents` | 额外需要 token + accounts + bindings |
| **是否必须** | **是(核心链路)** | 否(可选增强) |
| **Agent间协作** | 主Agent内部路由,用户无感 | Bot之间公开@,用户可见 |
| **适合场景** | 内部编排、复杂任务链、统一输出 | 角色外显、分频道值守、公开协作 |

---

## 三、两种模式如何同时运行

**核心机制:...

Related skills

OpenClaw

laborany

laborany

基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...

OpenClaw

openclaw-admin

duanecilliers

Web-based admin dashboard for OpenClaw — manage Discord persona bots, workspace files, skills, cron jobs, channels, and config