Skip to content
Back to skills

Hermes Dashboard Plugins

ASecurity

Build, enable, verify and share Hermes dashboard plugins.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentspythonrustgobashfastapigitapifrontendbackendsecurity

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add Rafaelrr5/agent-cortex --skill hermes-dashboard-plugins --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hermes Dashboard Plugins?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hermes Dashboard Plugins
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rafaelrr5-hermes-dashboard-plugins/badge)](https://www.skillsdirectory.com/skills/rafaelrr5-hermes-dashboard-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hermes-dashboard-plugins
description: "Build, enable, verify and share Hermes dashboard plugins."
version: 1.0.0
author: Rafael Rocha Ribeiro (github.com/Rafaelrr5)
license: MIT
platforms: [linux, macos, windows]
metadata:
  agent:
    tags: [hermes, dashboard, plugins, web, fastapi, credentials, verification]
    related_skills: [hermes-provider-credentials, delegate-coding-task, delegated-agent-supervision, delivery-verification]
---

# Hermes dashboard plugins

## When to Use

- The user wants a panel, tab or toggle inside `hermes dashboard` that core does not ship.
- A drop-in plugin sits in `HERMES_HOME/plugins/<name>/` and must be enabled, verified,
  or carried to another machine.
- A plugin tab is missing, or its API answers 404/401.

Not for: agent-side plugins that only register tools/hooks, MCP servers, or patches to
Hermes core.

## Worked example

[`plugins/modelos-contas`](../../plugins/modelos-contas) in this repo is a real
dashboard-only plugin: default model, fallback order, per-account priority/blocking and
subscription usage limits on one tab. Its layout is the template below, its tests run in a
temporary `HERMES_HOME` with fake credentials, and it changes no core file.

## Shape of a drop-in plugin (zero core patches)

```
HERMES_HOME/plugins/<name>/
  plugin.yaml          # name, version, description, author, kind: standalone
  __init__.py          # register(ctx): return None if the plugin is dashboard-only
  dashboard/
    manifest.json      # name, label, description, icon, version, tab {path, position}, entry, css?, api
    dist/index.js      # built frontend (the "entry")
    plugin_api.py      # exposes `router = APIRouter()`, mounted at /api/plugins/<name>/*
  tests/               # run against a TEMP HERMES_HOME with fake credentials
  README.md
```

- `plugin.yaml`: `kind` defaults to `standalone`; valid kinds are `standalone`, `backend`,
  `exclusive`, `platform`, `model-provider`. A directory plugin needs the manifest plus an
  `__init__.py` with `register(ctx)`.
- `manifest.json`: the backend is declared with **`"api": "plugin_api.py"`** — a relative
  path that must stay inside `dashboard/` (absolute or `../` paths are refused and the
  backend is not mounted). `has_api` is not something you write: it is computed from a valid
  `api` and shows up in `GET /api/dashboard/plugins`. Defaults: `icon` `Puzzle`, `entry`
  `dist/index.js`, `tab.path` `/<name>`, `tab.position` `end`. `tab.override` (replace a
  built-in route), `tab.hidden` and `slots` also exist.
- The API file must expose a module-level `router`; without it nothing mounts.

Everything stays inside that folder, so `hermes update` never conflicts. When the user asks
for a panel, ask "integrated, as long as it doesn't hurt updates?" — this layout satisfies
both.

## Enable + verify

```bash
hermes plugins show <name>                                  # CLI recognizes it
cp config.yaml config.yaml.bak-<name>
hermes plugins enable <name> --no-allow-tool-override        # opt-in; explicit "no" to tool overrides
diff config.yaml.bak-<name> config.yaml
```

Expect the diff to touch only `plugins.enabled` / `plugins.disabled` and
`plugins.entries.<name>.allow_tool_override: false`. (`platform_toolsets` changes only if the
plugin provides tools — a dashboard-only plugin provides none.)

`plugins.enabled` is a security gate, not a preference: a **user** plugin's `plugin_api.py`
is never imported until it is listed there and not in `plugins.disabled`, and
`GET /api/dashboard/plugins` hides tabs of non-enabled plugins. Never pre-enable a plugin
whose code the user has not reviewed.

Then, with the dashboard running (default port 9119; use an authenticated session):

1. `GET /api/dashboard/plugins/rescan` forces discovery again; the tab then appears in
   `GET /api/dashboard/plugins`.
2. API routes: at startup `web_server.py` calls `_mount_plugin_api_routes()` for every
   enabled plugin. A plugin installed or enabled **after** startup is hot-mounted on the
   first request to `/api/plugins/<name>/...` — no restart needed for that case.
   **Restart the dashboard when you changed `plugin_api.py`** of a plugin that is already
   mounted: the old router stays loaded and a hot mount is not retried for it.
3. Disabling at runtime: the old router stays mounted until restart, but every request is
   re-checked against `plugins.enabled`/`plugins.disabled` and refused.
4. Verify with READ-ONLY routes (e.g. `/state`) against the real home. Exercise mutating
   routes only in the temp-home test suite.

## Delegating the build to a coding agent

- Fence scope in the prompt: write only inside `plugins/<name>/`; Hermes core
  (`git status` of the install) must stay clean.
- Require a real test suite in a temporary `HERMES_HOME` with fake tokens, plus a hash check
  that the live credential store (e.g. `auth.json`) is byte-identical after the run.
- Run one or two adversarial review passes before enabling on the real profile. In this class
  of plugin, reviews tend to find profile/root fallback semantics and lock-window races the
  builder's own tests missed — budget for at least one fix round.
- Verify the builder's claims yourself: file count, core `git status`, a test run of your own,
  and whether the running dashboard actually serves the routes.

## Review lessons for plugins that touch credentials

- **Named-profile fallback can make an OFF toggle lie.** In profile mode, the root
  `auth.json` pool is used for a provider only when the profile has zero entries for it. A
  plugin that "disables" the last visible credential by emptying the profile's slice makes
  the agent fall back to the root pool: the panel says OFF, the agent keeps using it. Refuse
  (e.g. 409) and tell the user to operate from the profile that owns the credential.
- **Single-use OAuth refresh in borrowed pools.** For providers with single-use refresh
  tokens, a profile that only borrows the root's rows must not write its own copy — the first
  rotation would kill the token everywhere else. Core writes borrowed rows back to the root
  update-only (no adds/deletes), so a plugin that tries to add or remove them there should
  fail loudly, not report success.
- **Know what the core button destroys** before saying "the native panel already does this".
  `DELETE /api/credentials/pool/{provider}/{index}` runs the source's removal step, which
  can delete the external login (e.g. an OAuth file), and suppresses the source so it is not
  re-seeded. Read the core route, not memory.

## Sharing with another machine

- A plugin has no absolute paths, so it is shared content, not per-device config: copy the
  folder into the other machine's `HERMES_HOME/plugins/`, run
  `hermes plugins enable <name> --no-allow-tool-override`, then restart the dashboard there.
  If it lives in a git repo, `hermes plugins install <owner>/<repo>/<path/to/plugin>`
  installs just that subdirectory.
- Before publishing: search the WHOLE plugin (README and test harness included) for your
  home path and username; derive paths from `HERMES_HOME` or the platform's env vars instead.
  Exclude `__pycache__`, `*.pyc` and runtime state (plugin state files, journals, locks,
  `.bak-*`). Runtime state is per device and never travels.
- Put it under version control on day one. A plugin built over a long session with no
  `git init` is one wrong `rm` from gone.
- With `core.autocrlf=true`, git rewrites CRLF to LF in `dist/index.js` on commit; compare
  with `tr -d '\r'` before calling it corruption.

## Pitfalls

- Discovery is cached per dashboard process: a freshly copied folder is invisible until a
  rescan (or the first request to its API, which re-runs discovery for the hot mount).
- A tab that shows but whose API 404s: check the manifest key is `api` (not `has_api`), that
  the file exposes `router`, that the plugin is in `plugins.enabled`, and whether the backend
  was edited after it was mounted (restart).
- Plugins in a project's `./.hermes/plugins/` (scanned only when
  `HERMES_ENABLE_PROJECT_PLUGINS` is truthy) can ship UI, but their Python `api` file is
  never auto-imported by the dashboard. Move a trusted plugin to `HERMES_HOME/plugins/`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.