{"slug": "show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication", "title": "Show HN: P2P (POC) of the ACP for decentralized agent communication", "summary": "A developer released a peer-to-peer implementation of the Agent Client Protocol (ACP) for decentralized agent communication, built with libp2p and Rust. The open-source tool enables agents to discover each other, route messages by capability tags, and broadcast queries across a mesh network without a central server.", "body_md": "a peer-to-peer implementation of the Agent Client Protocol (ACP) for decentralized agent communication.\n\n```\n# clone the repository\ngit clone --depth 1 https://github.com/skorotkiewicz/acp-p2p\ncd acp-p2p\n\n# build with ACP features enabled\ncargo build --release --features acp\n# or\njust build-all\n# run the agent\n./target/release/agent --alias alice --caps rust,math\n```\n\n## examples\n\n```\n# connect to a specific peer at startup\njust run --peer /ip4/127.0.0.1/tcp/12345/p2p/<peer-id> --alias alice\n\n# generate ephemeral identity (don't persist to file)\njust run --ephemeral --alias test\n\n# disable mDNS discovery\njust run --no-mdns --alias isolated\n\n# custom listen address\njust run --listen /ip4/0.0.0.0/tcp/9000\n```\n\nthe agent is configured via command-line arguments:\n\n`--alias <name>`\n\n- human-readable alias for this agent`--caps <list>`\n\n- comma-separated capability tags (e.g. rust,math,python)`--peer <multiaddr>`\n\n- peer multiaddr to connect to at startup`--ephemeral`\n\n- generate a new in-memory identity (don't persist)`--no-mdns`\n\n- disable automatic peer discovery`--listen <multiaddr>`\n\n- custom listen address (can be repeated)\n\nonce running, the agent accepts interactive commands:\n\n`ask <question>`\n\n- broadcast a question to all peers`ask --caps rust,math <question>`\n\n- ask agents with specific capabilities`ask @rust,math <question>`\n\n- short form for capability routing`acp <method> <json-params>`\n\n- broadcast ACP JSON-RPC payload (requires acp feature)`dial <multiaddr>`\n\n- manually connect to a peer`peers`\n\n- list known peers`quit`\n\n- exit the mesh\n\n## features\n\n- peer-to-peer networking using libp2p\n- agent client protocol (ACP) implementation\n- support for gossipsub messaging\n- automatic peer discovery via mDNS\n- async runtime with Tokio\n- command-line interface with clap\n\ncontributions are welcome! please feel free to submit a pull request.\n\nMIT license", "url": "https://wpnews.pro/news/show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication", "canonical_source": "https://github.com/skorotkiewicz/acp-p2p", "published_at": "2026-05-29 02:22:29+00:00", "updated_at": "2026-05-29 02:45:30.608716+00:00", "lang": "en", "topics": ["ai-agents", "ai-infrastructure", "ai-tools", "ai-research"], "entities": ["Agent Client Protocol", "ACP", "GitHub", "Rust"], "alternates": {"html": "https://wpnews.pro/news/show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication", "markdown": "https://wpnews.pro/news/show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication.md", "text": "https://wpnews.pro/news/show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication.txt", "jsonld": "https://wpnews.pro/news/show-hn-p2p-poc-of-the-acp-for-decentralized-agent-communication.jsonld"}}