The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(desktop): say plainly that desktop plugins are not sandboxed
teknium1eba8199ce3a3
diff --git a/website/docs/developer-guide/desktop-plugin-sdk.md b/website/docs/developer-guide/desktop-plugin-sdk.mdindex da30c8980de..e1685208a93 100644--- a/website/docs/developer-guide/desktop-plugin-sdk.md+++ b/website/docs/developer-guide/desktop-plugin-sdk.md@@ -897,16 +897,23 @@ companion repo.A loaded plugin is evaluated as ESM in the renderer realm with **full appauthority** — the React singleton, the whole SDK (`host.request` gateway RPC,-`ctx.rest`, storage, `navigate`). The isolation the loader provides is **error+`ctx.rest`, storage, `navigate`) and the `window.hermesDesktop` native bridge+(files, git, terminal, installs). The isolation the loader provides is **errorisolation only**: a plugin can't crash the app (contributions are error-bounded,-listeners isolated), but it can do anything the app can.+listeners isolated, a throwing `register()` is rolled back and reported on the+plugin's row), but it can do anything the app can. Plugin storage namespaces+are a convention, not a wall.This is acceptable for **local** sources — a disk file can already run code onyour machine — which is why the disk door only loads local files you (or your-agent) wrote. The optional `integrity` (`sha256-…`) check only proves the bytes-match a hash; it does **not** sandbox. A future remote-source door will need a-real boundary (iframe/worker + CSP + capability gating) before it can land; do-not treat this pipeline as a trust boundary.+agent) wrote. For [catalog](../user-guide/features/plugin-catalog.md#trust-model)+installs the trust comes from admission — a human reviewed the exact pinned+commit — backed by two tripwires: the `desktop surface` lint at admission and+the loader's import allowlist (`@hermes/plugin-sdk` and `react*` only; a static+or dynamic `import` of anything else, including `https:` URLs, fails the load).+Neither is a sandbox. A future remote-source door will need a real boundary+(iframe/worker + CSP + capability gating) before it can land; do not treat this+pipeline as a trust boundary.## Pitfallsdiff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex 8be2627e1a8..075b2a1bf35 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -513,6 +513,15 @@ hot-reloads every save. Manage installed plugins live in **Capabilities → PlugSee [Desktop Plugin SDK](../developer-guide/desktop-plugin-sdk.md) for the fullreference. (This is separate from the [web dashboard plugin system](./features/extending-the-dashboard.md).)+A desktop plugin is **not sandboxed**: it runs inside the app with the app's own+authority (gateway RPC, the native bridge, other plugins' storage). Only load+files you wrote or reviewed; for catalog installs the protection is the+[catalog trust model](./features/plugin-catalog.md#trust-model) (human-reviewed,+SHA-pinned) plus an import allowlist — not isolation. A plugin whose+`register()` throws is rolled back and shown as **Failed** with the error on its+row; **⌘K → Reload desktop plugins** re-reads every installed `plugin.js`,+including one an installer replaced in place.+**Capabilities → Plugins** is the one place for everything that extendsHermes: **one row per plugin**, with two switch columns.@@ -533,7 +542,10 @@ Hermes: **one row per plugin**, with two switch columns.profile selector lives in this column's header because it governs onlythis column; with a single profile there is no selector at all.Repo-bundled built-ins (platform adapters, provider plugins) are not- listed: they ship enabled and are configured from their own surfaces.+ listed: they ship enabled and are configured from their own surfaces. The+ exceptions are the bundled lifecycle plugins with no surface of their own+ (`disk-cleanup`, `security-guidance`), which appear here so they can be+ toggled like any other agent plugin.- A half the plugin does not ship shows a dash. A desktop half whose agenthalf is **not** installed in the selected profile shows **Install here**,which pre-fills the install dialog from the package's origin (catalog entrydiff --git a/website/docs/user-guide/features/plugin-catalog.md b/website/docs/user-guide/features/plugin-catalog.mdindex bbef86dd1a3..66d0d0830e4 100644--- a/website/docs/user-guide/features/plugin-catalog.md+++ b/website/docs/user-guide/features/plugin-catalog.md@@ -72,12 +72,18 @@ The catalog is designed so you know exactly what you're installing:catalog install checked out at exactly the pinned SHA does not stop to askabout `caution` again; `dangerous` still blocks, and anything installed froma raw URL or at another revision gets the normal prompt.-- **Desktop plugins stay inside the SDK.** A plugin's `desktop/plugin.js` runs- inside the Desktop app with the app's own authority, so listed ones may only- use the plugin SDK: no patching of built-in prototypes, no `eval`, no- importing the app's own bundle chunks or remote scripts. Admission refuses- these (`desktop surface` check) so a marketplace install cannot quietly- rewire the app around you.+- **Desktop plugins run with the app's authority — review is the boundary.**+ A plugin's `desktop/plugin.js` is evaluated inside the Desktop app itself,+ in the same realm as the app's own code: there is no sandbox, and it can+ do anything the app can (gateway RPC, the full `window.hermesDesktop`+ bridge, storage of other plugins). What protects you is the trust model+ above — a human read the exact pinned commit, and the install is that+ commit — plus two tripwires: admission's `desktop surface` lint refuses+ the obvious moves outside the plugin SDK (patching built-in prototypes,+ `eval`, importing anything other than `@hermes/plugin-sdk`/`react`,+ including remote scripts), and the app's loader refuses every non-SDK+ import again at load time. Treat the lint as a review aid, not a+ guarantee; give Desktop halves the same scrutiny you'd give a Python half.- **Capability declarations.** Entries state up front which tools, hooks, andmiddleware the plugin provides and which environment variables (API keysetc.) it needs, so you can judge its blast radius before installing.