Atomic File Mailboxes: How Agents Message Each Other Claude Code agents can communicate using an outbox-router-inbox design that relies on plain files and atomic renames, according to a technical blog post. Each agent writes messages to its own outbox directory, a router drains and delivers them to recipients' inboxes via atomic rename, and agents never write outside their own directories, ensuring crash-safe, conflict-free messaging without a broker. Atomic File Mailboxes: How Agents Message Each Other Can Claude Code agents talk to each other? Yes — the outbox-router-inbox design that lets agents message safely using plain files and atomic renames. Yes, Claude Code agents can talk to each other — and the safest way is plain files. Each agent writes to its own outbox/ ; a router drains it and delivers each message into the recipient's inbox/ by atomic rename . One JSON file per message, never a shared log. The result is durable, auditable, crash-safe messaging with no broker and no write conflicts. “Can Claude Code agents talk to each other?” is one of the first questions people ask when they move past a single session. The answer is yes — but how they talk is where most designs go wrong. Let a shared chat file be appended by every agent and you’ve built a multi-writer conflict. The robust approach is a mailbox: outbox, router, inbox, with atomic file operations underneath. Here’s the whole design. The shape: outbox → router → inbox the-shape-outbox-router-inbox Every agent gets a private workspace, and two of the folders in it are for messaging: agents/