From claude-commands
Fetches MCP Agent Mail inbox metadata, classifies priorities, acknowledges urgent/action messages, marks read, and autonomously executes tasks with tools.
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-commands:processmsgscommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
## ⚡ EXECUTION WORKFLOW FOR CLAUDE **🚨 CRITICAL DIRECTIVE: You are an autonomous task executor.** **YOUR COMPLETE WORKFLOW:** 1. **Fetch messages** (metadata only, max 20) 2. **Classify by priority** (urgent, action, info, low) 3. **Send acknowledgment replies** for urgent/action items 4. **Mark messages as read** 5. **Report what you're working on** 6. **START WORKING** - Actually execute the tasks described in URGENT/ACTION messages **🚨 MANDATORY ACTIONS FOR URGENT/ACTION MESSAGES:** - ✅ Acknowledge the message with brief reply - ✅ **IMMEDIATELY START WORKING** on the task described ...
🚨 CRITICAL DIRECTIVE: You are an autonomous task executor.
YOUR COMPLETE WORKFLOW:
🚨 MANDATORY ACTIONS FOR URGENT/ACTION MESSAGES:
AUTONOMOUS EXECUTION WORKFLOW:
fetch_inbox(include_bodies=false, limit=20) - metadata scanPERFORMANCE GUIDELINES:
IMPORTANT: This processes inter-agent messages from MCP Agent Mail. Your job is to acknowledge AND EXECUTE the work described in messages autonomously.
Action:
fetch_inbox(include_bodies=false, limit=20) - Get subject, sender, date, importanceOutput: List of message IDs with metadata for quick scanning
Classification Rules (metadata only):
importance="urgent" OR subject contains "urgent", "blocker", "asap"ack_required=true OR subject has "?", "please", "review"Output: Prioritized list (URGENT/ACTION first)
For first URGENT/ACTION message:
reply_message(body_md="Acknowledged - starting work on this now")mark_message_read(message_id=...)🚨 CRITICAL: DO THE ACTUAL WORK
Output: Completed work (code changes, bug fixes, implementations)
After completing work:
reply_message(body_md="Completed [task summary]. [Details of what was done]")If more URGENT/ACTION messages remain:
If all urgent work complete:
Usage: /processmsgs [options]
Purpose: Automated agent message processing that reads inter-agent communications, analyzes content, and takes intelligent actions
register_agent first)ensure_project/processmsgs # Process all unread agent messages
/processmsgs urgent # Process only urgent/flagged messages
/processmsgs sender:BlueLake # Process messages from specific agent
Core Actions - FULL AUTONOMOUS EXECUTION:
Autonomous Execution Pattern:
Autonomous Task Processing:
Typical Performance:
Note: This command prioritizes completion quality over speed - tasks are fully executed, not just acknowledged.
Typical Use Cases:
Safe Automation Model:
Processing Results Include:
Learning Mechanism:
Graceful Failures:
ensure_projectEvery message MUST be classified and reported. Actions are required when appropriate:
NEVER output: "I've read 10 messages" without detailing the disposition of each message.
See .claude/skills/mcp-agent-mail.md for detailed MCP Agent Mail server setup and usage instructions.
/processmsgs
Output:
📬 Processed: 13 messages
├─ URGENT (1): Message #754 from mv - Fix multi-agent manual test serialization
├─ ACTION (0): None
├─ INFO (12): Completed work threads, status updates
🚀 Starting work on URGENT task: mcp_agent_mail-uo7
[Agent proceeds to work autonomously:]
1. ✅ Acknowledged message #754
2. 🔍 Checked Beads issue tracker (mcp_agent_mail-uo7 assigned to me)
3. 🔍 Located test file: testing_llm/MULTI_AGENT_MESSAGING_TEST.md
4. 📝 Identified issue: FastMCP Root objects not JSON serializable
5. 🔧 Applied fix: Convert results with .model_dump() before json.dump()
6. ✅ Verified fix works
7. 💬 Replied to mv with completion report
📊 Summary:
- Messages processed: 13
- Urgent tasks completed: 1
- Files modified: testing_llm/MULTI_AGENT_MESSAGING_TEST.md
- Status: All urgent work complete
What happened:
/processmsgs
Output:
📬 Processed: 8 messages
├─ URGENT (0): None
├─ ACTION (0): None
├─ INFO (8): All status updates from completed work
✅ No urgent/action items requiring work
📊 Summary: All messages are informational status updates
Performance: 1 tool call, ~3s
MCP Agent Mail Setup: See .claude/skills/mcp-agent-mail.md for:
Command considered successful when:
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commands/SKILLChecks unread TeamMCP inbox messages, categorizes by priority, acknowledges reviewed items, and summarizes attention needs. With 'respond' argument, also drafts and sends replies to urgent ones.
/inboxChecks Swarm Mail inbox for messages from other agents, displaying up to 5 recent headers for review without affecting context.
/inbox-triageSorts a busy inbox into prioritized actions, suggested replies, and escalation items for executive attention.
/summaryInvokes the email-triage skill to scan the inbox and produce a prioritized triage summary, identical to the /email command.
/inboxChecks inbox for inter-agent messages via 'msg inbox', reads them, and sends replies with 'msg reply <sender> "message"' if needed before resuming.
/inboxChecks hive session inbox for unread inter-agent messages, summarizes sender, content, timestamp, actions, and references. Reports empty if none and suggests publishing.