mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
Plugin-path adapter (zero core changes) connecting Hermes to a Buzz community relay via the buzz CLI binary (JSON in/out, arg-list exec, key passed via env only). Inbound uses a poll loop with per-channel high-water marks seeded from newest (no history replay), event-id de-dupe, self-echo suppression by pubkey, and mention gating in channels (DMs always dispatch). Registers env_enablement, cron home-channel delivery, and an out-of-process standalone sender, mirroring the IRC plugin. Verified against a live relay: connect -> send -> poll -> MessageEvent round-trip, self-echo suppressed, clean disconnect. Known limitation: polled inbound (default 4s); a websocket transport (buzz-ws-client) is a future optimization. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
51 lines
2.2 KiB
YAML
51 lines
2.2 KiB
YAML
name: buzz-platform
|
|
label: Buzz
|
|
kind: platform
|
|
version: 1.0.0
|
|
description: >
|
|
Buzz gateway adapter for Hermes Agent.
|
|
Connects to a Buzz community relay (Block's open-source human+agent
|
|
collaboration platform built on Nostr) and relays messages between
|
|
channels/DMs and the Hermes agent. Pure stdlib — shells out to the
|
|
buzz CLI binary (JSON in/out); no Python packages required.
|
|
author: Nous Research
|
|
# ``requires_env`` entries are surfaced in ``hermes config`` UI via the
|
|
# platform-plugin env var injector in ``hermes_cli/config.py``.
|
|
requires_env:
|
|
- name: BUZZ_RELAY_URL
|
|
description: "Base URL of the Buzz community relay (e.g. https://mycommunity.communities.buzz.xyz)"
|
|
prompt: "Buzz relay URL"
|
|
password: false
|
|
- name: BUZZ_PRIVATE_KEY
|
|
description: "Nostr private key for the agent's Buzz identity (nsec or hex) — the only Buzz secret"
|
|
prompt: "Nostr private key (nsec or hex)"
|
|
password: true
|
|
optional_env:
|
|
- name: BUZZ_CHANNELS
|
|
description: "Comma-separated channel UUIDs to watch (default: all joined channels)"
|
|
prompt: "Channel UUIDs (comma-separated)"
|
|
password: false
|
|
- name: BUZZ_HOME_CHANNEL
|
|
description: "Channel UUID for cron / notification delivery (defaults to the first watched channel)"
|
|
prompt: "Home channel UUID (or empty)"
|
|
password: false
|
|
- name: BUZZ_ALLOWED_USERS
|
|
description: "Comma-separated npubs or hex pubkeys allowed to talk to the agent"
|
|
prompt: "Allowed users (comma-separated)"
|
|
password: false
|
|
- name: BUZZ_ALLOW_ALL_USERS
|
|
description: "Allow any community member to talk to the agent (true/false)"
|
|
prompt: "Allow all users? (true/false)"
|
|
password: false
|
|
- name: BUZZ_POLL_INTERVAL
|
|
description: "Seconds between inbound poll sweeps (default: 4)"
|
|
prompt: "Poll interval seconds"
|
|
password: false
|
|
- name: BUZZ_CLI_PATH
|
|
description: "Path to the buzz CLI binary (default: 'buzz' on PATH, then ~/bin/buzz)"
|
|
prompt: "buzz CLI path (or empty)"
|
|
password: false
|
|
- name: BUZZ_CREDENTIALS_FILE
|
|
description: "JSON credentials file holding the nsec (fallback when BUZZ_PRIVATE_KEY is unset)"
|
|
prompt: "Credentials file path (or empty)"
|
|
password: false
|