Internal email system for agent-to-agent communication within the HERA research assistant framework.
bash
python3 {baseDir}/scripts/list_inbox.py <agent-name>
bash
python3 {baseDir}/scripts/read_mail.py <agent-name> <mail-file.md>
bash
python3 {baseDir}/scripts/send_mail.py <from-agent> <to-agent> "<subject>" <attachment-paths...>
AgentName for ScriptsGroup Leadergroup-leaderRough Readerrough-readerIntensive Readerintensive-readerCode Guidercode-guiderCoordinator 1coordinator-1Coordinator 2coordinator-2Rough Checker 1rough-checker-1Rough Checker 2rough-checker-2Report Writerreport-writer
markdown
[FROM: agent-name]
[TO: agent-name]
[TIMESTAMP: YYYY-MM-DD HH:MM:SS]
[MAIL-ID: unique-id]
[SUBJECT: subject text]
[STATUS: unread]
---
Message body content here.
No formal greetings needed - be direct and concise.
---
[END]
Attachments are stored in:
text
hera-agents/<recipient>/inbox/attachments/<mail-id>/<files>
Supported: PDFs, images, data files, code, any file type.
list_inbox.py <agent-name>[○])read_mail.py <agent-name> <file.md>bash
# Send paper to Rough Reader
python3 send_mail.py group-leader rough-reader "Review this paper" /path/to/paper.pdf
# Send data visualization to Report Writer
python3 send_mail.py intensive-reader report-writer "Analysis results" /path/to/figure.png /path/to/data.csv
bash
cat <<EOF | python3 send_mail.py coordinator-1 code-guider "Code review needed"
Please review the attached code for:
1. Performance issues
2. Memory leaks
3. Best practices
Deadline: EOD
EOF
TypeSenderRecipientPurposeTask AssignmentGroup LeaderAny agentAssign new workWork SubmissionAny agentCoordinator/LeaderSubmit completed workReview RequestAny agentRough CheckerRequest quality checkInformation RequestAny agentReader agentsRequest analysisData TransferAny agentAny agentShare files/data
text
hera-agents/
├── <agent-name>/
│ ├── inbox/ # Received messages
│ │ ├── *.md # Mail files
│ │ ├── *.read # Read markers
│ │ └── attachments/ # Attached files per mail
│ └── outbox/ # Sent message copies
│ └── *.md
└── skills/hera-mail/
├── scripts/
│ ├── list_inbox.py
│ ├── read_mail.py
│ └── send_mail.py
└── references/
bash
cat <<EOF | python3 send_mail.py group-leader rough-reader "Scan arXiv papers on quantum error correction"
Priority: High
Scope: Last 6 months
Focus: Surface codes, LDPC codes
Deliverable: List of top 10 relevant papers with abstracts
Deadline: 2 hours
EOF
bash
python3 send_mail.py intensive-reader report-writer "Analysis complete: Quantum Error Correction" \
/workspace/analysis/summary.md \
/workspace/analysis/key_findings.csv \
/workspace/figures/error_rates.png
bash
python3 send_mail.py coordinator-1 rough-checker-1 "QC needed: Literature review draft" \
/workspace/drafts/lit_review_v1.md
Inbox not found: Ensure agent directory exists under hera-agents/
Mail not delivered: Check recipient agent name is correct
Attachment missing: Verify file path is absolute and file exists
Permission denied: Ensure scripts are executable:
bash
chmod +x /Users/zhaoruiwu/.openclaw/workspace/hera-agents/skills/hera-mail/scripts/*.py