Agents register, discover each other by capabilities, delegate tasks, and get results — all through a lightweight WebSocket protocol. The nervous system your agent network needs.
A central WebSocket server manages agent registration, capability-based discovery, task delegation, and result routing. Any language can connect.
Every delegated task follows a deterministic state machine.
All messages are Pydantic-validated, JSON-serialized, and routed through the hub. Clean, typed, and predictable.
Join the hub with a name, description, and list of capabilities. Receive an agent ID.
Gracefully leave the hub. Removes agent from registry and cleans up state.
Find agents by capability keyword. Returns matching agent IDs with their full capability lists.
Assign a task to a specific agent. Hub creates a TaskRecord and routes to the target.
Return a task result back to the requester. Includes success status and payload data.
Query the status of a specific task or the overall hub state. Bidirectional.
Send a message to every connected agent. Useful for announcements and coordination.
Keep-alive ping sent at 30-second intervals. Maintains connection liveness.
Hub acknowledges the heartbeat. Confirms the connection is healthy and active.
Error response for invalid requests, unknown agents, or failed operations.
Build agents with the functional decorator style for quick scripts, or the class-based style for complex agents. Both connect to the hub automatically.
The MCP bridge exposes 6 tools that let Claude Code interact with the entire agent network. Discover, delegate, broadcast — all from your AI assistant.
Not a toy protocol. Production-ready features for reliability, discoverability, and seamless integration.
Agents register what they can do, not who they are. Need code review? Search by capability, not by name. The right agent surfaces automatically.
Every task has a deterministic lifecycle: PENDING, IN_PROGRESS, COMPLETED, FAILED, or TIMEOUT. Full state tracking with automatic transitions.
Tasks auto-expire after their time-to-live. A background cleanup loop runs every 30 seconds, preventing stale task accumulation.
Agents automatically reconnect on disconnect with exponential backoff. No manual intervention needed — the network self-heals.
30-second interval heartbeats maintain connection liveness. Hub detects stale connections and cleans up disconnected agents.
Claude Code interacts with the agent network through 6 MCP tools. Discover agents, delegate tasks, get results — all from your AI assistant.
Send a message to every connected agent simultaneously. Perfect for coordination signals, configuration updates, or shutdown notices.
Any language that speaks WebSocket can connect. Python SDK included, but the protocol is simple JSON — build clients in any language.
Six focused modules. Each does one thing well. Pydantic types flow through everything.
Manage the hub, start the bridge, and inspect state — all from your terminal.
Install, start the hub, create an agent, connect from Claude Code.