SQLite-backed message queue for reliable agent-to-agent communication. Solves session_send timeout issues by providing persistent message storage that agents can check on their own schedule.
- Persistent messages: No more lost messages due to timeouts
- Simple CLI interface: Easy integration into agent workflows
- SQLite backend: Lightweight, reliable, no daemon required
- Cross-agent compatibility: Works from any agent or sub-agent
- Atomic operations: Safe for concurrent access
npm install
npm link # Makes `deadrop` available globallydeadrop send --to cody --from larry --subject "Task Update" --body "Kraken deployment is complete"deadrop check --agent cody# All messages
deadrop inbox --agent cody
# Unread only
deadrop inbox --agent cody --unreadMessages are stored in ~/.openclaw/workspace/deadrop.sqlite
CREATE TABLE messages (
id INTEGER PRIMARY KEY AUTOINCREMENT,
from_agent TEXT NOT NULL,
to_agent TEXT NOT NULL,
subject TEXT,
body TEXT NOT NULL,
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
read_at DATETIME
);Add to agent workflows:
- Send: Use
deadrop sendinstead ofsessions_sendfor important messages - Check: Add
deadrop check --agent {name}to heartbeat/task boundaries - Inbox: Periodic
deadrop inbox --agent {name}for message history
# Larry sends update to Cody
deadrop send --to cody --from larry --subject "Deploy Status" --body "Production deploy successful"
# Cody checks messages during next task
deadrop check --agent cody
# Output: 📬 1 new message(s): [1] From: larry...
# Review message history
deadrop inbox --agent codyThis eliminates the need to retry failed sessions_send calls and ensures no important inter-agent communication is lost.