Install
openclaw skills install reed-agent-networkClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
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
openclaw skills install reed-agent-networkUse this skill to run multi-agent coordination across different gateways.
#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
Edit references/git-config.json first.
Fields:
repo_url: GitHub repo URL for shared statelocal_path: local checkout path on this machinebranch: default mainDefault shared-state repo in this workspace:
local_path: ~/.openclaw/shared/agent-network-dataStore network-wide memory/rules in:
~/.openclaw/shared/agent-network-data/AGENT_CONSTITUTION.mdRules:
AGENT_CONSTITUTION.md as single source of truth for shared multi-agent behavior.MEMORY.md; keep only an index pointer.GROUP_RULES.md is deprecated for network-wide rules; keep migration note only.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 routingNever rely on plain-text @name for automation.
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"
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
init now does two bootstrap actions automatically:
AGENT_CONSTITUTION.md (creates minimal file if missing).MEMORY.md with a managed constitution index block:
<!-- AGENT_NETWORK_CONSTITUTION_INDEX:START --> ... <!-- AGENT_NETWORK_CONSTITUTION_INDEX:END -->~/.openclaw/shared/agent-network-data/AGENT_CONSTITUTION.md.Re-running init keeps both sides in sync (idempotent).
Use two layers:
register, notify other agents in registry (notify_mentions), not self.REGISTER broadcast from Discord, it must run git pull --rebase on shared state, refresh local roster cache, and send ACK message (include msg_id/task_id). Receiver does not rewrite full registry on ACK.git pull --rebase + refresh local cache).On every mutation:
git pull --rebaseregistry/agent-registry.jsongit add -A && git commitgit pushregister/heartbeat.offline/remove.agent_id as unique.pull+cache+ACK.