Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计提醒

multi-agent-architecture多 Agent 架构

Agent Skill

multi-agent-architecture 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,987

周安装

122

GitHub Stars

公开资料未说明

下载量

966
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-agent-architecture(多 Agent 架构)
来源仓库:https://github.com/mosoonpi-ai/multi-agent-architecture
安装命令:
openclaw skills install multi-agent-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install multi-agent-architecture

简介

提供在单台 OpenClaw 服务器上运行多个专用 AI 代理的架构指南与实践方案。

  • 适用于构建多角色协作系统,涵盖工作区隔离、共享内存管理与 Telegram 集成等关键设计。
  • 帮助用户合理分配资源、定义代理职责并保障通信安全,提升系统可扩展性。
  • 安装命令为 openclaw skills install multi-agent-architecture,建议结合官方文档进行环境预检。
  • 部署前应评估硬件负载与网络带宽,确保满足多实例并发运行的资源需求。

SKILL.md

name
multi-agent-architecture
description
Architecture guide for running multiple specialized AI agents on a single OpenClaw server. Covers workspace isolation, agent roles, shared memory, Telegram routing, rate limit management, monitoring, and self-healing. Use when you need more than one agent or want to split responsibilities between specialized bots.
version
1.0.1
author
mosoonpi-ai
license
MIT
tags
multi-agent, architecture, agents, workspaces, telegram, monitoring, production

Multi-Agent Architecture — Run Multiple AI Agents on One Server

What You Get

  • 💰 5 agents on one €47/mo VPS — no need for separate servers
  • 60% fewer rate limit hits with multi-token strategy across agents
  • 📉 75% less token burn with optimized AGENTS.md (target <5KB per agent)
  • 🔄 Self-healing — crashed services auto-restart in under 5 minutes
  • 🧠 Shared knowledge — agents access each other's discoveries via knowledge graph
  • 🎯 Specialized agents — each does one thing well instead of one bot doing everything badly

When to Use

  • You need more than one agent with different specializations
  • One agent is hitting rate limits and you want to split the load
  • You want agents for different tasks: ops, trading, security, freelancing
  • You need isolated workspaces so agents don't interfere with each other
  • You want to route different Telegram groups/topics to different agents

Architecture Overview

┌─────────────────────────────────────────────────┐
│                 OpenClaw Gateway                  │
│          (single process, multiple agents)        │
├──────────┬──────────┬──────────┬────────────────┤
│  Agent 1 │  Agent 2 │  Agent 3 │   Agent N      │
│  (main)  │  (ops)   │  (trade) │   (custom)     │
├──────────┼──────────┼──────────┼────────────────┤
│workspace │workspace │workspace │  workspace     │
│          │  -ops    │  -trade  │  -custom       │
├──────────┴──────────┴──────────┴────────────────┤
│              Shared Infrastructure               │
│     (Docker, monitoring, LightRAG, backups)      │
└─────────────────────────────────────────────────┘

Quick Start

Step 1: Plan agents

AgentRoleBotWorkspace
MainCoordination@main_botworkspace
OpsMonitoring@ops_botworkspace-ops
SecurityAudits@sec_botworkspace-security

Step 2: Create workspaces

mkdir -p ~/.openclaw/workspace-ops/{skills,memory,scripts,state}
mkdir -p ~/.openclaw/workspace-security/{skills,memory,scripts,state}

Step 3: Configure openclaw.json

{
  "agents": {
    "main": {
      "name": "Main",
      "model": "anthropic/claude-sonnet-4-6",
      "workspace": "workspace",
      "channels": { "telegram": { "botToken": "TOKEN_1" } }
    },
    "ops": {
      "name": "Ops",
      "model": "anthropic/claude-sonnet-4-6",
      "workspace": "workspace-ops",
      "channels": { "telegram": { "botToken": "TOKEN_2" } }
    }
  }
}

Step 4: Write AGENTS.md per agent

Keep each AGENTS.md under 5KB. Every byte loads into context every message. Smaller = cheaper.

Step 5: Share skills via symlinks

ln -s ~/.openclaw/workspace/skills/self-improving \
      ~/.openclaw/workspace-ops/skills/self-improving

Share utilities. Don't share specialized skills.

Rate Limit Management

Multi-token strategy

Split agents across 2+ Claude subscriptions:

{
  "auth-profiles": {
    "primary": { "token": "TOKEN_A" },
    "secondary": { "token": "TOKEN_B" }
  }
}

Model priority

  • Critical agents: Opus or Sonnet
  • Background agents: Sonnet only
  • When approaching limits: downgrade heavy agents mid-week

Telegram Routing

Option A: Separate bots (recommended) — one bot per agent, cleanest.

Option B: Forum topics — one supergroup, each topic routes to a different agent.

Option C: Commands/ops check disk → ops agent, everything else → main.

Monitoring & Self-Healing

Heartbeat per agent

Each agent has a HEARTBEAT.md — minimal checks, alert only on problems.

Self-healing script (cron every 5 min)

#!/bin/bash
if ! openclaw gateway status | grep -q "running"; then
    openclaw gateway restart
fi
for svc in langfuse n8n lightrag; do
    if docker compose -f ~/docker/$svc/docker-compose.yml ps | grep -q "Exit"; then
        docker compose -f ~/docker/$svc/docker-compose.yml restart
    fi
done

Agent watchdog

Track last response time per agent. Silent > 15 min → alert.

Shared Memory

Three-tier architecture:

  1. Hot: MEMORY.md — in context, instant, free, per-agent
  2. Warm: memory_search — vector search, instant, free
  3. Deep: Knowledge graph (LightRAG) — cross-agent, ~3-8 sec, small cost

See lightrag-knowledge-base skill for deep memory setup.

Backup

Back up daily: openclaw.json, auth-profiles, all MEMORY.md, all memory/ dirs. Back up weekly: skills/, scripts/, docker configs. Keep 7 days. Automate via cron.

Production Checklist

  • [ ] Each agent: own workspace + AGENTS.md + MEMORY.md
  • [ ] AGENTS.md < 5KB per agent
  • [ ] Dedicated Telegram bot per agent (or topic routing)
  • [ ] allowedChatIds on all bots
  • [ ] Rate limits distributed across tokens
  • [ ] Heartbeat configured per agent
  • [ ] Self-healing cron running
  • [ ] Daily backups automated
  • [ ] Bot tokens secured (not in git/chat)

Common Mistakes

  1. Too many agents too fast — start with 2, add as needed
  2. Giant AGENTS.md — 20KB = wasted tokens every message
  3. No rate limit plan — 5 agents, one token = rate limits by Wednesday
  4. Shared workspace — agents overwrite each other's memory
  5. No monitoring — agent dies silently, nobody notices for hours

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.48%
按下载量换算748

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills