简介
基于持久化文件消息系统,实现 tmux 会话内智能体间的无缝通信与协调。
原始描述
Enables seamless inter-agent communication and coordination within tmux sessions using a persistent file-based messaging system.
通过你的 Agent 添加
安装目录:agentmail/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: agentmail
description: Give the agent its own dedicated email inbox via AgentMail. Send, receive, and manage email autonomously using agent-owned email addresses (e.g. hermes-agent@agentmail.to).
version: 1.0.0
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [email, communication, agentmail, mcp]
category: email
AgentMail — Agent-Owned Email Inboxes
Requirements
- AgentMail API key (required) — sign up at https://console.agentmail.to (free tier: 3 inboxes, 3,000 emails/month; paid plans from $20/mo)
- Node.js 18+ (for the MCP server)
When to Use
Requirements
Use this skill when you need to:
- Give the agent its own dedicated email address
- Send emails autonomously on behalf of the agent
- Receive and read incoming emails
- Manage email threads and conversations
- Sign up for services or authenticate via email
- Communicate with other agents or humans via email
This is NOT for reading the user's personal email (use himalaya or Gmail for that). AgentMail gives the agent its own identity and inbox.
Setup
1. Get an API Key
- Go to https://console.agentmail.to
- Create an account and generate an API key (starts with
am_)
2. Configure MCP Server
Add to ~/.hermes/config.yaml (paste your actual key — MCP env vars are not expanded from .env):
mcp_servers:
agentmail:
command: "npx"
args: ["-y", "agentmail-mcp"]
env:
AGENTMAIL_API_KEY: "am_your_key_here"
3. Restart Hermes
hermes
hermes
All 11 AgentMail tools are now available automatically.
Available Tools (via MCP)
Tool
Description
list_inboxes
List all agent inboxes
get_inbox
Get details of a specific inbox
create_inbox
Create a new inbox (gets a real email address)
delete_inbox
Delete an inbox
list_threads
List email threads in an inbox
get_thread
Get a specific email thread
send_message
Send a new email
reply_to_message
Reply to an existing email
forward_message
Forward an email
update_message
Update message labels/status
get_attachment
Download an email attachment
Procedure
Create an inbox and send an email
- Create a dedicated inbox:
- Use
create_inbox with a username (e.g. hermes-agent)
- The agent gets address:
hermes-agent@agentmail.to
- Send an email:
- Use
send_message with inbox_id, to, subject, text
- Check for replies:
- Use
list_threads to see incoming conversations
- Use
get_thread to read a specific thread
Check incoming email
| Tool | Description |
|---|---|
list_inboxes |
List all agent inboxes |
get_inbox |
Get details of a specific inbox |
create_inbox |
Create a new inbox (gets a real email address) |
delete_inbox |
Delete an inbox |
list_threads |
List email threads in an inbox |
get_thread |
Get a specific email thread |
send_message |
Send a new email |
reply_to_message |
Reply to an existing email |
forward_message |
Forward an email |
update_message |
Update message labels/status |
get_attachment |
Download an email attachment |
Create an inbox and send an email
- Use
create_inboxwith a username (e.g.hermes-agent) - The agent gets address:
hermes-agent@agentmail.to
- Use
send_messagewithinbox_id,to,subject,text
- Use
list_threadsto see incoming conversations - Use
get_threadto read a specific thread
- Use
list_inboxesto find your inbox ID - Use
list_threadswith the inbox ID to see conversations - Use
get_threadto read a thread and its messages
Reply to an email
- Get the thread with
get_thread
- Use
reply_to_message with the message ID and your reply text
Example Workflows
get_threadreply_to_message with the message ID and your reply textSign up for a service:
1. create_inbox (username: "signup-bot")
2. Use the inbox address to register on the service
3. list_threads to check for verification email
4. get_thread to read the verification code
Agent-to-human outreach:
1. create_inbox (username: "hermes-outreach")
2. send_message (to: user@example.com, subject: "Hello", text: "...")
3. list_threads to check for replies
Pitfalls
- Free tier limited to 3 inboxes and 3,000 emails/month
- Emails come from
@agentmail.to domain on free tier (custom domains on paid plans)
- Node.js (18+) is required for the MCP server (
npx -y agentmail-mcp)
- The
mcp Python package must be installed: pip install mcp
- Real-time inbound email (webhooks) requires a public server — use
list_threads polling via cronjob instead for personal use
Verification
@agentmail.to domain on free tier (custom domains on paid plans)npx -y agentmail-mcp)mcp Python package must be installed: pip install mcplist_threads polling via cronjob instead for personal useAfter setup, test with:
hermes --toolsets mcp -q "Create an AgentMail inbox called test-agent and tell me its email address"
You should see the new inbox address returned.