All plugins

hermes-a2a-ui

Console for Hermes's built-in A2A (agent-to-agent) platform: a Desktop page and a web API to inspect configured peers and their Agent Cards, call peers from a conversation panel with streaming progress and cancel (same redaction, audit and persistence as the built-in a2a_call tool), list a peer's tasks, send whitelisted raw JSON-RPC, and browse persisted conversations, the local Agent Card and the audit log. Ships no agent tools, hooks or middleware; touches Hermes core only through documented plugin APIs and reuses the bundled A2A platform plugin's public helpers. Disclosure — sends the messages and JSON-RPC calls you make from the console to your configured A2A peers (and to addresses you type in) with your configured peer token only to that peer's own origin, never following redirects, and writes those calls to the A2A platform's audit log and conversation store like the built-in a2a_call tool.

JocltoDesktopv0.2.3Updated 8 hours ago

About

Console for Hermes's built-in A2A (agent-to-agent) platform: a Desktop page and a web API to inspect configured peers and their Agent Cards, call peers from a conversation panel with streaming progress and cancel (same redaction, audit and persistence as the built-in a2a_call tool), list a peer's tasks, send whitelisted raw JSON-RPC, and browse persisted conversations, the local Agent Card and the audit log. Ships no agent tools, hooks or middleware; touches Hermes core only through documented plugin APIs and reuses the bundled A2A platform plugin's public helpers. Disclosure — sends the messages and JSON-RPC calls you make from the console to your configured A2A peers (and to addresses you type in) with your configured peer token only to that peer's own origin, never following redirects, and writes those calls to the A2A platform's audit log and conversation store like the built-in a2a_call tool.

hermes-a2a-ui

A Hermes plugin that adds a human-facing console for the built-in
A2A platform (a2a-platform): inspect configured peers and
their Agent Cards, call peers from a dashboard panel with the same redaction, audit and
persistence semantics as the agent's own a2a_call, list a peer's tasks, and browse
persisted conversations and the audit log.

This repository ships the backend API (mounted at /api/plugins/hermes-a2a-ui/ inside
the gateway), the desktop page (desktop/plugin.js, a native Hermes Desktop page at
/a2a), their test suites, and the architecture documentation.

Screenshot

The Desktop page's Conversations tab, rendered with placeholder data (light theme):

A2A Console: the Conversations tab

Features

  • Peers — list configured peers (a2a_agents), probe their Agent Cards (bounded
    serial sweep), read any card with a lightweight A2A v1.0 conformance check.
  • Discovery — fetch the Agent Card of any policy-allowed URL, with no credentials
    attached
    and no configuration writes.
  • Calls — start a conversation with a configured peer (or an ad-hoc URL) from the
    panel. Streaming peers get SSE progress events; blocking peers get message/send.
    Replies are redacted, audited, and persisted exactly like agent-initiated calls, and
    panel-initiated records are marked so the agent's a2a_history still sees them.
  • Raw RPC console — send whitelisted A2A JSON-RPC methods to a configured peer
    (credentials injected) or any allowed URL (no credentials), with a masked request log.
  • Peer tasks — list the selected peer's own tasks via its card's JSONRPC interface.
    The local inbound task store is deliberately not exposed: the public plugin surface
    has no access path to the running adapter, so those endpoints answer a structured
    {"available": false} with the reason instead of guessing.
  • Inbound visibility — your Agent Card, platform status from the gateway's public
    runtime status record (booleans only), persisted conversations, and the audit log tail.
  • Events — task.update / traffic.new frames via
    broadcast_plugin_event plus an optional /events WebSocket; REST polling is always
    a working fallback.
  • Desktop page — a native Hermes Desktop page (sidebar row, command palette entry,
    English/Chinese interface) over all of the above; see the next section.

Install & enable

Install the plugin package, then enable it:

  1. Install — once the plugin is in the Hermes plugin catalog, by catalog name:
    hermes plugins install hermes-a2a-ui
    
    or directly from GitHub today (any owner/repo or Git URL works; you can also
    clone/copy this repository into your plugins root as hermes-a2a-ui/):
    hermes plugins install Joclto/hermes-a2a-ui
    
  2. Enable — this reloads plugins in the running gateway and ends with a line saying
    whether a restart is needed:
    hermes plugins enable hermes-a2a-ui
    
    The Python backend is imported only when the plugin is in plugins.enabled
    (and not in plugins.disabled).

The plugin requires Hermes 0.23.2 or newer (requires_hermes: ">=0.23.2") and the
built-in A2A platform plugin (bundled with Hermes) for peer
features; without it, affected endpoints degrade to {"available": false} instead of
erroring. There are no Python dependencies to install — the backend uses FastAPI
(provided by Hermes) and the standard library. It touches Hermes core only through
interfaces on the official public plugin API list (checked by hermes plugins validate,
catalog rule 9), and the bundled A2A platform plugin only through its non-underscore
names.

The desktop half (desktop/plugin.js) is part of the same package: when the package
sits in your plugins root, the desktop app picks it up through the usual unified-package
pipeline — in the app's Chinese interface under 技能与工具 → 插件 (Skills & Tools →
Plugins), listed and enabled there.

Desktop page

Open A2A in the sidebar (or run "Open Hermes A2A UI" from the command palette) to get
/a2a: a compact local-status strip (inbound platform, port, bind scope, token,
metrics) with a guidance banner when the backend is not mounted, then six tabs:

  1. Overview — one card per configured peer (connectivity, latency, protocol version,
    card name, token state, capability tags) with a re-probe button; selecting a peer
    drives the other tabs. Includes the local inbound detail (adapter state source,
    metrics).
  2. Conversations — the persisted conversation list, each row titled with the start
    of its first message or a name you give it, next to the message thread and composer
    (Enter sends, Shift+Enter breaks), with role-labeled threads (agent /
    user turns), a live running arc on the conversation row, the Conversations tab
    itself, and the sidebar row while any exchange is in flight, cancel, explicit
    input-required prompts, and a clear warning before continuing an inbound-started
    conversation. Switching away and back re-adopts a running exchange automatically —
    the progress panel reappears on the exchange's own conversation. The title bar above
    the thread shows the full context id (copyable) and renames the conversation; a
    custom name can be restored to the automatic title at any time.
  3. Tasks — the selected peer's own task list when its card advertises a JSONRPC
    interface. The local inbound area explains why it is not available (the public plugin
    surface has no access path to the running adapter's store); there is no cancel button
    for local tasks.
  4. Agent card — a human-readable summary of the selected peer's card, its v1.0
    conformance findings, copyable raw JSON, and a discover-by-URL dialog (fetch only,
    nothing saved).
  5. Debug — a raw JSON-RPC form limited to the backend's method whitelist (a configured
    peer or an ad-hoc URL), and the request log it feeds: every request sent from that form
    with its request/response JSON and a clear button. Conversation calls are not logged here.
  6. Audit — the audit log tail with direction/peer filters and refresh.

Token-scope notice. When a peer's card names its JSON-RPC interface on a different
origin than the address configured for that peer, the call is sent without the peer's
token and the panel shows a notice (token_withheld) explaining why, the likely 401,
and two ways to proceed: configure that address as its own peer, or call it from the
Debug tab's raw JSON-RPC console with the address typed by hand (typed addresses never
carry credentials).

Security notes

  • Token boundary. Peer tokens live inside the backend only. Status and peer
    endpoints expose booleans/counts (token_configured, auth_configured, …), never
    values. Known credential values are scrubbed ([redacted]) from RPC/traffic records,
    served audit rows and conversations, exchange replies, artifacts, progress and error
    texts, and from text typed into the panel before it is sent, audited, or persisted —
    the masked shape is the same on the API, the events, and every file written under
    your Hermes home. The test suite greps every endpoint's serialized response and
    every file written during the acceptance-probe run (a fake peer echoing its received
    Authorization header) for token literals and asserts zero hits.
  • Ad-hoc URL policy. URLs you type (/discover, /rpc, /call with a URL) must be
    http(s); loopback targets are always allowed; anything else must pass Hermes' shared
    SSRF guard (tools.url_safety.is_safe_url, honoring security.allow_private_urls).
    No request this backend sends follows redirects — for any peer, configured or
    hand-typed
    : a 3xx answer comes back as a structured result (status + Location host)
    and no second request is issued, so a pass-the-check URL cannot bounce traffic into an
    intranet address (a deliberate deviation from the built-in tools, whose default opener
    forwards the Authorization header to the redirect target). Credentials are scoped to
    the configured origin: a peer's token is only sent when the card's JSON-RPC interface
    is same-origin with the configured address; when the card points elsewhere, the call
    goes out without the token, the panel shows a notice explaining why, and the peer will
    probably answer 401.
  • Desktop page. The page talks only to the plugin's own backend namespace via the
    SDK (ctx.rest) — it never addresses a peer directly, never spells the mount path,
    and renders all peer-supplied text verbatim as text (no HTML splicing, no automatic
    link opening).
  • Dashboard auth. Plugin API routes sit behind the dashboard's normal auth gate;
    do not expose the dashboard on a public interface.
  • Custom names stay local. Conversation names you set are kept in one file under
    your Hermes home (a2a_ui_conversation_names.json, at most 2000 entries) and nowhere
    else: never sent to a peer, never written to the platform's conversation log or audit
    trail, never logged. A name is credential-masked before it is stored, and so is every
    title before it is served. If that file is unreadable or malformed, the list keeps
    working with automatic titles, renaming answers 503, and the broken file is left alone.
  • Bounded memory. Traffic ring (200 entries) and terminal-exchange registry (200)
    are capped; probe sweeps are serial with a 15 s total budget.
  • Untrusted content. Peer cards, replies, and error strings are placed verbatim into
    JSON fields, never rendered.

See docs/architecture.md for the full interface table, the reuse map onto the built-in
plugin, and the design decisions (including how panel-initiated records are marked
without changing any built-in signature).

API

Full interface table: docs/architecture.md. Summary:

Method & pathPurpose
GET /statusInbound platform state (booleans/counts, metrics; connection truth from the gateway's runtime status record)
GET /peers?probe=0|1Configured peers; optional bounded card probe
GET /peers/{name}/cardPeer card + summary + v1.0 findings
POST /discover{url} → card + summary + findings (no credentials, no config writes)
GET /cardOur inbound Agent Card over loopback
POST /call{peer, message, context_id?} → {exchange_id, context_id, task_id}
GET /exchanges/{id}Exchange progress/state
POST /exchanges/{id}/cancelCancel (peer CancelTask when known; local cancel always wins)
POST /rpc{peer|url, method, params} raw JSON-RPC console (whitelisted methods)
GET /traffic?limit= / DELETE /trafficMasked traffic ring / clear it
GET /conversations, GET /conversations/{context_id}?limit=Persisted conversations; each list row carries a title (your custom name, else the start of the first message) and title_source
PUT /conversations/{context_id}/name, DELETE /conversations/{context_id}/nameSet or clear a custom conversation name (kept on this machine only)
GET /tasks?peer=The peer's ListTasks via its card's JSONRPC interface; without peer a structured {"available": false, "reason": ...} (the local inbound store is not exposed)
GET /tasks/{task_id}, POST /tasks/{task_id}/cancelSame structured degradation for the removed local inbound endpoints
GET /audit?limit=&direction=&peer=Audit log tail with filters
WS /eventsOptional push channel (task.update, traffic.new)

Development

Run the tests against a real Hermes checkout (the official contribution workflow — the
suite imports the actual core code). Two environment variables name your machine's
paths; nothing machine-specific is committed:

$env:HERMES_AGENT_REPO  = "<path to your hermes-agent checkout>"
$env:HERMES_VENV_PYTHON = "<path to the Hermes venv python.exe>"
powershell -ExecutionPolicy Bypass -File scripts\test.ps1

The script installs pytest into .test-deps/ (repo-local, gitignored), runs the Python
suite (which includes the desktop-plugin tests), and then re-runs the desktop
registration/render smoke harness directly:

PYTHONPATH=<HERMES_AGENT_REPO>;<repo>/.test-deps  <venv python> -m pytest -q
node --experimental-vm-modules tests\desktop_plugin_smoke.mjs desktop\plugin.js

Node must be on your PATH for the desktop-half tests.

Equivalent manual command:

$env:PYTHONPATH = "$env:HERMES_AGENT_REPO$( [System.IO.Path]::PathSeparator )$PWD\.test-deps"
$env:PYTHONDONTWRITEBYTECODE = "1"
& $env:HERMES_VENV_PYTHON -m pytest -q
  • HERMES_HOME is pointed at a per-test temporary directory before any Hermes module is
    imported; tests never read or write a real ~/.hermes (config, conversations, audit).
  • The only network traffic is the in-test fake A2A peer on 127.0.0.1.
  • Validate the manifest with: hermes plugins validate <path to this repository> --json

Disclosure

What you should know before installing (catalog rule 13):

  • Network calls. The backend dials A2A peers over HTTP(S): the peers configured in
    your a2a_agents (with their configured credentials, sent only to addresses
    same-origin with the peer's configured address), URLs you explicitly enter in the
    console (/discover, /rpc, /call URL form — never with credentials), and your
    own loopback listener for GET /card. No request this backend sends follows
    redirects, for any peer. It never calls any other third-party service
    and never sends telemetry.
  • Reads outside its own folder. It reads your Hermes a2a_agents configuration —
    including the peers' tokens, which are used only to talk to the peer they belong to:
    never written to disk, never echoed into any response — the inbound A2A token
    configuration (booleans/counts only leave the backend), the a2a_conversations/ logs
    and the a2a_audit.jsonl audit file under your Hermes home, and the gateway's
    gateway_state.json runtime status record (connection truth for GET /status). It
    writes what the built-in functions write (conversation entries, audit rows — panel
    calls deliberately do not touch the platform's inbound/outbound metrics counters; the
    panel only reads them),
    the panel markers documented in docs/architecture.md, and its own small state: the
    custom conversation names file (a2a_ui_conversation_names.json) and in-memory
    exchange/traffic records.
  • Background work. Each panel-initiated call runs on a short-lived worker thread
    inside this plugin's process until the peer answers or the configured timeout fires;
    there are no long-running background processes, no shell commands, and no
    auto-approval of anything. The desktop page refreshes the overview/status strip every
    30 s while it is open, polls an unfinished exchange once per second as a fallback for
    the push event, and does nothing in the background otherwise.
  • No tools, hooks, or middleware. The plugin registers no agent tools, no event
    hooks, and no middleware; it contributes only the dashboard API router and the
    desktop page.
  • Dependency on the built-in platform plugin. Peer-facing features reuse the
    bundled A2A platform plugin; without it the console degrades to explicit
    {"available": false} responses rather than guessing.
  • Public interfaces only. Every Hermes core interface the plugin touches is on the
    official public plugin API list (catalog rule 9), and hermes plugins validate
    checks this: its warnings array must be empty. The bundled A2A platform plugin is
    used through its non-underscore names only; its private peer-wire helpers are
    re-implemented locally (dashboard/hermes_a2a_ui/peerwire.py, behavior-parity tested
    against the built-in originals when importable).

License

MIT © 2026 Joclto

README from the reviewed commit 7cce085; it updates when the author re-pins.

More by Joclto

2 plugins by Joclto in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section