| name | mailbox-basics |
| description | Explains the minimal AInbox mailbox flow for point-to-point agent messaging. Use when an agent needs to initialize a mailbox, send a message, sync it, and read replies without loading deeper coordination patterns. |
Use AInbox when agents need lightweight, filesystem-based coordination.
Preferred runtime
Use the latest native mailbox binary on PATH. Install the latest compiled release for your platform with:
source ./scripts/ensure-mailbox.sh
.\scripts\ensure-mailbox.ps1
These helpers install the latest native release only when mailbox is missing and make the install directory available in the current session.
When the Claude plugin is active, bundled hooks also attempt a silent best-effort native install automatically before mailbox-oriented Bash workflows.
For a one-time global bootstrap of supported agent integrations after mailbox is available, run:
mailbox init -g
Start with the minimal loop
mailbox init
mailbox send --to reviewer-agent --subject "PR ready" --body "Please review the latest changes."
mailbox sync
mailbox read --id <message-id>
Keep these rules in mind
mailbox send writes to .mailbox/outbox/; nothing reaches another agent until mailbox sync
received_at is set when the recipient pulls the message
mailbox read prints the message, sets read_at, and archives it
- Keep
.mailbox/draft/ updated as local living memory for active threads, especially after reads and before sends
- v1 is point-to-point only; there is no broadcast delivery
Escalate to a blocking gate when coordination must stop
If agents must not continue until the group converges, open a motion and block on it:
mailbox create-motion --title "Pause and report" --participant worker --participant reviewer --scope cluster --description "Stop work and report status."
mailbox vote-motion --id <motion-id> --vote yes --reason "Status reported"
mailbox wait-motion --id <motion-id>
Source checkout variations
If you are running from a repo checkout instead of the released binary:
cargo run -- init
python -m ainbox.cli init
Reach for another skill when needed
- Use
mailbox-communication for message-writing patterns and threading
- Use
mailbox-inbox-processing for repeatable inbox triage loops
Fallback installs
curl -fsSL https://raw.githubusercontent.com/JerrettDavis/AInbox/main/scripts/install.sh | bash
powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/JerrettDavis/AInbox/main/scripts/install.ps1 | iex"
cargo install --path .
pip install git+https://github.com/JerrettDavis/AInbox.git