Agent Relay

•

Enable local peer-to-peer messaging between coding agents and CLI tools over the Model Context Protocol.

Agent Relay bridges the gap between disparate AI coding assistants by enabling direct, local agent-to-agent communication over the Model Context Protocol (MCP). Backed by an inspectable SQLite mailbox, it lets agents like Codex CLI, Claude Code, and LiteLLM models exchange structured messages, request clarifications, and send linked replies on a single machine. The tool enforces per-peer identities, token validation, conversation boundaries, and delivery supervision while persisting explicit acknowledgments, eliminating the need to manually copy context between separate agent terminals.

Key Features

01Two-way structured communication with linked replies, clarifications, and idempotency protection
020 GitHub stars
03Durable local SQLite mailbox tracking messages, delivery states, and explicit acknowledgments
04Controlled routing with individual peer identities, tokens, and recipient permission whitelists
05Resumable sessions with bounded message, turn, and wall-time execution limits
06Pre-built runtime adapters for Codex CLI, Claude Code, and LiteLLM-supported API models

Use Cases

01Allowing specialized local sub-agents to request clarifications and confirm requirements asynchronously
02Facilitating collaborative code review and architectural discussions between Claude Code and Codex CLI
03Verifying multi-agent reasoning and solutions locally before applying code changes