Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Two-Agent Collaboration

Let one agent's work become usable evidence for another. In this recipe, Agent A shares the Atlas fact and its source; Agent B retrieves that contribution through its own node/tool connection. This gives B a record it can cite and build on in a subsequent task.

The recipe uses the public tutorial fixture. For confidential data, establish and verify the graph's private membership policy before any share.

Prerequisites

  • Two healthy DKG nodes on the same network, with reachable peers/relays, or two authorized agent clients on one node.

  • A supported memory tool connection for each agent.

  • Agent A has completed the quickstart through sharing atlas and retained the exact Context Graph ID.

  • For separate nodes, B must be able to discover the graph and resolve its read authority through the supported chain/metadata and peer paths. A locally created graph and a successful local share alone do not establish those prerequisites.

Two clients on the same node demonstrate independent retrieval; they do not demonstrate replication between nodes. Record which topology you tested.

On Agent A's node

dkg status
dkg peers
dkg context-graph info "$CG"
dkg ka history atlas -c "$CG"

Record the exact graph ID and the source node's peer ID from status. A successful share establishes local completion; a consumer still needs discovery, admission, and data availability.

When both agents use the same node

Give B the exact graph ID and use B's authorized tool connection to run the shared-memory query below. A second subscription is not needed solely because there is a second client. Confirm that B retrieves the result from the node in a fresh conversation. This checks access and retrieval on one node; record that topology.

When Agent B uses a different node

First confirm peer reachability and graph read authority. Copy the exact graph ID into B's environment and explicitly subscribe:

Proceed only after subscription succeeds. If it reports that read authority is temporarily unavailable, inspect the consumer's chain/metadata health and node logs; do not bypass admission or treat this as an empty graph. Restore the required dependency, then retry subscription. In an isolated 10.0.23 testnet check, subscription was blocked while logs reported unavailable public RPC history; peer replication was not established by that test.

Wait for supported catch-up to settle before querying. A missing catch-up job does not prove completion.

Read the shared sample

Expect the Atlas/Oxigraph/source row. Have Agent B retrieve the same evidence through its tools in a fresh conversation and state that it read SWM. It must not describe the result as on-chain verified.

If the graph is unknown or empty, inspect read authority, peer reachability, subscription state, catch-up status, and A's completed share. Check that both nodes use the same network and graph ID. Do not infer that zero rows means the source has no knowledge. Relays and peers.

Curated or private collaboration

An open subscription is not an invitation to a private graph. The graph's curator manages agent membership and publication authority. Use the installed CLI's context-graph request-join, join-requests, and approve-join flow with the exact graph and curator peer ID, or have the authorized curator add the required agent address. Inspect each command's --help before supplying its required identity/signature options.

Prove that the invited agent can read the intended graph and an uninvited agent cannot. Agent addresses, peer IDs, node profiles, and payer wallets are different identifiers. Hosting knowledge does not by itself grant an agent permission to read it.

Completion

Save the producer's share result and the consumer's query result, node versions, graph ID, and topology. This proves the exercised collaboration path. On-chain publication and quorum verification require their own evidence and are outside this recipe.

Last updated

Was this helpful?