Skip to content

Two-agent swarm demo

Choose a tag to compare

@gpu7 gpu7 released this 10 Sep 19:02
· 131 commits to main since this release
ad71f6a

Example of two autonomous AI agents with Nostr ids that talk on a local file bus, pick who pays, and settle one L402 tool call.

Mock: --offline-bus on one host (including AWS). No Lightning. Good for ids + negotiate.

Live: both agent processes on the Mac, Aperture invoice on AWS, pay from Mac LND (agent-bitcoin-lnd-*). Typical call: GET /paid/finance/mempool-feerate at 100 sats. Paying from the AWS invoice node fails (self-payments not allowed).

Setup uses Python 3.12 and .venv-nostr (.[nostr]). Do not use uv run python on 3.14. Clear .nostr-poc/bus/ before a new run.

Engineer guide: examples/swarm_l402.md. Wrapper: examples/swarm_l402.sh.

Check a live pay on the Mac: lncli listpayments — expect ~100 sat SUCCEEDED.