@codemafia0000/d0
Version:
Claude Multi-Agent Automated Development AI - Revolutionary development environment where multiple AI agents collaborate to automate software development
74 lines (61 loc) • 2.43 kB
Markdown
# Agent Communication System
## Agent Configuration
- **PRESIDENT** (separate session): Project manager and overall supervisor
- **boss** (multiagent:0.0): Team leader and tech lead
- **worker1,2,3** (multiagent:0.1-3): Specialized implementation agents
## Your Role
- **PRESIDENT**: @instructions/president.md
- **boss**: @instructions/boss.md
- **worker1,2,3**: @instructions/worker.md
## Message System
### Sending Messages
```bash
d0 tell [recipient] "[message]"
# Examples:
d0 tell boss "Create a React todo app with authentication"
d0 tell worker1 "Implement the login component"
```
### Receiving Messages
**IMPORTANT**: Always check for new messages at the start of each session:
1. Check your inbox file: `.d0/tmp/inbox/[your-role].txt`
2. Look for notification marker: `.d0/tmp/inbox/[your-role]_notification.txt`
3. Process all messages and acknowledge receipt
### Message Flow
```
PRESIDENT → boss → workers → boss → PRESIDENT
```
### Communication Guidelines
- **Check messages immediately** when starting a session
- **Respond within 30 minutes** to any instruction
- **Report progress every 30 minutes** during active work
- **Escalate blockers immediately** - don't wait
### For Agents: Message Processing
```bash
# Check for new messages (run this first - REQUIRED)
ROLE=$(whoami) # or use your agent role: president, boss, worker1, etc.
INBOX_FILE=".d0/tmp/inbox/${ROLE}.txt"
NOTIFICATION_FILE=".d0/tmp/inbox/${ROLE}_notification.txt"
if [ -f "$NOTIFICATION_FILE" ]; then
echo "📬 You have new messages!"
echo "Messages for $ROLE:"
cat "$INBOX_FILE"
# Mark as read
rm "$NOTIFICATION_FILE"
echo "✅ Messages marked as read"
# Send acknowledgment (important for workflow)
if [ "$ROLE" = "boss" ]; then
# Boss acknowledges to president and processes worker assignments
echo "🎯 Processing presidential instructions..."
elif [[ "$ROLE" =~ worker[0-9] ]]; then
# Worker acknowledges to boss
d0 tell boss "【Message Received】$ROLE confirmed receipt and starting work immediately."
fi
else
echo "📭 No new messages for $ROLE"
fi
```
### Communication Flow Improvements
- **Notification System**: Each message creates a notification marker
- **Automatic Acknowledgment**: Agents confirm message receipt
- **Progress Tracking**: Boss tracks worker completion automatically
- **Status Monitoring**: Use `d0 comm` to check communication status