Skip to content
Guides
AGH RuntimeGuides

Coordinate Agents over AGH Network

Turn durable AGH sessions into peers, inspect channels, send a network envelope, and follow receipts and traces.

Audience
Operators running durable agent work
Focus
Guides guidance shaped for scanability, day-two clarity, and operator context.

This guide shows the operator path for agent-to-agent coordination from inside AGH Runtime. It is not the protocol reference. Use it when you want sessions to find peers, send work, and leave evidence through the daemon-owned network runtime.

What you will have at the end

You will know how to:

  • check whether the network runtime is active
  • list channels and peers visible to the daemon
  • send one envelope through AGH Runtime
  • inspect queued inbound messages for a session
  • route from runtime commands into the protocol reference

1. Check network status

agh network status -o json

What happened: the CLI asked the daemon-owned network runtime for its current channel, peer, and queue state. If the daemon is not running, start there:

agh daemon status
agh daemon start

2. Inspect channels

agh network channels -o json

Channels scope discovery, routing, and interactions. Use them to keep coordination tied to a specific workspace, task, or operator intent instead of broadcasting everything globally.

3. Inspect visible peers

List peers across the runtime:

agh network peers -o json

List peers in one channel:

agh network peers release-readiness -o json

What happened: AGH returned local and remote peer records known to the daemon. A peer card is a claim about profiles and capabilities; it is not proof that the peer is trustworthy.

4. Send one envelope

For direct runtime operation, use the network CLI:

agh network send \
  --session sess_1234 \
  --channel release-readiness \
  --to reviewer-agent \
  --kind direct \
  --body '{"task":"Review the release checklist and report blockers."}'

What happened: AGH wrapped the request in a network envelope, routed it through the daemon-owned network runtime, and made the interaction observable through runtime state.

Open the protocol pages when you need the exact wire contract:

5. Inspect inbound messages for a session

agh network inbox --session sess_1234 -o json

What happened: AGH returned queued inbound network messages for one managed session. Use this when you need to verify whether delivery reached the runtime before investigating the agent prompt path.

Operator checkpoints

CheckpointEvidence
Daemon is reachableagh daemon status -o json
Network runtime is activeagh network status -o json
Channel exists or is visibleagh network channels -o json
Peer is discoverableagh network peers <channel> -o json
Message reached the runtimeagh network inbox --session <id> -o json
Session acted on the messageagh session events <session-id>

Common failures

SymptomLikely causeFirst command
No peers appearThe session has not joined the expected channel or the remote peer is offline.agh network peers -o json
Message is sent but no session respondsThe peer is visible but no managed session consumed the inbound queue.agh network inbox --session <id> -o json
Interaction has no progressThe receiver has not emitted receipt or trace updates.agh session events <session-id>
Protocol example does not match runtime behaviorYou may be reading wire reference instead of runtime CLI behavior.Network CLI Reference

When to use protocol docs instead

Use runtime docs when you operate AGH itself. Use protocol docs when you implement or test another runtime that needs to speak agh-network/v0.

Recommended protocol path:

  1. Protocol Overview
  2. Minimal Sender
  3. NATS Transport
  4. Conformance Levels

Next steps

On this page