Logo Hermes In Buzz

Hermes In Buzz

Cộng đồng
tonbistudio
hermes-in-buzz

Use when connecting a remote Hermes gateway to Buzz end-to-end. Do not use for a Buzz-managed ACP runtime; use the official buzz-acp relay-bridge guide instead.

Tổng quan

Nhà phát hànhtonbistudio
Kho mãbuzz-skills
Tên kỹ nănghermes-in-buzz
Sao
277
Bản fork
18
Tệp đi kèm
3
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được tonbistudio công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Hermes In Buzz trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/tonbistudio/buzz-skills/tree/main/hermes-in-buzz
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tonbistudio/buzz-skills.git /tmp/buzz-skills
mkdir -p .claude/skills
cp -r /tmp/buzz-skills/hermes-in-buzz .claude/skills/hermes-in-buzz
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Hermes In Buzz trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Hermes In Buzz ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Hermes In Buzz với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Hermes in Buzz

Overview

Set up a dedicated Hermes Agent running on one machine as a native messaging agent in a Buzz community used from another machine. The default topology is:

text
Buzz Desktop / web client
          |
          v
      Buzz relay
          ^
          | Nostr WebSocket + buzz CLI
          |
Remote Hermes gateway

The client PC does not SSH into the Hermes host. Both independently connect to the same Buzz relay, and Buzz Desktop may be offline while Hermes continues running.

This skill executes the setup, not merely describes it. Continue until the CLI works, relay authorization succeeds, the gateway logs buzz connected, and one inbound plus outbound message has been verified.

Authoritative docs change quickly. At the start of every run, load the hermes-agent skill and inspect:

If docs and this skill differ, follow the docs and patch this skill after the successful run.

When to Use

Use when:

  • Buzz Desktop is on one computer and Hermes should run continuously on another;
  • a user says they created a Buzz agent but the Hermes gateway is silent;
  • errors progress through buzz CLI binary not found, relay_membership_required, zero channels, or ignored mentions;
  • moving an existing native Buzz/Hermes gateway to Linux, macOS, Windows, or WSL.

Do not use this native-gateway workflow when the user explicitly wants Buzz to own the runtime and show ACP activity. In that case use the official buzz-acp relay-bridge guide. Do not improvise an SSH-stdio bridge unless the user explicitly requests an experimental design.

Hard Security Rules

  1. Use a dedicated agent identity. Never reuse the human Buzz nsec as BUZZ_PRIVATE_KEY.
  2. Never ask for an nsec, API token, or owner key in chat or via clarify.
  3. Secret input must be local and hidden (getpass, Read-Host -AsSecureString, or equivalent), never argv.
  4. Never print, log, persist temporarily, or return owner private-key material.
  5. Store the agent key and BUZZ_AUTH_TAG only in the active profile's Hermes secret environment file. Resolve HERMES_HOME; do not assume ~/.hermes when a profile is active.
  6. Use hermes config set for non-secret settings. Never hand-edit config.yaml.
  7. Default to allow_all_users: false, an explicit owner allowlist, and require_mention: true. Do not broaden access merely to diagnose delivery.
  8. Ask approval before installing Rust, Git, build tools, downloading Buzz, or changing persistence/service configuration.
  9. An ACP-hosted Hermes can execute terminal tools without a visible approval because Buzz may auto-answer ACP permissions. Keep ACP agents owner-only. Native gateway approvals retain Hermes gateway semantics.

Phase 1: Discover the Host and Choose the Architecture

  1. Detect OS, architecture, shell, active Hermes home/profile, service manager, and tool availability. Check at least hermes, git, cargo, rustc, and buzz/buzz.exe. On Windows distinguish native Windows from WSL.
  2. Run hermes status, hermes gateway status, and inspect redacted BUZZ_* presence. Never print secret values.
  3. Confirm the intended architecture:
    • Native gateway (default): full Hermes memory, skills, normal sessions, DMs, cron delivery, images, reactions, threaded replies, and multiple messaging platforms in one gateway.
    • Relay bridge (buzz-acp): Buzz owns transport; Hermes runs in ACP mode on the server; reduced ACP-oriented surface and stronger owner-only warning.
    • Buzz Desktop runtime: Hermes runs on the same computer as Buzz Desktop, not the remote-host goal.
  4. Collect only non-secret facts in chat: relay URL, desired agent display name, owner public npub, intended channels/home channel, and whether other community members may invoke it.

Completion criterion: topology and access policy are explicit, no secret has appeared in conversation, and native gateway is selected unless the user chose otherwise.

Phase 2: Obtain a Dedicated Buzz Identity

Preferred native-gateway identity:

  • dedicated agent nsec and matching npub;
  • direct relay membership when a relay administrator can add it; or
  • NIP-OA owner attestation when a hosted/closed community uses managed agents.

For Buzz Desktop-managed identities:

  1. Have the user create the agent in Buzz Desktop and save the one-time displayed agent nsec locally.
  2. Use scripts/update_buzz_credentials.py set-agent-key on the Hermes host. The script prompts locally with hidden input and atomically writes BUZZ_PRIVATE_KEY.
  3. Do not assume creating or adding an agent to a channel makes it a direct relay member. Channel membership and relay/community admission differ.
  4. If direct authentication returns relay_membership_required and the configured public key exactly matches the Buzz agent, keep the key and proceed to NIP-OA attestation. Do not regenerate identities repeatedly.

Resolve a Python interpreter the user can invoke locally:

  • Linux/macOS/WSL: prefer the active Hermes venv Python, then python3.
  • Native Windows: prefer %HERMES_HOME%\hermes-agent\venv\Scripts\python.exe, then py -3 or python.

Run the bundled updater from a real local terminal so the user—not the agent chat—enters the secret:

text
<python> <skill-dir>/scripts/update_buzz_credentials.py set-agent-key --hermes-home <resolved-HERMES_HOME>

Completion criterion: BUZZ_PRIVATE_KEY exists with restricted permissions where supported, but no secret value was printed.

Phase 3: Install the Buzz CLI Portably

Outbound messages always require the external buzz CLI even when inbound WebSocket transport is healthy.

3.1 Prefer a verified prebuilt CLI

  1. Query the current stable block/buzz release API.
  2. Inspect asset names and content—not just the release title.
  3. Use a prebuilt asset only if it is a standalone Buzz CLI matching the exact OS and architecture.
  4. Verify its published digest when available, install it to a user-writable path, mark executable on Unix, and run buzz --help.

Desktop .dmg, .deb, .rpm, .AppImage, or Windows desktop installers are not automatically standalone CLI assets.

3.2 Build from a pinned stable release when necessary

Ask approval before downloads or installs. Install prerequisites using the native package mechanism:

HostTypical prerequisites
LinuxGit, Rustup/Cargo, C/C++ compiler, make, cmake, pkg-config; use the detected distro package manager
macOSXcode Command Line Tools, Git, Rustup/Cargo; Homebrew is optional, not assumed
Windows nativeGit, Rustup MSVC toolchain, Visual Studio C++ Build Tools; prefer winget when present
WSLFollow Linux branch; enable systemd for managed-service persistence or use foreground mode

Do not hardcode main. Resolve the latest stable release tag from GitHub, show the pinned tag, then clone into a cache/temp build directory:

bash
git clone --depth 1 --branch <stable-tag> https://github.com/block/buzz.git <build-dir>
cargo build --release -p buzz-cli

Install to a user path:

  • Linux/macOS/WSL: ~/.local/bin/buzz
  • Windows: %USERPROFILE%\.local\bin\buzz.exe

Use the absolute path in Hermes config so service PATH differences cannot break it. On macOS, rerun hermes gateway install --force after adding executables so launchd snapshots the current PATH.

3.3 Build the safe NIP-OA helper

When a hosted managed agent may need owner attestation, copy linked file scripts/hermes_buzz_credential_helper.rs into the pinned Buzz checkout as:

text
crates/buzz-sdk/examples/hermes_buzz_credential_helper.rs

Build it with the same pinned source:

bash
cargo build --release -p buzz-sdk --example hermes_buzz_credential_helper

Install beside the Buzz CLI as hermes-buzz-credential-helper (append .exe on Windows). This helper reads private input from stdin; never alter it to accept private keys via argv.

Completion criterion: the installed absolute CLI path executes --help; if attestation may be needed, the credential helper also runs and its smoke test with a generated disposable key returns a structurally valid result.

Phase 4: Configure Non-Secret Hermes Settings

Use hermes config set, with the active profile selected when applicable. Set:

text
gateway.platforms.buzz.enabled = true
gateway.platforms.buzz.extra.relay_url = <relay URL>
gateway.platforms.buzz.extra.cli_path = <absolute CLI path>
gateway.platforms.buzz.extra.channels = [] or explicit UUID list
gateway.platforms.buzz.extra.home_channel = <UUID when outbound cron/notifications are wanted>
gateway.platforms.buzz.extra.poll_interval = 4
gateway.platforms.buzz.extra.require_mention = true
gateway.platforms.buzz.extra.allow_all_users = false
gateway.platforms.buzz.extra.allowed_users = [<owner npub or hex>]
display.platforms.buzz.interim_assistant_messages = false
display.platforms.buzz.tool_progress = off

Use JSON array syntax accepted by the live hermes config set implementation. Verify each value with hermes config get; do not infer success from exit code alone.

Migrate legacy or wizard-created environment-only setups. Environment variables override canonical config, so an old BUZZ_ALLOW_ALL_USERS=true silently defeats allow_all_users: false. After copying every non-secret value into canonical config and verifying it, atomically remove these overrides from the active profile's .env:

text
BUZZ_RELAY_URL
BUZZ_CHANNELS
BUZZ_HOME_CHANNEL
BUZZ_ALLOWED_USERS
BUZZ_ALLOW_ALL_USERS
BUZZ_POLL_INTERVAL
BUZZ_CLI_PATH
BUZZ_TRANSPORT

Retain credential material such as BUZZ_PRIVATE_KEY, BUZZ_AUTH_TAG, and any documented API token. Before removal, show only variable names and redacted set/unset state; never print values. Restart and re-read effective config after migration.

If the user explicitly wants community-wide invocation, explain that every community member who can address the agent may trigger tools, obtain approval, then set allow_all_users: true. Keep owner/admin command authorization separate.

Completion criterion: canonical non-secret configuration is present, no legacy environment variable overrides it, owner-only access is effective by default, and cli_path is absolute.

Phase 5: Verify Identity and Relay Admission

Load credentials with Hermes' dotenv parser or the bundled updater—not by shell-sourcing .env. Raw BUZZ_AUTH_TAG JSON loses quotation marks when shell-sourced and produces a false invalid JSON diagnosis.

  1. Run the helper's public command through the Python updater to derive safe public values from the stored agent key:
text
<python> update_buzz_credentials.py public --hermes-home <home> --helper <helper-path>
  1. Compare the emitted public npub/hex with the agent shown in Buzz.
  2. Invoke buzz channels list with the exact dotenv values passed through a subprocess environment.
  3. Interpret results:
    • binary missing: fix install path/service PATH;
    • malformed auth tag only after shell sourcing: retest without shell parsing;
    • relay_membership_required plus matching public key: direct membership or NIP-OA is missing;
    • successful auth but zero channels: attach the agent to intended channels;
    • identity mismatch: replace the wrong agent key before doing anything else.

Completion criterion: public identity matches and direct CLI channel discovery succeeds, or the failure is specifically proven to require NIP-OA.

Phase 6: Generate NIP-OA Attestation Safely When Needed

Buzz Desktop-managed agents have both an agent key and an owner-signed auth tag. Desktop injects the tag into locally launched managed agents but may reveal only the agent nsec during creation.

If no relay-admin membership path exists:

  1. Confirm the agent public key matches.
  2. Ask the user to open Buzz Desktop on the owner PC and locate the human/owner private key under Identity settings.
  3. On the Hermes host, run:
text
<python> update_buzz_credentials.py set-auth-tag \
  --hermes-home <home> \
  --helper <absolute-helper-path> \
  --agent-pubkey <64-char-agent-hex>

The updater uses hidden local input, sends the owner key to the Rust helper over stdin, validates a JSON four-string tag whose first value is auth, atomically writes only BUZZ_AUTH_TAG, and discards the owner key from memory. Never request that key in chat.

Then rerun direct channel discovery using exact dotenv parsing.

Completion criterion: CLI authentication succeeds and visible channel UUIDs are listed.

Phase 7: Install and Start the Gateway by OS

Linux with systemd

bash
hermes gateway install --force
hermes gateway start
hermes gateway status

For a remote user service that must survive logout, explain and request approval before:

bash
sudo loginctl enable-linger "$USER"

A Linux system service is an explicit alternative: sudo hermes gateway install --system.

macOS

bash
hermes gateway install --force
hermes gateway start
hermes gateway status

This installs/reloads a launchd agent. Reinstall after PATH changes.

WSL2

Preferred persistent route: enable systemd in /etc/wsl.conf, restart WSL, then use Linux commands. Otherwise run hermes gateway run in a durable terminal/tmux, or create a Windows Task Scheduler job launching:

text
wsl -d <Distro> -- bash -lc 'hermes gateway run'

Native Windows

Do not claim systemd/launchd service support. Start with:

powershell
hermes gateway run

For persistence, use Windows Task Scheduler to launch the full Hermes executable path at user logon with arguments gateway run --external-supervisor, a working directory under the active Hermes home, restart-on-failure enabled, and the intended user account. Verify in foreground before creating the task. Never create persistence without explicit approval.

Completion criterion: exactly one gateway instance is running for the profile and survives according to the persistence method the user approved.

Phase 8: End-to-End Verification

Do not declare success from process state alone.

  1. hermes gateway status shows a running gateway.
  2. Inspect gateway.log and OS service logs for:
    • Connecting to buzz...
    • connected to <relay> as <name>, watching N channel(s)
    • buzz connected
  3. Confirm channel count and intended UUIDs.
  4. Ask the user to send:
    • one DM (Hello) to the agent;
    • one channel mention (@Agent hello).
  5. Verify logs show inbound message: platform=buzz, response ready, and [Buzz] Sending response for each path.
  6. Confirm the replies actually appear in Buzz; logs alone do not prove UI delivery.
  7. If the displayed agent name is wrong, change the Buzz profile name separately; do not confuse host name, Hermes identity, and Buzz display name.

Completion criterion: one inbound message reached Hermes, Hermes generated a response, Buzz accepted the outbound send, and the user saw the response.

Failure Ladder

Treat each new error as progress to the next layer:

  1. buzz CLI binary not found — missing executable or service PATH/cli_path problem.
  2. relay_membership_required / 403 — valid signing key but no direct membership or NIP-OA attestation.
  3. Zero channels — relay admission works; channel attachment/filtering is wrong.
  4. Messages ignored — mention gating, allowlist, access policy, or self-echo suppression.
  5. Inbound works, outbound fails — CLI path, media path, or exact subprocess environment.
  6. Gateway appears stuck on another platform — read gateway.log, not only journal/stderr; successful INFO-level connection messages may not appear in system journal. Do not disable an unrelated platform before checking the file log.

After every repair: restart once, read the newest failure, and continue until the end-to-end criterion passes.

Common Pitfalls

  1. Assuming a Buzz Desktop package contains the CLI.
  2. Building unpinned main instead of a stable tag.
  3. Copying the agent nsec but omitting its NIP-OA auth tag on a closed hosted relay.
  4. Treating channel membership as relay membership.
  5. Asking the user to paste an owner key into chat.
  6. Passing private keys in process argv.
  7. Shell-sourcing dotenv JSON and misdiagnosing a valid auth tag as malformed.
  8. Setting BUZZ_ALLOW_ALL_USERS=true as a quick test and forgetting it.
  9. Running a second foreground gateway beside a managed service.
  10. Declaring success from gateway status without a real inbound/outbound Buzz exchange.
  11. Assuming Windows native has Linux/macOS service management; use foreground verification and Task Scheduler only with approval.
  12. Forgetting to copy this entire skill directory, including scripts/, to the new device.

Verification Checklist

  • Official docs and current Buzz release inspected
  • OS/architecture/profile/Hermes home detected
  • Native gateway versus ACP choice explicit
  • Dedicated agent identity used
  • No private key entered into chat or argv
  • Buzz CLI installed and smoke-tested
  • Absolute CLI path configured
  • Non-secret settings written with hermes config set
  • Owner-only access default preserved
  • Public agent identity matches Buzz
  • Direct CLI channel discovery succeeds
  • NIP-OA tag added only when required
  • Exactly one gateway instance runs
  • buzz connected confirmed in logs
  • DM and channel mention tested
  • User saw outbound replies in Buzz

Invocation and Transfer

Invoke in a fresh Hermes session with:

text
/hermes-in-buzz

or ask: “Use the hermes-in-buzz skill to connect this Hermes host to my Buzz community.”

To install on another device, copy the whole hermes-in-buzz directory into that profile's skills directory, preserving SKILL.md and scripts/, then start a new Hermes session so skill discovery refreshes.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Hermes In Buzz làm được gì?

Use when connecting a remote Hermes gateway to Buzz end-to-end. Do not use for a Buzz-managed ACP runtime; use the official buzz-acp relay-bridge guide instead.

Vì sao nên dùng Hermes In Buzz trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Hermes In Buzz là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Hermes In Buzz trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/tonbistudio/buzz-skills/tree/main/hermes-in-buzz. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Hermes In Buzz?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Hermes In Buzz với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Hermes In Buzz với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Hermes In Buzz có miễn phí không?

Có. Kỹ năng này được tonbistudio phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇