agent-message-queue

module
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: MIT

README

Agent Message Queue (AMQ)

File-based message queue for AI agent coordination. Enables Claude Code and Codex CLI to communicate on the same machine using atomic Maildir-style delivery.

Installation

1. Install Binary (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/avivsinai/agent-message-queue/main/scripts/install.sh | bash

Installs to ~/.local/bin or ~/go/bin (no sudo required). Verify: amq --version

2. Install Skill

Claude Code (via marketplace):

/plugin marketplace add avivsinai/skills-marketplace
/plugin install amq-cli@avivsinai-marketplace

Codex CLI (Codex chat command; not a shell command):

$skill-installer install https://github.com/avivsinai/agent-message-queue/tree/main/skills/amq-cli

Restart Codex after installing.

For manual download, build from source, or troubleshooting, see INSTALL.md.

Quick Start

1. Initialize Project
amq init --root .agent-mail --agents claude,codex
2. Start Agent Session

Claude Code:

export AM_ME=claude AM_ROOT=.agent-mail
amq wake &
claude

Codex CLI:

export AM_ME=codex AM_ROOT=.agent-mail
amq wake &
codex
3. Send & Receive
# Send a message
amq send --to codex --body "Hello from Claude!"

# Check inbox
amq list --new

# Read all messages (one-shot, moves to cur, auto-acks)
amq drain --include-body

Co-op Mode

For real-time Claude Code + Codex CLI collaboration, see COOP.md.

One-liner setup:

curl -fsSL https://raw.githubusercontent.com/avivsinai/agent-message-queue/main/scripts/setup-coop.sh | bash

Documentation

Development

git clone https://github.com/avivsinai/agent-message-queue.git
cd agent-message-queue
make build   # Build binary
make test    # Run tests
make ci      # Full CI: vet + lint + test + smoke

License

MIT

Directories

Path Synopsis
cmd
amq command
internal
ack
Package ack provides acknowledgment tracking for messages.
Package ack provides acknowledgment tracking for messages.
cli
format
Package format handles message serialization using JSON frontmatter with Markdown body content.
Package format handles message serialization using JSON frontmatter with Markdown body content.
fsq
presence
Package presence manages agent presence metadata.
Package presence manages agent presence metadata.
thread
Package thread collects and aggregates messages across agent mailboxes by thread ID.
Package thread collects and aggregates messages across agent mailboxes by thread ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL