CLI tool for agent-to-agent messaging using beads.
Messaging extracted from gastown.
Requires beads (bd CLI) to be installed.
brew tap nmelo/tap
brew install gmOr build from source:
go install github.com/nmelo/gasmail@latestCheck inbox:
gm inbox
gm inbox --unread
gm inbox --jsonSend a message:
gm send agent-2 -s "Status" -m "How's it going?"
gm send agent-1 -s "Done" -m "Task complete" --reply-to hq-abc123
gm send agent-2 -s "Urgent" -m "Need help" -p 0 # priority 0=urgentRead a message:
gm read hq-abc123
gm read hq-abc123 --jsonDelete/archive a message:
gm delete hq-abc123
gm delete hq-abc123 hq-def456 # multiple messagesCheck for new mail (for scripts):
gm check && echo "You have mail"
gm check --jsonIdentity is auto-detected from:
--identityflagGM_IDENTITYenvironment variable- Current tmux window name
- Hostname
Override identity for any command:
gm inbox --identity agent-1
gm send agent-2 -s "Hello" -i agent-1GM_IDENTITY- Override identity detectionBEADS_DIR- Beads database directory (default:.beadsin current dir or parents)
- 0: Urgent
- 1: High
- 2: Normal (default)
- 3: Low