| name | AILANG Inbox |
| description | Cross-agent communication system for AI workflows. Check messages at session start, send notifications to other agents, and track multi-agent handoffs with correlation IDs. |
AILANG Inbox
AILANG's messaging system enables AI agents to communicate asynchronously across sessions and projects.
Session Start Routine
At the start of EVERY session, check for messages:
ailang messages list --unread
ailang messages list --inbox user --unread
Quick Reference
| Command | Purpose |
|---|
ailang messages list --unread | Check for new messages |
ailang messages list --inbox user | Check user inbox |
ailang messages send user "msg" --from agent | Send to user |
ailang messages ack MSG_ID | Mark as read |
ailang messages ack --all | Mark all as read |
ailang messages read MSG_ID | View full message |
Checking Messages
List Messages
ailang messages list
ailang messages list --unread
ailang messages list --inbox user
ailang messages list --from sprint-executor
ailang messages list --limit 5
ailang messages list --json
Read Full Message
ailang messages read MSG_ID
Acknowledge Messages
ailang messages ack MSG_ID
ailang messages ack --all
ailang messages ack --all --inbox user
ailang messages unack MSG_ID
Sending Messages
To User
ailang messages send user "Task completed successfully" --from my-agent --title "Status Update"
ailang messages send user --json '{"status":"done","result":"All tests passing"}' --from my-agent
To Another Agent
ailang messages send sprint-executor "Ready for handoff" --from planner
ailang messages send sprint-executor --json '{"task":"execute"}' --from planner --correlation workflow_123
Workflow Patterns
1. Session Start Check
ailang messages list --unread
ailang messages ack --all
2. Agent Handoff
ailang messages send agent-b --json '{
"type": "handoff",
"task": "continue_implementation",
"artifacts": ["path/to/results/"],
"context": "Previous work completed"
}' --from agent-a --correlation project_xyz
3. Completion Notification
ailang messages send user --json '{
"type": "completion",
"status": "success",
"summary": "All 5 milestones completed",
"artifacts": ["results/v1.0/"]
}' --from sprint-executor --title "Sprint Complete"
4. Error Reporting
ailang messages send user --json '{
"type": "error",
"error": "Tests failing at milestone 3",
"details": "logs/error.log",
"needs_help": true
}' --from executor --title "Error Encountered"
Correlation IDs
Track related messages across agent handoffs:
{
"message_id": "msg_20251208_103045_abc123",
"correlation_id": "workflow_project_x",
"from": "planner",
"to": "executor",
"payload": { ... }
}
Benefits:
- Track entire workflow chains
- Filter messages by workflow
- Debug multi-agent interactions
- Resume work from where you left off
Message Types
Completion
{
"type": "completion",
"status": "success",
"result": "All tests passing",
"artifacts": ["path/to/output/"]
}
Handoff
{
"type": "handoff",
"task": "next_phase",
"context": "Previous work summary",
"dependencies": ["file1.ail", "file2.ail"]
}
Error
{
"type": "error",
"error": "Description of failure",
"details": "path/to/logs",
"needs_help": true
}
Request
{
"type": "request",
"action": "review_code",
"files": ["src/module.ail"],
"priority": "high"
}
Watch for Messages
Monitor for new messages in real-time:
ailang messages watch
ailang messages watch --inbox user
Cleanup
Remove old messages:
ailang messages cleanup --older-than 7d
ailang messages cleanup --expired
ailang messages cleanup --dry-run
Storage
- Database:
~/.ailang/state/collaboration.db (SQLite)
- Shared with: Collaboration Hub dashboard
- Message statuses:
unread, read, archived, deleted
Integration with Collaboration Hub
Messages are visible in the web dashboard:
ailang serve
The dashboard provides:
- Real-time message view
- Agent activity timeline
- Workflow visualization
- Message filtering and search