From claude-commands
Enables AI agents to communicate via project-scoped messaging system with registration, threaded replies, inbox management, and discovery for multi-agent coordination workflows.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin jleechanorg-claude-commandsThis skill uses the workspace's default tool permissions.
This skill provides comprehensive setup and usage documentation for enabling agent-to-agent messaging and coordination via the MCP Agent Mail server.
Guides multi-agent coordination using agent-swarm MCP tools: join swarms as leader/worker, delegate/claim tasks, check status, send/read messages, manage workflows.
Coordinates AI agents via Git-backed messaging, groups, and shared context. Use for communication, task delegation, or coordination across worktrees.
Manages AI agent lifecycle with AI Maestro CLI: create, list, delete, rename, hibernate/wake, plugin install, export. For agent operations in Claude Code.
Share bugs, ideas, or general feedback.
This skill provides comprehensive setup and usage documentation for enabling agent-to-agent messaging and coordination via the MCP Agent Mail server.
Purpose: Enable AI agents to communicate with each other through a message-passing system for coordinated work, project collaboration, and multi-agent workflows.
Core Capabilities:
.claude/settings.json{
"mcpServers": {
"mcp-agent-mail": {
"command": "python3",
"args": [
"/path/to/mcp-agent-mail/server.py",
"--stdio"
]
}
}
}
Agents are AI workers with unique identities registered in the system:
Projects are workspaces that scope agent communication:
Structured communications between agents:
# Auto-generated name
register_agent(
project_key="/abs/path/backend",
program="claude-code",
model="opus-4.1",
task_description="Implementing auth system"
)
# Explicit name
register_agent(
project_key="/abs/path/backend",
program="codex-cli",
model="gpt5-codex",
name="BlueLake",
task_description="Database migrations"
)
send_message(
project_key="/abs/path/backend",
sender_name="GreenCastle",
to=["BlueLake"],
subject="Auth API design review",
body_md="Please review the attached API design...",
importance="high",
ack_required=True
)
# Recent messages
messages = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
limit=20,
include_bodies=True
)
# Urgent only
urgent = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
urgent_only=True
)
# Since last check
new_messages = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
since_ts="2025-10-23T00:00:00+00:00"
)
reply_message(
project_key="/abs/path/backend",
message_id=1234,
sender_name="BlueLake",
body_md="I've reviewed the design. Here are my thoughts..."
)
agent_info = whois(
project_key="/abs/path/backend",
agent_name="BlueLake",
include_recent_commits=True
)
Orchestrated Work:
Peer Collaboration:
Example: PR Review Workflow
/processmsgs Command UsageThe /processmsgs command processes agent messages (not emails):
# Process all unread agent messages
/processmsgs
# Process messages from specific sender
/processmsgs sender:BlueLake
# Process urgent messages only
/processmsgs urgent
What it does:
Access Control:
Data Handling:
URGENT: High-priority, time-sensitive communications
ACTION_REQUIRED: Requires response or action
INFORMATION: Status updates, notifications
Common Issues:
MCP server unavailable:
Agent not registered:
register_agent firstMessage not found:
Agent 1 (Reviewer):
send_message(
project_key="/abs/path/backend",
sender_name="ReviewBot",
to=["CodeBot", "SecurityBot"],
subject="PR #123 Review Request",
body_md="Please review PR #123 for security and code quality",
importance="high"
)
Agent 2 (Security):
# Fetch inbox
messages = fetch_inbox(project_key="/abs/path/backend", agent_name="SecurityBot")
# Reply
reply_message(
project_key="/abs/path/backend",
message_id=messages[0]['id'],
sender_name="SecurityBot",
body_md="โ
No security issues found"
)
Coordinator:
send_message(
project_key="/abs/path/backend",
sender_name="Coordinator",
to=["WorkerA", "WorkerB"],
subject="Task Assignment: Database Migration",
body_md="""
## Tasks
- WorkerA: Create migration scripts
- WorkerB: Test migration on staging
"""
)
Worker:
# Check inbox
tasks = fetch_inbox(project_key="/abs/path/backend", agent_name="WorkerA")
# Complete work and report
reply_message(
project_key="/abs/path/backend",
message_id=tasks[0]['id'],
sender_name="WorkerA",
body_md="โ
Migration scripts created and tested"
)
DO:
DON'T:
Effective agent communication when: