# Send AgentNetwork to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "reed-agent-network",
    "name": "AgentNetwork",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/reed1898/reed-agent-network",
    "canonicalUrl": "https://clawhub.ai/reed1898/reed-agent-network",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/reed-agent-network",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reed-agent-network",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/git-config.json",
      "registry/agent-registry.json",
      "scripts/network.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "reed-agent-network",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T15:38:01.554Z",
      "expiresAt": "2026-05-06T15:38:01.554Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reed-agent-network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reed-agent-network",
        "contentDisposition": "attachment; filename=\"reed-agent-network-0.2.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "reed-agent-network"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/reed-agent-network"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/reed-agent-network",
    "downloadUrl": "https://openagent3.xyz/downloads/reed-agent-network",
    "agentUrl": "https://openagent3.xyz/skills/reed-agent-network/agent",
    "manifestUrl": "https://openagent3.xyz/skills/reed-agent-network/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/reed-agent-network/agent.md"
  }
}
```
## Documentation

### 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

Hard 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 state
local_path: local checkout path on this machine
branch: default main

Default shared-state repo in this workspace:

local_path: ~/.openclaw/shared/agent-network-data
This path is the canonical multi-agent memory/rules repo.

### Shared memory constitution (mandatory)

Store network-wide memory/rules in:

~/.openclaw/shared/agent-network-data/AGENT_CONSTITUTION.md

Rules:

Treat AGENT_CONSTITUTION.md as single source of truth for shared multi-agent behavior.
Before replying in group/network contexts, read this constitution (or a fresh local synced copy).
Do not duplicate full constitution text into each agent's local MEMORY.md; keep only an index pointer.
GROUP_RULES.md is deprecated for network-wide rules; keep migration note only.

### 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

init now does two bootstrap actions automatically:

Ensure shared repo contains AGENT_CONSTITUTION.md (creates minimal file if missing).
Update workspace MEMORY.md with a managed constitution index block:

<!-- AGENT_NETWORK_CONSTITUTION_INDEX:START --> ... <!-- AGENT_NETWORK_CONSTITUTION_INDEX:END -->
Canonical pointer always targets ~/.openclaw/shared/agent-network-data/AGENT_CONSTITUTION.md.

Re-running init keeps both sides in sync (idempotent).

### Sync policy

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 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.
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 commit
git 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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: reed1898
- Version: 0.2.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T15:38:01.554Z
- Expires at: 2026-05-06T15:38:01.554Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/reed-agent-network)
- [Send to Agent page](https://openagent3.xyz/skills/reed-agent-network/agent)
- [JSON manifest](https://openagent3.xyz/skills/reed-agent-network/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/reed-agent-network/agent.md)
- [Download page](https://openagent3.xyz/downloads/reed-agent-network)