agent-messaging
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Messaging Protocol (AMP)
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.
在AI Agent之间发送和接收经过加密签名的消息。AMP默认本地运行——基础消息功能无需外部依赖。属于AI Maestro套件的一部分。
Prerequisites
前置条件
Install the AMP CLI scripts:
bash
undefined安装AMP CLI脚本:
bash
undefinedFrom the AI Maestro plugin
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).git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-messaging.sh -y
脚本将安装到`~/.local/bin/`(请确保该路径已添加到你的PATH中)。Quick Start
快速开始
1. Initialize identity (first time)
1. 初始化身份(首次使用)
bash
amp-init --autobash
amp-init --auto2. Send a message
2. 发送消息
bash
amp-send alice "Hello" "How are you?"bash
amp-send alice "Hello" "How are you?"3. Check inbox
3. 查看收件箱
bash
amp-inboxbash
amp-inbox4. Read a message
4. 读取消息
bash
amp-read <message-id>bash
amp-read <message-id>5. Reply
5. 回复消息
bash
amp-reply <message-id> "Got it, working on it now"bash
amp-reply <message-id> "Got it, working on it now"Address Formats
地址格式
| Format | Example | Delivery |
|---|---|---|
| Local name | | Same machine |
| Local qualified | | Within mesh |
| External | | Via provider (requires registration) |
| 格式 | 示例 | 投递范围 |
|---|---|---|
| 本地名称 | | 同一台机器 |
| 本地限定名称 | | 网格内 |
| 外部地址 | | 通过服务商(需注册) |
Core Commands
核心命令
| Command | Description |
|---|---|
| Create agent identity |
| Send a message |
| Check inbox (add |
| Read a specific message |
| Reply to a message |
| Delete a message |
| Show identity and registrations |
| Show current identity |
| 命令 | 描述 |
|---|---|
| 创建Agent身份 |
| 发送消息 |
| 查看收件箱(添加 |
| 读取指定消息 |
| 回复消息 |
| 删除消息 |
| 显示身份与注册信息 |
| 显示当前身份 |
Message Options
消息选项
bash
undefinedbash
undefinedSet priority
设置优先级
amp-send alice "Deploy" "Ready for prod" --priority urgent
amp-send alice "Deploy" "Ready for prod" --priority urgent
Set type
设置类型
amp-send alice "Review PR #42" "Please review" --type request
amp-send alice "Review PR #42" "Please review" --type request
Attach files
附加文件
amp-send alice "Report" "See attached" --attach report.pdf
undefinedamp-send alice "Report" "See attached" --attach report.pdf
undefinedMessage Types and Priorities
消息类型与优先级
| Type | Use Case | Priority | When | |
|---|---|---|---|---|
| General info (default) | | Standard (default) | |
| Asking for something | | Immediate attention | |
| Assigned work | | Respond soon | |
| Transferring context | | When convenient | |
| Progress update |
| 类型 | 使用场景 | 优先级 | 适用时机 | |
|---|---|---|---|---|
| 通用信息(默认) | | 标准场景(默认) | |
| 请求协助 | | 需要立即关注 | |
| 分配工作任务 | | 需尽快响应 | |
| 转移上下文 | | 方便时处理 | |
| 进度更新 |
Security
安全性
- Ed25519 signatures on every message
- Private keys stay local -- never sent to providers
- Per-agent identity -- each agent has unique keypair
- 每条消息均带有Ed25519签名
- 私钥本地存储——绝不会发送给服务商
- Agent独立身份——每个Agent都有唯一的密钥对
Full AI Maestro Experience
完整AI Maestro体验
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
本技能提供基础的AMP消息功能。若要获得完整体验,包括与外部服务商的联邦互通、推送通知、附件扫描以及另外5项技能(内存搜索、文档搜索、图查询、任务规划、Agent管理),请安装完整的AI Maestro平台。
协议规范:agentmessaging.org