--- created: "2026-03-19 17:00" type: project status: active tags: [openclaw, ai-agent, discord, multi-agent] source: "ssh yiukai@192.168.68.108 ~/.openclaw/openclaw.json" --- # OpenClaw Agent 配置详情 ## 多 Agent 协作架构 ``` ┌─────────────┐ │ 你 (Owner) │ │ 964122...286 │ └──────┬──────┘ │ ┌────────────┼────────────┐ v v v ┌────────────┐ ┌────────────┐ ┌──────────────┐ │ 主 Guild │ │ Stock Guild │ │ Telegram │ │ ds-* agents │ │ invest-* │ │ (pairing) │ └────────────┘ └────────────┘ └──────────────┘ ``` ## 主 Guild Agent 协作 5 个 ds-* agent 在同一 Discord guild 中协作: ``` ds-commander (大统领) ──────┐ │ │ ├── ds-strategist (智库) │ agent-to-agent ├── ds-builder (牛马) │ 通信已启用 ├── ds-creator (作家) │ └── ds-guardian (大法官) ─┘ ``` ### 交互方式 - 所有 agent 在主 guild 的同一频道工作 - 通过 `@mention` 触发特定 agent (`requireMention: true`) - 支持的 mention 模式: - Discord mention: `<@!botId>` 或 `<@botId>` - 中文名称: 大统领、智库、牛马、作家、大法官 - 纯 ID: bot user ID ### 各 Agent 定位 | Agent | 角色定位 | 适用场景 | |-------|---------|---------| | 大统领 | 总指挥,任务分配 | 复杂任务协调、决策 | | 智库 | 战略分析师 | 策略规划、数据分析、方案比较 | | 牛马 | 执行者/开发者 | 编码实现、脚本编写、自动化 | | 作家 | 内容创作者 | 文档编写、报告生成、创意输出 | | 大法官 | 审核者/守护者 | 代码审查、质量把控、合规检查 | ## 投资分析师 (独立) - **Guild**: Stock (`1479926167141355560`) - **频道**: general (`1479926167736942774`) - **触发**: 不需要 mention (`requireMention: false`) - **定时**: 工作日 08:00 自动生成投资简报 - **技能**: invest-api ## 模型配置 所有 agent 统一使用 `kimi-coding/k2p5`: - 别名: Kimi Code - 提供商: kimi-coding 备选模型: `google-antigravity/claude-opus-4-6-thinking` - 通过 Google Antigravity OAuth 认证 ## Bindings (路由绑定) ```json agentId: "ds-commander" → channel: "discord", accountId: "commander" agentId: "ds-strategist" → channel: "discord", accountId: "strategist" agentId: "ds-builder" → channel: "discord", accountId: "builder" agentId: "ds-creator" → channel: "discord", accountId: "creator" agentId: "ds-guardian" → channel: "discord", accountId: "guardian" agentId: "invest-analyst"→ channel: "discord", accountId: "invest-analyst" ``` 每个 agent 绑定一个独立的 Discord bot 账户,实现一对一映射。 ## Session 配置 - **可见性**: all (所有 session 对工具可见) - **压缩模式**: safeguard ## Related - [[OpenClaw 部署配置分析]] - [[OpenClaw-Skill-Reference]]