The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs: one complete plugin catalog submission guide, synced with the README rules
teknium1d802c4723871
diff --git a/AGENTS.md b/AGENTS.mdindex 65aa3e61bcb..e4cffa24989 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -510,6 +510,7 @@ extract, not to regex around it.| `gateway/` | `gateway/AGENTS.md` | Adapters, two message guards, streaming contract, background notifications, gateway vs desktop lifecycle, token locks, scoped secrets || `tools/`, `toolsets.py`, `model_tools.py` | `tools/AGENTS.md` | Adding tools, registry, toolsets, delegation, cross-tool references, backends || `plugins/`, `hermes_cli/plugins*.py` | `plugins/AGENTS.md` | Plugin kinds, native compat contract, in-tree policy |+| `plugin-catalog/` entries, catalog reviews | `plugin-catalog/README.md` (canonical admission rules), `website/docs/developer-guide/plugins/catalog-submission.md` (mirror + submission guide) | What a listed plugin may do; keep the two rule blocks identical || `tui_gateway/`, `ui-tui/` | `tui_gateway/AGENTS.md` | Process model, JSON-RPC transport, key surfaces, slash flow, dev commands || `web/`, `hermes_cli/web_routers/` | `web/AGENTS.md` | Dashboard embeds the real TUI; what React may and may not rebuild || `apps/desktop/` | `apps/desktop/AGENTS.md`, `apps/desktop/src/AGENTS.md` | Desktop judgment guide; `serve` backend, slash palette curation, Bot Mode canonical chat |diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex b0baa59b505..36d81e1d751 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -102,6 +102,14 @@ A well-built third-party-product plugin can clear automated review and still be---+## Submitting a Plugin to the Catalog++A standalone plugin reaches users through the [plugin catalog](https://hermes-agent.nousresearch.com/docs/plugins): a PR to this repo adding one `plugin-catalog/<name>.yaml` file that pins your repo at an exact commit. Read **[Submitting to the plugin catalog](https://hermes-agent.nousresearch.com/docs/developer-guide/plugins/catalog-submission)** before opening one. It covers what to check first (`hermes plugins validate --install-deps`), how review works, and every admission rule. The canonical rules live in [`plugin-catalog/README.md`](plugin-catalog/README.md); if you change them, change the mirrored block in the docs page in the same PR (a test keeps the two identical).++The rules that most often send a submission back: the plugin must extend Hermes only through public hooks, `ctx.register_*` APIs and the Desktop SDK (no patching core code or Desktop markup at runtime), must not update itself, must declare the capabilities it registers, and must disclose risky behaviour.++---+## Development Setup### Prerequisitesdiff --git a/plugin-catalog/README.md b/plugin-catalog/README.mdindex 47f605c4bbd..bfab4aeeb9b 100644--- a/plugin-catalog/README.md+++ b/plugin-catalog/README.md@@ -10,6 +10,7 @@ Curated, Nous-approved Hermes plugins. Each YAML file in this directoryPresence in this directory **is** the trust signal. The rules that keep itmeaningful:+<!-- admission-rules:start (mirrored in website/docs/developer-guide/plugins/catalog-submission.md; tests/plugin_catalog keeps them identical) -->1. **Human-merged gate.** Entries are added *only* via a PR to the`hermes-agent` repository, reviewed and merged by a maintainer. There isno self-serve registry, no automated ingestion.@@ -77,6 +78,39 @@ meaningful:their CI) — see the developer guide's *Dependency security policy*. Arecent floor alone is not grounds to hold an entry.+11. **Credentials stay with their owner.** A plugin reads the credentials it is+ configured with: the env vars in `requires_env` and its own `config_schema`+ secrets. Reading another tool's login (a vendor CLI's token file, a browser+ profile) must be disclosed in the PR and is a trust-tier call for a+ maintainer. Refreshing, rotating or writing another client's OAuth tokens, or+ presenting itself as another vendor's client, is not admitted without an+ explicit maintainer ruling; a read-only build is the usual way through.+12. **Approvals and unattended runs are respected.** A plugin never routes around+ Hermes's approval system: no auto-approving, no disabling guards, and no+ spawning Hermes or shell children that inherit YOLO or non-interactive mode+ to run commands nobody approved. Anything that waits for a person (a prompt,+ an OAuth browser flow) fails cleanly or times out under cron, the messaging+ gateway and other unattended runs instead of hanging the agent.+13. **Risky behaviour is disclosed.** What a user would want to know before+ installing goes in the PR description and the plugin's README: network calls+ to third-party services, reads outside the plugin's own data, shell commands,+ long-running background processes, stored credentials. Telemetry and usage+ reporting are opt-in. Reviewers summarise these as disclosure lines on the+ entry PR; undisclosed behaviour found in review is a request for changes.+14. **Compatibility metadata is truthful.** `requires_hermes` is a SemVer floor+ (`">=0.21.5"`), never a CalVer date, and never newer than the current release+ (the loader skips the plugin otherwise). `version` matches the pinned code,+ and Python dependencies resolve under Hermes's core constraints+ (`hermes plugins validate --install-deps` is what CI runs).+15. **No skins or forks of bundled plugins.** A change to a bundled plugin is a+ PR against `hermes-agent`, not a competing listing, and vendor-lookalike skins+ are not listed under Nous branding.+<!-- admission-rules:end -->++The step-by-step submission guide, with the same rules and what reviewers check,+lives at+[Submitting to the plugin catalog](https://hermes-agent.nousresearch.com/docs/developer-guide/plugins/catalog-submission).+## Entry schema```yamldiff --git a/plugins/AGENTS.md b/plugins/AGENTS.mdindex f2ead5a2193..074fb7e9eff 100644--- a/plugins/AGENTS.md+++ b/plugins/AGENTS.md@@ -35,7 +35,8 @@ command. A hook with no concrete consumer is speculative infrastructure and is r## Plugin catalog (`plugin-catalog/`, Sep 2026)The ONLY discovery system for out-of-tree plugins. One YAML per entry, 40-hex SHA pin mandatory,-human-merged via PR (`plugin-catalog/README.md` = admission policy; `plugin-catalog-ci.yml` clones+human-merged via PR (`plugin-catalog/README.md` = admission policy, mirrored word for word in+`website/docs/developer-guide/plugins/catalog-submission.md` with the submission guide; `plugin-catalog-ci.yml` cloneseach changed entry at its pin and runs `hermes plugins validate`). `removed.yaml` is the kill list —every install path (CLI, dashboard, TUI) refuses matches (repo URLs compared by canonical`host/owner/repo`, so `git@`/`ssh://`/`www.` spellings match); only the CLI has a louddiff --git a/scripts/ci/classify_changes.py b/scripts/ci/classify_changes.pyindex dc0360c687f..04f64f5fcdf 100644--- a/scripts/ci/classify_changes.py+++ b/scripts/ci/classify_changes.py@@ -114,6 +114,8 @@ _PY_RELEVANT_CONTRACT_FILES = {"apps/desktop/src/lib/desktop-slash-registry.json",# tests/tui_gateway/test_show_reasoning_display_gate.py (card-tool names vs the gateway lifecycle set)"apps/desktop/src/lib/tool-render-class.ts",+ # tests/website/test_catalog_rules_mirror.py (docs page mirrors the canonical rules)+ "plugin-catalog/README.md",}# CI-sensitive files: eslint config, workflow files, composite actions.diff --git a/tests/website/test_catalog_rules_mirror.py b/tests/website/test_catalog_rules_mirror.pynew file mode 100644index 00000000000..182511d0d81--- /dev/null+++ b/tests/website/test_catalog_rules_mirror.py@@ -0,0 +1,28 @@+"""The catalog submission guide mirrors the canonical admission rules word for word.++``plugin-catalog/README.md`` is where reviewers and the CI gates point; the docs page is where+submitters read. A rule edited in one and not the other tells authors a different policy than+the one their PR is reviewed against.+"""++import re+from pathlib import Path++ROOT = Path(__file__).resolve().parents[2]+_BLOCK = re.compile(r"<!-- admission-rules:start[^>]*-->(.*?)<!-- admission-rules:end -->", re.S)+++def _rules(path: Path) -> str:+ match = _BLOCK.search(path.read_text(encoding="utf-8"))+ assert match, f"{path.relative_to(ROOT)} lost its admission-rules markers"+ return " ".join(match.group(1).split())+++def test_docs_page_mirrors_readme_admission_rules():+ readme = _rules(ROOT / "plugin-catalog" / "README.md")+ docs = _rules(ROOT / "website" / "docs" / "developer-guide" / "plugins" / "catalog-submission.md")+ assert re.search(r"\b1\. \*\*", readme)+ assert docs == readme, (+ "website/docs/developer-guide/plugins/catalog-submission.md must carry the exact rule block "+ "from plugin-catalog/README.md (copy everything between the admission-rules markers)"+ )diff --git a/website/docs/developer-guide/plugins/catalog-submission.md b/website/docs/developer-guide/plugins/catalog-submission.mdnew file mode 100644index 00000000000..f31f026ad31--- /dev/null+++ b/website/docs/developer-guide/plugins/catalog-submission.md@@ -0,0 +1,203 @@+---+sidebar_label: "Catalog submission"+title: "Submitting to the Plugin Catalog"+description: "The full admission guidelines for the Hermes plugin catalog: what to check before you submit, the rules every entry follows, and what reviewers look at"+---++# Submitting to the Plugin Catalog++The [plugin catalog](/user-guide/features/plugin-catalog) is a human-reviewed+directory of Hermes plugins. Being listed is the trust signal: users install a+catalog plugin by name, at the exact commit a maintainer read. This page holds+the complete guidelines for getting a plugin in and keeping it there.++The canonical copy of the admission rules is+[`plugin-catalog/README.md`](https://github.com/NousResearch/hermes-agent/blob/main/plugin-catalog/README.md)+in the repository. The [rules section](#admission-rules) below mirrors it word+for word, and a test fails the build if the two drift apart.++## Before you submit++- **A public repository.** The `repo` URL is an `https://` URL anyone can clone+ (GitHub or GitLab).+- **A loadable plugin at the commit you pin.** The tree has a `plugin.yaml`+ manifest plus at least one entrypoint Hermes loads: `__init__.py` (Python),+ `desktop/plugin.js` (Desktop), `plugin.json` (portable Agent Plugin) or+ `dashboard/manifest.json` (web dashboard). If the plugin lives in a monorepo,+ point `subdir` at its directory. The+ [plugin developer guide](/developer-guide/plugins) covers the layout.+- **Public surfaces only.** Extend Hermes through hooks, middleware, the+ `ctx.register_*` APIs, provider plugins and the+ [Desktop plugin SDK](/developer-guide/desktop-plugin-sdk). Never patch Hermes+ code or Desktop markup at runtime. If the hook you need is missing, see+ [Asking for a hook](#asking-for-a-hook).+- **Validation passes locally.** Run the same check catalog CI runs, against a+ checkout at the commit you are about to pin:++ ```bash+ hermes plugins validate /path/to/your-plugin --install-deps+ ```++ It checks the manifest and `requires_hermes`, that the plugin loads, that the+ `capabilities` you declare match what it registers, `config_schema` and+ `requires_env`, Python dependencies against Hermes's core constraints, the+ install security scan, and the `desktop surface` and `no core override`+ rules. Fix every failure before opening the PR, and read the warnings, since+ a reviewer will.++## Opening the PR++1. Add **one** file, `plugin-catalog/<name>.yaml`, to+ [`NousResearch/hermes-agent`](https://github.com/NousResearch/hermes-agent).+ The fields are documented in the README's+ [entry schema](https://github.com/NousResearch/hermes-agent/blob/main/plugin-catalog/README.md#entry-schema)+ and in [What's in an entry](/user-guide/features/plugin-catalog#whats-in-an-entry).+ Pin `sha` to a full 40-character commit, and quote `version`.+2. In the PR description, say what the plugin does, which Hermes surfaces it+ uses, and everything rule 13 asks you to disclose. Add screenshots for+ anything with a UI.+3. Wait for the catalog CI job to go green. It clones your repo at the pinned+ commit and runs `hermes plugins validate`.+4. A maintainer reviews the pinned tree and merges, asks for changes, or+ declines. Rule 3 and rule 9 problems are declines rather than bug-fix+ requests: the plugin has to change its design before it can be listed.++Your plugin's page at `/docs/plugins/<name>` is built from the same file. The+README at the pinned commit renders there by default, and `screenshots:` fills+the gallery. There is no separate listing to maintain.++## Admission rules++<!-- admission-rules:start (mirrored in website/docs/developer-guide/plugins/catalog-submission.md; tests/plugin_catalog keeps them identical) -->+1. **Human-merged gate.** Entries are added *only* via a PR to the+ `hermes-agent` repository, reviewed and merged by a maintainer. There is+ no self-serve registry, no automated ingestion.+2. **Exact SHA pins are mandatory.** Every entry pins a full 40-character+ commit SHA. Branches, tags, and short SHAs are rejected by the loader.+ Installs clone the repository and check out exactly that commit.+3. **No self-updating code.** A listed plugin must not fetch and replace+ its own files (in-app "check for updates", signed release downloaders,+ remote `plugin.js` loaders). The exact SHA pin *is* the trust model; a+ self-updater lets an installed copy move to a commit nobody reviewed.+ Updates reach users only through a SHA-bump PR here plus+ `hermes plugins update <name>`. Keep the updater in the standalone+ distribution if you want one; strip it from the catalog build.+4. **SHA bumps are new PRs.** Updating an entry's pin is a new PR whose diff+ (old SHA → new SHA) is re-reviewed like any other change — reviewers are+ expected to look at the upstream commit range being adopted.+5. **Owner-or-major-contributor submissions, or a maintainer-curated sweep.**+ An entry may be submitted by the plugin repository's owner or a major+ contributor to it; drive-by submissions of third-party repos are declined.+ Hermes maintainers may also add entries in batches from a reviewed sweep+ of community plugins (every pin validated and scanned at the pinned+ commit, self-updater and credential-store checks run, English-first UI).+ Authors of swept-in entries keep control: a PR from the owner adjusting+ or removing their entry is accepted on request, and SHA bumps stay+ owner-or-maintainer PRs under rule 4.+6. **Declared capabilities must match reality.** The `capabilities:` block+ (tools, hooks, middleware, env vars) must match what the plugin actually+ registers at the pinned commit. Validation fails the entry otherwise —+ undeclared capability creep is treated as a security issue.+7. **The install scanner runs at admission.** `hermes plugins validate` includes+ the `security scan` check: `dangerous` fails the entry; `caution` findings+ appear as warnings in the CI log and the reviewer reads them before merging.+ In exchange, installs at the pinned SHA accept `caution` without a prompt+ (`dangerous` still blocks). Review the warnings; do not merge past them.+8. **Desktop plugins stay inside the SDK surface.** A `desktop/plugin.js` runs+ in the Desktop renderer with the app's full authority (the loader isolates+ errors, not capabilities), so a listed one may only use the plugin SDK:+ no prototype patching (`X.prototype.y =`, `Object.defineProperty(...prototype`),+ no `eval`/`new Function`, no `import()` of anything but `@hermes/plugin-sdk`+ / `react` (app bundle chunks, blob or http URLs included), no script-tag+ injection, no reaching into the app's internal stores or its own markup+ (querying `data-slot` / `data-tour` / `data-sidebar` / `data-testid`+ elements from `document`, or a `document.body` MutationObserver, to restyle,+ hide, click or rewrite core UI). `hermes plugins validate` refuses these at+ admission (`desktop surface` check); a plugin that needs a capability the+ SDK lacks asks for an SDK hook instead of patching around it.+9. **No runtime overrides of Hermes core.** A listed plugin extends Hermes only+ through public surfaces: hooks, middleware, provider profiles and the+ other `register_*` APIs, and Desktop SDK slots and routes. It must not+ replace, wrap or rebind core functions, methods, module attributes or+ private dicts in place (`AIAgent.<method> = ...`, `setattr(server, ...)`,+ `sys.modules[...]`, writes into a core module's tables). Two plugins+ patching the same seam silently break each other, and every core release+ can break both. `hermes plugins validate` refuses these at admission (`no+ core override` check). If the hook you need does not exist, open an issue+ describing it: we would rather add the seam than list a patch.+10. **Dependency security policy is the plugin's.** Hermes's 14-day+ `exclude-newer` quarantine covers Hermes's own dependencies only; a plugin's+ `python_dependencies` / `pyproject.toml` install under the plugin's policy+ (no quarantine, still inside Hermes's core constraints). Reviewers read the+ dependency list at the pinned SHA: bare floors (`>=X` with no upper bound)+ and floors on the newest release get a request for the oldest+ API-compatible floor plus an upper bound, and authors are strongly+ recommended to run their own release quarantine (`uv --exclude-newer` in+ their CI) — see the developer guide's *Dependency security policy*. A+ recent floor alone is not grounds to hold an entry.++11. **Credentials stay with their owner.** A plugin reads the credentials it is+ configured with: the env vars in `requires_env` and its own `config_schema`+ secrets. Reading another tool's login (a vendor CLI's token file, a browser+ profile) must be disclosed in the PR and is a trust-tier call for a+ maintainer. Refreshing, rotating or writing another client's OAuth tokens, or+ presenting itself as another vendor's client, is not admitted without an+ explicit maintainer ruling; a read-only build is the usual way through.+12. **Approvals and unattended runs are respected.** A plugin never routes around+ Hermes's approval system: no auto-approving, no disabling guards, and no+ spawning Hermes or shell children that inherit YOLO or non-interactive mode+ to run commands nobody approved. Anything that waits for a person (a prompt,+ an OAuth browser flow) fails cleanly or times out under cron, the messaging+ gateway and other unattended runs instead of hanging the agent.+13. **Risky behaviour is disclosed.** What a user would want to know before+ installing goes in the PR description and the plugin's README: network calls+ to third-party services, reads outside the plugin's own data, shell commands,+ long-running background processes, stored credentials. Telemetry and usage+ reporting are opt-in. Reviewers summarise these as disclosure lines on the+ entry PR; undisclosed behaviour found in review is a request for changes.+14. **Compatibility metadata is truthful.** `requires_hermes` is a SemVer floor+ (`">=0.21.5"`), never a CalVer date, and never newer than the current release+ (the loader skips the plugin otherwise). `version` matches the pinned code,+ and Python dependencies resolve under Hermes's core constraints+ (`hermes plugins validate --install-deps` is what CI runs).+15. **No skins or forks of bundled plugins.** A change to a bundled plugin is a+ PR against `hermes-agent`, not a competing listing, and vendor-lookalike skins+ are not listed under Nous branding.+<!-- admission-rules:end -->++## Updating your entry++Pin updates (bumping `sha` to a newer commit) go through the same PR and review+process. A reviewer reads the commit range you are adopting. Bump `version` in+the same PR so the label users see matches the code, and re-pin any `image` /+`screenshots` URLs that embed the old sha.++Installed plugins compare their recorded sha against the live pin:+`hermes plugins list --json` reports `update_available`, the Desktop Plugins tab+shows an **Update to 1.4.0** button, and `hermes plugins update <name>` checks+out exactly the new pin.++If a maintainer swept your plugin into the catalog and you want the entry+changed or removed, open a PR on its file. Owners keep control of their entries.++## Delisting and removal++- **Delisting** deletes an entry's file: for plugins that are unmaintained,+ superseded, squatting a name, or no longer meet a rule. Users who already+ installed the plugin keep it, and it is welcome back once the problem is+ fixed. When a new rule affects plugins that are already listed, their+ authors get an issue on their repository explaining the change and time to+ update before anything is removed.+- **Removal** adds the plugin to+ [`removed.yaml`](https://github.com/NousResearch/hermes-agent/blob/main/plugin-catalog/README.md#removedyaml--the-blocklist),+ which is reserved for security and policy incidents. Installers refuse+ anything on that list, and installed copies stop updating and cannot be+ enabled.++## Asking for a hook++If your plugin needs something the plugin surface doesn't offer, open an issue+on [hermes-agent](https://github.com/NousResearch/hermes-agent/issues)+describing what you need and why. We would much rather add a proper seam than+list a patch, and a plugin that will use the hook is exactly the concrete+consumer a new hook needs.diff --git a/website/docs/user-guide/features/plugin-catalog.md b/website/docs/user-guide/features/plugin-catalog.mdindex 8c43fac5b81..595b84dff54 100644--- a/website/docs/user-guide/features/plugin-catalog.md+++ b/website/docs/user-guide/features/plugin-catalog.md@@ -273,31 +273,18 @@ catalog for discovery.## Submitting a plugin to the catalogSubmissions are pull requests that add one `plugin-catalog/<name>.yaml` file.-The full checklist lives in the-[plugin-catalog README](https://github.com/NousResearch/hermes-agent/tree/main/plugin-catalog);-in short, an entry must be:--1. **Owner-submitted** — the PR author owns or maintains the plugin repo.- Maintainers also add batches of community plugins from a reviewed sweep- (each pin validated and scanned at the pinned commit); if yours was swept- in and you want it changed or removed, open a PR on your entry.-2. **A public repository** — the `repo` URL is publicly cloneable.-3. **Released** — the repo has real releases/tags, not just a default branch.-4. **Passing validation** — the catalog validation GitHub Action is green on- the PR (schema, SHA format, reachability).-5. **Not self-updating** — the catalog build must not download and replace- its own files; the pinned SHA is the only update path (a SHA-bump PR plus- `hermes plugins update <name>`).--Pin updates (bumping `sha` to a newer commit) follow the same PR + review-process; bump `version` in the same PR so the label users see matches the-code, and re-pin any `image` / `screenshots` URLs that embed the sha. Your-plugin page (`/docs/plugins/<name>`) is built from the same file: add-`screenshots:` there to fill it out (the README renders by default) — there is no separate-listing to maintain. Installed plugins compare their recorded sha against the live pin:-`hermes plugins list --json` reports `update_available`, the Desktop Plugins-tab shows an **Update to 1.4.0** button, and `hermes plugins update <name>`-checks out exactly the new pin.+The complete guidelines live in+**[Submitting to the plugin catalog](/developer-guide/plugins/catalog-submission)**:+what to check before you submit, how the PR and review work, every admission+rule, and how pin updates, delisting and removal work. That page mirrors the+canonical rules in the+[plugin-catalog README](https://github.com/NousResearch/hermes-agent/tree/main/plugin-catalog).++In short, a listed plugin is submitted by its owner (or added in a reviewed+maintainer sweep), lives in a public repository, pins an exact commit, passes+`hermes plugins validate` in catalog CI, never updates itself, and extends+Hermes only through public hooks and the Desktop SDK, never by patching core+code or Desktop UI at runtime.## See also@@ -306,3 +293,4 @@ checks out exactly the new pin.- [Built-in Plugins](built-in-plugins.md) — plugins that ship with Hermes- [Build a Hermes Plugin](../../developer-guide/plugins/index.md) — write your own- [Plugin Catalog page](/plugins) — the browsable catalog+- [Submitting to the plugin catalog](../../developer-guide/plugins/catalog-submission.md) — admission rules and the submission guidediff --git a/website/sidebars.ts b/website/sidebars.tsindex 909c1fa8535..bbbeeb283b5 100644--- a/website/sidebars.ts+++ b/website/sidebars.ts@@ -835,6 +835,7 @@ const sidebars: SidebarsConfig = {'developer-guide/browser-provider-plugin','developer-guide/terminal-environment-plugin','developer-guide/plugins/application-declarations',+ 'developer-guide/plugins/catalog-submission',],},'developer-guide/creating-skills',diff --git a/website/src/components/PluginCatalog/catalog.ts b/website/src/components/PluginCatalog/catalog.tsindex f567320a351..24a656a8b58 100644--- a/website/src/components/PluginCatalog/catalog.ts+++ b/website/src/components/PluginCatalog/catalog.ts@@ -57,7 +57,7 @@ export interface CatalogMeta {}// Docs section describing the PR-based submission workflow.-export const SUBMIT_PLUGIN_URL = "/user-guide/features/plugin-catalog#submitting-a-plugin-to-the-catalog";+export const SUBMIT_PLUGIN_URL = "/developer-guide/plugins/catalog-submission";/** Deep link into the Desktop app's Install Plugin dialog, catalog mode: the app* resolves the reviewed pin itself, so the page never hands it a repo URL. */