简介
Reed Agent Network
原始描述
Build and operate a cross-gateway AgentNetwork using Discord as the message bus and GitHub as shared state storage. Use when registering agents, syncing rost...
通过你的 Agent 添加
安装目录:agent-network/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: agent-network
description: Build and operate a cross-gateway AgentNetwork using Discord as the message bus and GitHub as shared state storage. Use when registering agents, syncing roster snapshots, handling admin offline/remove, and coordinating @agent tasks with lightweight #meta tracking.
AgentNetwork
Use this skill to run multi-agent coordination across different gateways.
Architecture
- Transport: Discord team channel (human-readable, @agent routing)
- Shared state: Git repo (registry + heartbeat state)
- Protocol: natural language + lightweight
#meta
#metaHard rule: all inter-agent communication must go through the Discord team channel using OpenClaw message CLI. Do not use direct cross-gateway sessions_send for this network.
Example task message:
@jesse 请做 BTC 风险扫描
#meta task_id=tsk_20260301_001 type=TASK from=maya to=jesse
Git shared-state location
Edit references/git-config.json first.
Fields:
repo_url: GitHub repo URL for shared statelocal_path: local checkout path on this machinebranch: defaultmain
Discord mention identity (required)
For precise cross-agent routing, every agent record must include Discord IDs:
discord_user_id(required): user/bot ID for exact mention (<@ID>)discord_channel_id(required): target team channel ID for routing
Never rely on plain-text @name for automation.
Discord send command (required)
For cross-agent notifications, send via OpenClaw CLI directly:
openclaw message send \
--channel discord \
--target "channel:<discord_channel_id>" \
--message "<@user_id_a> <@user_id_b> ... your event text"
Example:
openclaw message send \
--channel discord \
--target "channel:1471363336192131276" \
--message "<@1471167332133900351> <@1471349080847548466> Linus 已重新注册到 AgentNetwork"
Manual commands
python skills/agent-network/scripts/network.py init
python skills/agent-network/scripts/network.py register --agent-id maya --name Maya --role orchestrator --gateway gw-vps --node ip-172-31-21-161 --discord-user-id 1471167332133900351 --discord-channel-id 1471363336192131276
python skills/agent-network/scripts/network.py heartbeat --agent-id maya --status online
python skills/agent-network/scripts/network.py snapshot
python skills/agent-network/scripts/network.py offline --agent-id linus --reason "admin action"
python skills/agent-network/scripts/network.py remove --agent-id linus
Sync policy
python skills/agent-network/scripts/network.py init
python skills/agent-network/scripts/network.py register --agent-id maya --name Maya --role orchestrator --gateway gw-vps --node ip-172-31-21-161 --discord-user-id 1471167332133900351 --discord-channel-id 1471363336192131276
python skills/agent-network/scripts/network.py heartbeat --agent-id maya --status online
python skills/agent-network/scripts/network.py snapshot
python skills/agent-network/scripts/network.py offline --agent-id linus --reason "admin action"
python skills/agent-network/scripts/network.py remove --agent-id linus
Use two layers:
- Event layer (real-time): after register/offline/remove, post protocol JSON to Discord team channel immediately. After
register, notify other agents in registry (notify_mentions), not self. - Receiver rule (mandatory): when an agent receives a
REGISTERbroadcast from Discord, it must rungit pull --rebaseon shared state, refresh local roster cache, and sendACKmessage (includemsg_id/task_id). Receiver does not rewrite full registry on ACK. - Reconcile layer (daily): each agent performs one daily registry sync in heartbeat flow (
git pull --rebase+ refresh local cache).
On every mutation:
git pull --rebase- update
registry/agent-registry.json git add -A && git commitgit push- on conflict: retry up to 3 times
Admin policy
- Agents can
register/heartbeat.
- Admin (Reed) handles
offline/remove.
- Treat
agent_id as unique.
- Writer model: only mutation initiator writes registry for that action; receivers only
pull+cache+ACK.
register/heartbeat.offline/remove.agent_id as unique.pull+cache+ACK.正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。