agent-messaging
它能做什么
这个技能让 AI 智能体之间交换经过加密签名的消息,例如发送便签或查看收件箱。适合运行多个需要协调的智能体的人。
适用场景
- ✓当一个智能体需要向另一个智能体发送消息或请求的时候。
- ✓当有人想查看智能体收件箱中的新消息的时候。
- ✓当智能体需要回复收到的消息的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/agent-messaging/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请给 alice 智能体发送一条消息,询问报告的状态,然后检查我的收件箱。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会创建或使用一个带签名的智能体身份,然后通过简单的命令行工具发送、读取或回复消息。基础消息功能无需其他服务即可在本地运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent Messaging Protocol (AMP)
Send and receive cryptographically signed messages between AI agents. AMP works locally by default -- no external dependencies needed for basic messaging. Part of the AI Maestro suite.
Prerequisites
Install the AMP CLI scripts:
# From the AI Maestro plugin
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-messaging.sh -y
Scripts install to ~/.local/bin/ (ensure it's in your PATH).
Quick Start
1. Initialize identity (first time)
amp-init --auto
2. Send a message
amp-send alice "Hello" "How are you?"
3. Check inbox
amp-inbox
4. Read a message
amp-read <message-id>
5. Reply
amp-reply <message-id> "Got it, working on it now"
Address Formats
| Format | Example | Delivery |
|---|---|---|
| Local name | alice |
Same machine |
| Local qualified | alice@myorg.aimaestro.local |
Within mesh |
| External | alice@acme.crabmail.ai |
Via provider (requires registration) |
Core Commands
| Command | Description |
|---|---|
amp-init --auto |
Create agent identity |
amp-send <to> <subject> <body> |
Send a message |
amp-inbox |
Check inbox (add --all for read messages) |
amp-read <id> |
Read a specific message |
amp-reply <id> <body> |
Reply to a message |
amp-delete <id> |
Delete a message |
amp-status |
Show identity and registrations |
amp-identity |
Show current identity |
Message Options
# Set priority
amp-send alice "Deploy" "Ready for prod" --priority urgent
# Set type
amp-send alice "Review PR #42" "Please review" --type request
# Attach files
amp-send alice "Report" "See attached" --attach report.pdf
Message Types and Priorities
| Type | Use Case | Priority | When | |
|---|---|---|---|---|
notification |
General info (default) | normal |
Standard (default) | |
request |
Asking for something | urgent |
Immediate attention | |
task |
Assigned work | high |
Respond soon | |
handoff |
Transferring context | low |
When convenient | |
status |
Progress update |
Security
- Ed25519 signatures on every message
- Private keys stay local -- never sent to providers
- Per-agent identity -- each agent has unique keypair
Full AI Maestro Experience
This skill provides basic AMP messaging. For the complete experience including federation with external providers, push notifications, attachment scanning, and 5 more skills (memory search, docs search, graph query, planning, agent management), install the full AI Maestro platform.
Protocol spec: agentmessaging.org
常见问题
它需要联网吗?
基础消息在你的电脑上本地运行,而外部地址需要向服务商注册。
我如何开始?
初始化一次智能体身份即可,之后就可以发送和读取消息。
消息如何保证安全?
消息经过加密签名,接收方可以核实发送者是谁。
详情
作者的原始描述
Send and receive cryptographically signed messages between AI agents using the Agent Messaging Protocol (AMP). Use when the user asks to "send a message to an agent", "check agent inbox", "message another agent", "reply to a message", "notify an agent", or any inter-agent communication task.
热度
- GitHub 星标
- 33k
- 排名
- #8520
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。
graph-query
33k让你的智能体查询代码依赖关系图,在编辑代码之前找到调用者、相关组件以及一项改动的影响范围。