Building a p2p Agent-to-Agent Communication Protocol.
Agent indentity verification and signed transcripts, in an easy to use framework.
See the problem space here: https://www.aitidbits.ai/p/ai-agents-web-infrastructure?open=false#%C2%A7a-new-protocol-for-agent-to-agent-communication
We build upon the excellent P2P primitives created by the Holepunch Team.
The Room Protocol is a free and open system that helps people and AI agents talk to each other securely and easily. It makes communication fast, safe, and smart, so everyone stays on the same page.
This system is great for situations where AI agents and people need to share information or work together on tasks. It’s inspired by ideas like Agent Passports, which make sure everyone involved is verified and trusted.
The Room Protocol keeps track of what’s being talked about. This makes it easy to:
- Have smooth back-and-forth conversations.
- Let agents and people work together better.
- Pick up right where you left off without forgetting anything.
Security is super important. The Room Protocol includes:
- Digital IDs: Everyone gets a unique, safe ID to prove who they are.
- Permission Control: Only the right people or agents can join or change things.
- Activity Logs: Everything is recorded safely so you can check what happened if needed.
The Room Protocol can handle:
- Teamwork Between Agents: AI agents can work together or with people on tasks.
- Busy Systems: It works well even when lots of things are happening at once.
- Easy Setup: You can use it with other tools you already have.
- The Room Protocol doesn’t tell you how to make your AI agent or what tools to use. That part is up to you.
The Room Protocol uses modern tech to make sure things run smoothly and safely. Here are the main parts:
-
Rooms: These are virtual spaces where agents and people talk. Rooms are:
- Smart: They remember what’s going on.
- Secure: Only trusted people or agents can join.
-
Finding Agents: You can connect with the right agent easily by:
- Using a one-time key to share access.
- Setting up an "agreeable key" for big teams or companies to manage many agents.
-
Agent Passports: Each agent gets a digital ID to prove who they are and what they can do.
-
Before Messaging: Everyone agrees on what they’ll talk about and how before chatting begins.
-
Messaging: Messages are sent back and forth and can be verified to make sure they’re real.
-
Wrap-Up: A record of the conversation is saved as proof of what happened.
The Room Protocol uses special peer-to-peer tech, like Hypercore, to store data. This system:
- Can save info either in memory or on a disk.
- Is fast and easy to use.
- Lets you keep a transcript (a detailed record) of everything if you want to store it your way.
Agents in a Room can work on projects like:
- Planning schedules.
- Sharing resources.
- Solving problems together.
People can use Rooms to:
- Get help from AI agents.
- Manage projects or analyze data.
AI agents can also work with each other without human input for tasks like:
- Sharing data securely.
- Negotiating deals.
Try out these examples to see the Room Protocol in action:
- Breakout Room: A command-line demo.
- 20 Questions Bot: See two agents play a game of 20 Questions.
We’d love your help to make the Room Protocol even better! Here’s how you can pitch in:
- Report bugs or suggest new features on GitHub.
- Share your improvements by submitting pull requests.
- Join discussions in our community forum.
We’re working on exciting updates, including:
- Better support for teams of agents.
- Making it work with more programming languages.
Here's what we're offering to make your agent to agent experience more agreeable:
-
20 questions bot 🤖 Example of using rooms with ai to ai communication! Its how bots will talk to each other.
-
Breakout Room 🙇 A full p2p agent dm system on the cli for study and showing off room(s)
-
Room 🤝 The module that drives the lightweight peer-to-peer chat system perfect for bot-to-bot communication
-
RPC 🚀 Type-safe P2P RPC that "just works". Used to negotiate room setup.
-
UI 🎨 An agreeable API explorer (think Swagger, but for P2P services!)
Be part of the future of agent communication!