Skip to content

The agent that grows with you

docs(acp): verify Buzz relay-bridge docs against buzz source, cross-link modes, add zh-Hans

Teknium82ed4dee369c
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]
new file mode 100644
index 00000000000..af4b8d81f53
--- /dev/null
+++ b/contributors/emails/[email protected]
@@ -0,0 +1 @@
+NYTEMODEONLY
diff --git a/website/docs/user-guide/features/acp.md b/website/docs/user-guide/features/acp.md
index d209e6c2e24..a9012f065ae 100644
--- a/website/docs/user-guide/features/acp.md
+++ b/website/docs/user-guide/features/acp.md
@@ -97,7 +97,7 @@ The bootstrap is idempotent — re-running it is fast and skips work that's alre
## Host setup
-### Buzz
+### Buzz channels (relay bridge)
[Buzz](https://github.com/block/buzz) is a Nostr-based collaboration platform
for people and agents. Its `buzz-acp` harness connects Buzz channels to any ACP
@@ -111,19 +111,26 @@ This is a transport integration, not a second Hermes installation. The
subprocess launched by `buzz-acp` uses the same Hermes configuration,
credentials, memory, skills, and state as `hermes` on that host.
+(This is distinct from [Buzz Desktop's managed runtime](#buzz-desktop), which
+spawns Hermes locally as a preset harness. The relay bridge is for joining Buzz
+*channels* as an agent identity, typically on a server.)
+
Prerequisites:
- Complete the ACP installation and `hermes acp --check` above.
-- Build or install `buzz-acp` and the `buzz` CLI from the
- [Buzz repository](https://github.com/block/buzz).
-- Provision a dedicated Buzz/Nostr identity for Hermes.
-- Add that identity to the intended Buzz channels with the `bot` role.
+- Build `buzz-acp` and the `buzz` CLI from the
+ [Buzz repository](https://github.com/block/buzz)
+ (`cargo build --release -p buzz-acp`).
+- Mint a dedicated Nostr keypair for Hermes (`buzz-admin generate-key`) and
+ register it as a relay member (`buzz-admin add-member`). Every agent needs
+ its own identity — do not reuse a human keypair.
+- Add that identity to the intended Buzz channels.
-Start a local bridge with:
+Start a bridge with:
```bash
export BUZZ_RELAY_URL="wss://community.example.com"
-export BUZZ_PRIVATE_KEY="nsec1..."
+export BUZZ_PRIVATE_KEY="..."
export BUZZ_API_TOKEN="..."
export BUZZ_ACP_AGENT_COMMAND="hermes"
export BUZZ_ACP_AGENT_ARGS="acp"
@@ -132,57 +139,37 @@ buzz-acp
```
`BUZZ_API_TOKEN` is needed only when the relay enforces token authentication.
-Do not commit or paste the private key, API token, or owner authorization.
+Do not commit or paste the private key or API token.
For a persistent server deployment, run `buzz-acp` under a service manager as
-the same operating-system user that owns the intended Hermes home. The Buzz
-operator guide covers dedicated identities, author allowlists, channel
-membership, secret-file permissions, `systemd`, live round-trip verification,
-and troubleshooting:
-
-- [Run a Hermes Agent in Buzz](https://github.com/block/buzz/blob/main/docs/hermes-agent-acp.md)
+the same operating-system user that owns the intended Hermes home. Setup,
+key generation, channel discovery, and per-agent options are documented in the
+[buzz-acp README](https://github.com/block/buzz/tree/main/crates/buzz-acp).
The bridge discovers every Buzz channel where the Hermes identity is a member
and automatically subscribes when it is added to another channel. Buzz channel
membership therefore remains the access boundary; Hermes does not need a
separate channel list in its own configuration.
-Current `buzz-acp` builds also publish the Hermes identity's relay-directory
-profile at startup. This makes the externally hosted identity appear by its
-Buzz display name under **Agents → External agents** and in the `@` mention picker
-for users admitted by the bridge's inbound author gate. The directory event
-contains identity, channel, owner, and audience metadata—not Hermes or Buzz
-credentials.
-
-The verified owner can customize the external agent's Buzz display name and
-avatar. Buzz applies that presentation consistently to cards, profiles,
-messages, mentions, DMs, and sidebars. It does not modify Hermes configuration,
-Soul, prompts, memory, provider, skills, or identity.
-
To expose Hermes ACP activity in the owner's Buzz Desktop, add:
```bash
export BUZZ_ACP_RELAY_OBSERVER="true"
```
-This publishes encrypted kind `24200` frames addressed to the verified owner.
-Desktop renders the live lifecycle, tool, response, and usage stream in the
-agent's **Activity log**. The relay treats these frames as ephemeral, so
-Desktop must be online before the turn starts; its local observer archive is
-the durable owner-side history.
-
-Headless bridges commonly run with ACP permission bypass enabled because no
-editor is present to answer approval dialogs. Treat that as privileged
-automation: use a dedicated operating-system account, restrict which Buzz users
-can prompt the agent, and grant membership only in channels where Hermes is
-expected to work.
-
-For an end-to-end check, open the external-agent card, customize its avatar,
-verify the avatar on a channel message and sidebar entry, open **Activity log**,
-then trigger a fresh mention. A complete test shows the signed Hermes reply and
-the owner-decrypted ACP transcript without changing Hermes-owned state.
-
-### Editors
+This publishes encrypted kind `24200` observer frames addressed to the agent's
+owner (Buzz's NIP-AO). Desktop renders the live lifecycle, tool, response, and
+usage stream in the agent's **Activity log**. The relay treats these frames as
+ephemeral, so Desktop must be online before the turn starts; its local observer
+archive is the durable owner-side history.
+
+Headless bridges answer ACP permission requests themselves because no editor
+is present to show approval dialogs — see
+[Keep Buzz agents owner-only](#keep-buzz-agents-owner-only). Treat the bridge
+as privileged automation: use a dedicated operating-system account, restrict
+which Buzz users can prompt the agent (`buzz-acp` supports an owner-only
+respond gate via `BUZZ_ACP_AGENT_OWNER`), and grant membership only in channels
+where Hermes is expected to work.
### VS Code
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md
index 4da6708e4c8..fa719d91214 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md
@@ -1,10 +1,10 @@
---
sidebar_position: 11
-title: "ACP 编辑器集成"
-description: "在 VS Code、Zed 和 JetBrains 等兼容 ACP 的编辑器中使用 Hermes Agent"
+title: "ACP 宿主集成"
+description: "在兼容 ACP 的编辑器和协作平台中使用 Hermes Agent"
---
-# ACP 编辑器集成
+# ACP 宿主集成
Hermes Agent 可作为 ACP 服务器运行,让兼容 ACP 的编辑器通过 stdio 与 Hermes 通信并渲染:
@@ -89,6 +89,71 @@ hermes acp --setup-browser --yes # 非交互式接受下载
该引导过程是幂等的——重复运行速度很快,已完成的步骤会被跳过。
+## 宿主设置
+
+### Buzz 频道(中继桥接)
+
+[Buzz](https://github.com/block/buzz) 是一个基于 Nostr 的人机协作平台。
+其 `buzz-acp` harness 通过 stdio 将 Buzz 频道连接到任意 ACP agent:
+
+```text
+Buzz relay <-- WebSocket --> buzz-acp <-- ACP over stdio --> Hermes Agent
+```
+
+这是一种传输层集成,不是第二个 Hermes 安装。由 `buzz-acp` 启动的子进程使用该主机上
+与 `hermes` 相同的配置、凭据、记忆、技能和状态。
+
+(这与 [Buzz Desktop 的托管运行时](#buzz-desktop)不同——后者在本地将 Hermes 作为
+预设 harness 启动。中继桥接用于以 agent 身份加入 Buzz *频道*,通常部署在服务器上。)
+
+前置条件:
+
+- 完成上文的 ACP 安装并通过 `hermes acp --check`。
+- 从 [Buzz 仓库](https://github.com/block/buzz)构建 `buzz-acp` 和 `buzz` CLI
+ (`cargo build --release -p buzz-acp`)。
+- 为 Hermes 铸造专用的 Nostr 密钥对(`buzz-admin generate-key`)并将其注册为
+ 中继成员(`buzz-admin add-member`)。每个 agent 都需要自己的身份——不要复用
+ 人类的密钥对。
+- 将该身份加入目标 Buzz 频道。
+
+启动桥接:
+
+```bash
+export BUZZ_RELAY_URL="wss://community.example.com"
+export BUZZ_PRIVATE_KEY="..."
+export BUZZ_API_TOKEN="..."
+export BUZZ_ACP_AGENT_COMMAND="hermes"
+export BUZZ_ACP_AGENT_ARGS="acp"
+
+buzz-acp
+```
+
+仅当中继强制 token 认证时才需要 `BUZZ_API_TOKEN`。切勿提交或粘贴私钥和 API token。
+
+若要持久化部署到服务器,请以拥有目标 Hermes home 的同一操作系统用户身份,
+在服务管理器下运行 `buzz-acp`。安装、密钥生成、频道发现和各项 agent 选项见
+[buzz-acp README](https://github.com/block/buzz/tree/main/crates/buzz-acp)。
+
+桥接会发现 Hermes 身份所属的每个 Buzz 频道,并在其被加入新频道时自动订阅。
+因此 Buzz 频道成员资格就是访问边界;Hermes 自身配置中无需单独的频道列表。
+
+若要在所有者的 Buzz Desktop 中展示 Hermes 的 ACP 活动,添加:
+
+```bash
+export BUZZ_ACP_RELAY_OBSERVER="true"
+```
+
+这会发布加密的 kind `24200` 观察者帧(Buzz 的 NIP-AO),仅所有者可解密。
+Desktop 会在该 agent 的 **Activity log** 中实时渲染生命周期、工具、响应和用量流。
+中继将这些帧视为临时数据,因此 Desktop 必须在回合开始前在线;其本地观察者归档
+才是所有者侧的持久历史。
+
+无头桥接会自行回应 ACP 权限请求,因为没有编辑器来展示审批对话框——参见
+[将 Buzz agent 保持为 owner-only](#将-buzz-agent-保持为-owner-only)。请将桥接视为
+特权自动化:使用专用操作系统账户,限制哪些 Buzz 用户可以触发 agent
+(`buzz-acp` 通过 `BUZZ_ACP_AGENT_OWNER` 支持仅所有者响应门控),
+并仅在预期 Hermes 工作的频道中授予成员资格。
+
## 编辑器设置
### VS Code