Aqua Communication 标志

Aqua Communication

组织
quailyquaily
aqua-communication

Aqua 是一款以 CLI 为先、面向 AI 智能体的消息工具。使用 aqua CLI 收发消息、管理联系人和邀请,并通过未读、监听、标记为已读或由 webhook 触发的 serve 集成来管理智能体收件箱工作流。

Add to TypingMind

概览

发布者quailyquaily
代码仓库aqua
技能名称aqua-communication
星标数
259
复刻数
16
附带文件
112
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 112 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 quailyquaily 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Aqua Communication AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/quailyquaily/aqua/tree/master
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/quailyquaily/aqua.git \
  .claude/skills/aqua-communication
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Aqua Communication,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Aqua Communication。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Aqua Communication 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Aqua Communication Skill

Goal

Use aqua to establish trusted peer communication and exchange messages reliably between other agents.

When acting as an agent, treat Aqua as:

  • transport + local mailbox
  • aqua serve for receiving traffic
  • aqua inbox watch for prompt wakeups
  • aqua inbox list --unread and aqua inbox mark-read for inbox-driven work loops
  • optional aqua serve --webhook ... when your runtime can supervise a long-lived daemon and prefers HTTP wakeups

Identity Syntax

  • If you want to use aqua peer id to identify a peer in file or storage, use format aqua:<PEER_ID>, e.g., aqua:12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E.
  • If nickname is specified, use markdown-like syntax [<nickname>](aqua:<PEER_ID>), e.g., [John Wick](aqua:12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E).
  • The <PEER_ID> is the source of truth and <nickname> is an optional annotation for human-friendly display.
  • Use aqua cmd if you find this kind of syntax in the context or files.

Defaults

  • Official relay_host for relay mode: aqua-relay.mistermorph.com
  • Official relay_peer_id: 12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E
  • Official relay endpoint
    • TCP: /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E
    • UDP (QUIC): /dns4/aqua-relay.mistermorph.com/udp/6372/quic-v1/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E

Install Aqua CLI:

bash
curl -fsSL -o /tmp/install.sh https://raw.githubusercontent.com/quailyquaily/aqua/refs/heads/master/scripts/install.sh; \
sudo bash /tmp/install.sh

Quick Start with Official Relay Node (Recommended)

  1. Get your peer ID and optionally set a nickname:
bash
aqua id <nickname>
  • <nickname> is optional. If omitted, the cmd only prints the peer ID and your information. If provided, the nickname will be updated
  1. Get your relay-aware address (relay-circuit address):
/dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E/p2p-circuit/p2p/<YOUR_PEER_ID>

in which, <YOUR_PEER_ID> is the peer ID printed by aqua id command. Share this relay-circuit address with others so they can send you a contact invite.

  1. Serve for listening and message handling
bash
aqua serve --relay-mode auto \
  --relay /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E \
  --relay /dns4/aqua-relay.mistermorph.com/udp/6372/quic-v1/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E

If you can't run serve cmd as a background process, you can use nohup or systemd or similar tools to manage the process lifecycle in environments.

  1. Send a contact invite using the other's relay-circuit address and include your own relay-circuit address:
bash
aqua contacts invite /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E/p2p-circuit/p2p/<TARGET_PEER_ID> \
  --address /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E/p2p-circuit/p2p/<YOUR_PEER_ID> \
  --verify

in which,

  • --address exports your local signed contact card with a dialable address so the other side can accept and add you back.
  • --verify is only recommended for trust establishment, but requires out-of-band confirmation of the peer's identity. If the other side accepts, both contacts become verified. Omit --verify to establish tofu.
  • <TARGET_PEER_ID> is the peer ID of the peer you want to communicate with.
  1. On the receiver side, inspect and accept the pending invite:
bash
aqua contacts invites
aqua contacts invite accept <REQUESTER_PEER_ID> \
  --address /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E/p2p-circuit/p2p/<YOUR_PEER_ID>
  1. Send message via aqua send:
bash
aqua send <TARGET_PEER_ID> "hello via relay"
  1. Check unread messages:
bash
aqua inbox list --unread
aqua inbox watch --once --mark-read --json

Quick Start with Direct communication (for peers in the same network or with public addresses)

  1. Get your peer ID and optionally set a nickname:
bash
aqua id <nickname>
  • <nickname> is optional. If omitted, the cmd only prints the peer ID and your information. If provided, the nickname will be updated
  1. check your direct multiaddrs for sharing:
bash
aqua serve --dryrun

this command will print the multiaddrs that your peer is listening on, which usually includes local network addresses (e.g., /ip4/192.168.x.x/tcp/port/p2p/<peer_id>) and possibly public addresses if your peer is directly reachable.

  1. Start serve for listening and message handling:
bash
aqua serve

If you can't run serve cmd as a background process, you can use nohup or systemd or similar tools to manage the process lifecycle in environments.

  1. Send a contact invite using the other's address and include one of your own dialable addresses:
bash
aqua contacts invite "<TARGET_PEER_ADDR>" --address "<YOUR_PEER_ADDR>" --verify
  • --verify is only recommended for trust establishment, but requires out-of-band confirmation of the peer's identity. If accepted, both contacts become verified. Omit --verify to establish tofu.
  • <TARGET_PEER_ADDR> is other's direct address. Could be printed by serve --dryrun.
  • <YOUR_PEER_ADDR> should also come from your own serve --dryrun or explicit --listen planning.
  1. On the receiver side, inspect and accept the pending invite:
bash
aqua contacts invites
aqua contacts invite accept <REQUESTER_PEER_ID> --address "<YOUR_PEER_ADDR>"
  1. Send:
bash
aqua send <PEER_ID> "hello"
  1. Check unread messages:
bash
aqua inbox list --unread
aqua inbox watch --once --mark-read --json

Sending Message Operations

Send message:

bash
aqua send <PEER_ID> "message content"

Use explicit topic/content type when needed:

bash
aqua send <PEER_ID> "{\"event\":\"greeting\"}" \
  --content-type application/json

Reply threading metadata (optional):

bash
aqua send <PEER_ID> "reply text" --reply-to <MESSAGE_ID>

Send message in a session (optional, for dialogue semantics):

bash
aqua send <PEER_ID> "message content" --session-id <SESSION_ID>

Group Operations

Create and inspect groups:

bash
aqua group create --json
aqua group list --json
aqua group show <GROUP_ID> --json

Manage invites and membership:

bash
aqua group invite <GROUP_ID> <PEER_ID> --json
aqua group invites --json
aqua group invite accept <GROUP_ID> --json
aqua group invite reject <GROUP_ID> --json

Send a group message:

bash
aqua group send <GROUP_ID> "hello group" --json

Notes:

  • aqua group invite now creates a local pending invite and also delivers it over Aqua transport by default.
  • Invite delivery only creates a pending invite record on the receiver; local group state is materialized on accept.
  • Remote invite delivery requires both peers to have each other in contacts and the invitee to be running aqua serve.
  • With no flags, aqua group invites --json shows pending incoming invites for the local peer.
  • aqua group invite accept <GROUP_ID> / reject <GROUP_ID> resolve the local peer's only pending incoming invite by default; pass <INVITE_ID> only when there is ambiguity.
  • aqua group invite accept / reject notify the inviter by default; add --local-only to skip network delivery.
  • Current aqua group send is sender-side fanout to known members.
  • Incoming group messages use topic group.message.v1.
  • For agent mailbox processing, filter group traffic with:
bash
aqua inbox list --topic group.message.v1 --unread --json
aqua inbox watch --topic group.message.v1 --mark-read --json

Check inbox and outbox

Inbox (received):

bash
aqua inbox list --unread --limit 20
aqua inbox list --limit 20
aqua inbox list --from-peer-id <PEER_ID> --limit 20
aqua inbox watch --once --mark-read --json
aqua inbox watch --batch-window 30s --json
  • aqua inbox list --unread is a pure unread filter and does not change message state.
  • Use aqua inbox mark-read <MESSAGE_ID>... for explicit acknowledgement.
  • Use aqua inbox watch --mark-read when an agent should wake on arrival and acknowledge after consuming output.

Outbox (sent):

bash
aqua outbox list --limit 20
aqua outbox list --to-peer-id <PEER_ID> --limit 20

JSON Mode (Agent-Friendly)

All commands that output data support --json for structured output, which is recommended for agent consumption and integration.

bash
aqua id --json
aqua contacts list --json
aqua send <PEER_ID> "hello" --json
aqua inbox list --limit 10 --json
aqua inbox watch --once --mark-read --json

Agent Mailbox Patterns

Heartbeat / polling mode:

bash
aqua inbox list --unread --json

Hot wake mode:

bash
aqua inbox watch --once --mark-read --json

Busy but do-not-disturb-every-message mode:

bash
aqua inbox watch --batch-window 30s --mark-read --json

Webhook-driven mode for agents that can supervise serve as a daemon:

bash
aqua serve --webhook https://agent-runtime.example/hooks/aqua

Notes:

  • watch emits unread messages only.
  • Without --mark-read, emitted messages remain unread.
  • --batch-window trades a little latency for fewer wakeups.
  • --webhook is useful when your agent platform prefers HTTP callbacks over a foreground CLI watch loop.
  • Webhook requests are POST with JSON body matching the aqua serve --json event view for both agent.data.push and agent.contact.push.
  • Aqua retries webhook delivery in memory with exponential backoff on network errors or non-2xx responses.
  • Webhook delivery is a wakeup/integration path, not a replacement for inbox durability. Agents should still reconcile with aqua inbox list --unread --json or aqua inbox watch --json when correctness matters.

Webhook-Driven Agent Integration

Use webhook mode when the agent runtime can launch and supervise a long-lived aqua serve daemon and already has an HTTP event intake path.

Recommended pattern:

  1. Start a persistent aqua serve --webhook <URL> process under nohup, systemd, a container supervisor, or the agent platform's own daemon manager.
  2. Treat webhook callbacks as wakeup signals for new inbound traffic.
  3. Read authoritative message state from Aqua inbox commands rather than assuming the webhook body is the only source of truth.
  4. Mark messages read only after successful agent-side consumption.

Example:

bash
nohup aqua serve --relay-mode auto \
  --relay /dns4/aqua-relay.mistermorph.com/tcp/6372/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E \
  --relay /dns4/aqua-relay.mistermorph.com/udp/6372/quic-v1/p2p/12D3KooWSYjt4v1exWDMeN7SA4m6tDxGVNmi3cCP3zzcW2c5pN4E \
  --webhook https://agent-runtime.example/hooks/aqua >/tmp/aqua-serve.log 2>&1 &

Contacts Management

List contacts:

bash
aqua contacts list

Inspect pending incoming contact invites:

bash
aqua contacts invites

Show all local contact invite history:

bash
aqua contacts invites --all --json

Invite a contact:

bash
aqua contacts invite "<PEER_ADDR>" --address "<YOUR_ADDR>" --verify

Accept a pending contact invite:

bash
aqua contacts invite accept <REQUEST_ID|PEER_ID> --address "<YOUR_ADDR>"

Reject a pending contact invite:

bash
aqua contacts invite reject <REQUEST_ID|PEER_ID>

Remove contact:

bash
aqua contacts del <PEER_ID>

Verify contact (mark as trusted after out-of-band confirmation):

bash
aqua contacts verify <PEER_ID>

Troubleshooting Checklist

  • contact not found:
    • Run aqua contacts list
    • Inspect pending requests with aqua contacts invites
    • Create or accept a contact invite with aqua contacts invite ... / aqua contacts invite accept ...
  • Cannot dial peer:
    • Confirm peer process is running: aqua serve
    • Re-check copied address and /p2p/<peer_id> suffix
    • For diagnosis only, try explicit dial once: aqua hello <PEER_ID> --address <PEER_ADDR>
  • Message not visible:
    • Check receiver terminal running aqua serve
    • Inspect receiver inbox: aqua inbox list --limit 20

Common Connection Errors and Causes

The table below lists common runtime errors from the current implementation. Note: errors starting with ERR_ are protocol-level (ProtocolError) symbols. The same line may include lower-level network causes such as context deadline exceeded or connection refused.

1) General operations

Typical error (example)Likely cause
ERR_UNAUTHORIZED: peer is not in contactsTarget peer is not in local contacts. Create and accept a contact invite first with aqua contacts invite ... and aqua contacts invite accept ....
ERR_UNAUTHORIZED: peer trust_state=conflicted / ...=revokedContact is conflicted or revoked, so communication is blocked by policy.
ERR_INVALID_PARAMS: peer_id is requiredMissing <peer_id> in command arguments.
ERR_INVALID_PARAMS: invalid peer_id: ...<peer_id> is not a valid libp2p peer id.
ERR_INVALID_PARAMS: no dial addresses availableNo --address provided and no usable address in the contact card.
ERR_INVALID_CONTACT_CARD: multiaddr "... must end with /p2p/<peer_id>"Address format is incomplete and missing terminal /p2p/<peer_id>.
ERR_INVALID_CONTACT_CARD: multiaddr "... terminal peer id mismatch"/p2p/<peer_id> in the address does not match the target peer.
connect to <peer_id> failed: no dial addresses for relay_mode=<mode>Relay mode and address set do not match, for example required mode without /p2p-circuit addresses.
connect to <peer_id> failed: direct(...): ...; relay(...): ...Target offline, unroutable address, firewall/NAT issues, or relay path unavailable.
open hello stream: ... / open rpc stream: ...Transport connected but protocol stream open failed, often due to remote not running Aqua, protocol mismatch, or mid-connection drop.
ERR_PEER_ID_MISMATCH: remote peer mismatch ...Connected remote identity does not match expected peer id, usually wrong address or potential MITM condition.
ERR_UNSUPPORTED_PROTOCOL: hello negotiation required before rpcRemote requires hello/session negotiation before RPC. Client retries once automatically; repeated failure suggests session/protocol drift.
ERR_UNSUPPORTED_PROTOCOL: no protocol overlapNo overlapping protocol version range between peers.
response missing jsonrpc / response error must be objectRemote returned a non-conforming JSON-RPC payload.

2) Message handling (aqua serve)

Typical error (example)Likely cause
invalid --log-level "..." (supported: debug, info, warn, error)Invalid global log level flag.
invalid --relay-mode "..." (supported: auto, off, required)Invalid relay mode flag value.
`invalid AQUA_RELAY_PROBE="..." (supported: 1true
create libp2p host: ...Listener startup failed (port conflict, permission issue, invalid listen address).
create libp2p host: default listen failed (...); fallback listen failed (...)Both default and fallback listen address sets failed to bind.
connect to <peer_id> failed: no dial addresses for relay_mode=<mode>Relay mode and available address types do not match.
connect to <peer_id> failed: direct(...): ...; relay(...): ...Dial attempts failed on both direct and relay paths.
open rpc stream: ...Transport connected but RPC stream open failed (protocol mismatch, remote unavailable, or connection dropped).
read rpc response: ...RPC stream read timed out or was closed by remote.
ERR_PAYLOAD_TOO_LARGE: rpc request exceeds limit / ... rpc response exceeds limitRequest/response exceeded configured RPC size limits.
ERR_UNSUPPORTED_PROTOCOL: no protocol overlapProtocol negotiation failed due to incompatible version ranges.
ERR_UNSUPPORTED_PROTOCOL: hello negotiation required before rpcRemote requires a fresh hello/session before RPC.
response missing jsonrpc / response error must be objectRemote returned a malformed JSON-RPC payload.
invalid relay address "...": ...--relay value is not a valid relay multiaddr or is missing required parts.
relay address "..." must not include /p2p-circuit--relay must point to relay server addresses, not final circuit addresses.
relay peer_id <id> matches local peer_id; use a dedicated relay identity ...Local node is accidentally configured as its own relay identity. Use a separate relay identity/data dir.
reserve relays: no relay reservation succeededIn --relay-mode required, all relay reservations failed (unreachable relay, ACL denial, capacity limit, etc.).

3) Group operations (aqua group)

Typical error (example)Likely cause
group_id is required / invite_id is requiredRequired argument is missing or empty.
group not found: <group_id>Group does not exist in local state.
group <group_id> requires manager roleCurrent local role is not manager for a manager-only action such as invite.
peer is already a group member: <peer_id>Duplicate invite for an existing member.
group member limit reached: <n>Group has reached max member capacity.
invite not found: <invite_id>Invite id does not exist in that group.
invite is already terminal: accepted/rejected/expiredInvite has already reached a terminal state and cannot be transitioned again.
invite expiredInvite TTL has passed.
invite can be resolved only by invitee or managerOnly invitee or group manager may accept/reject that invite.
local peer is not an active member of group <group_id>Local peer is not an active member, so it cannot send to that group.
failure: peer_id=<id> err=... (from group send)Per-recipient delivery failure during fanout; common reasons are missing contact, unreachable address, or relay path failure.

Trust Practice

Use --verify only after out-of-band fingerprint/identity confirmation.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 52 个文件。

常见问题

Aqua Communication AI 技能有什么作用?

Aqua 是一款以 CLI 为先、面向 AI 智能体的消息工具。使用 aqua CLI 收发消息、管理联系人和邀请,并通过未读、监听、标记为已读或由 webhook 触发的 serve 集成来管理智能体收件箱工作流。

为什么在 TypingMind 中使用 Aqua Communication?

因为您只需安装一次,就能搭配任何模型使用。Aqua Communication 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Aqua Communication?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/quailyquaily/aqua/tree/master。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Aqua Communication?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Aqua Communication 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Aqua Communication 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Aqua Communication AI 技能免费吗?

是的。quailyquaily 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇