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):

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 getmessage/send.
Replies are redacted, audited, and persisted exactly like agent-initiated calls, and
panel-initiated records are marked so the agent'sa2a_historystill 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.newframes via
broadcast_plugin_eventplus an optional/eventsWebSocket; 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:
- Install — once the plugin is in the Hermes plugin catalog, by catalog name:
or directly from GitHub today (anyhermes plugins install hermes-a2a-uiowner/repoor Git URL works; you can also
clone/copy this repository into your plugins root ashermes-a2a-ui/):hermes plugins install Joclto/hermes-a2a-ui - Enable — this reloads plugins in the running gateway and ends with a line saying
whether a restart is needed:
The Python backend is imported only when the plugin is inhermes plugins enable hermes-a2a-uiplugins.enabled
(and not inplugins.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:
- 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). - 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. - 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. - 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). - 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. - 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,/callwith 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, honoringsecurity.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 theAuthorizationheader 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 & path | Purpose |
|---|---|
GET /status | Inbound platform state (booleans/counts, metrics; connection truth from the gateway's runtime status record) |
GET /peers?probe=0|1 | Configured peers; optional bounded card probe |
GET /peers/{name}/card | Peer card + summary + v1.0 findings |
POST /discover | {url} → card + summary + findings (no credentials, no config writes) |
GET /card | Our 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}/cancel | Cancel (peer CancelTask when known; local cancel always wins) |
POST /rpc | {peer|url, method, params} raw JSON-RPC console (whitelisted methods) |
GET /traffic?limit= / DELETE /traffic | Masked 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}/name | Set 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}/cancel | Same structured degradation for the removed local inbound endpoints |
GET /audit?limit=&direction=&peer= | Audit log tail with filters |
WS /events | Optional 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_HOMEis 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
youra2a_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,/callURL form — never with credentials), and your
own loopback listener forGET /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_agentsconfiguration —
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), thea2a_conversations/logs
and thea2a_audit.jsonlaudit file under your Hermes home, and the gateway's
gateway_state.jsonruntime status record (connection truth forGET /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 indocs/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), andhermes plugins validate
checks this: itswarningsarray 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.

Joclto