A local-first multi-agent app development platform, built on PenguinHarness
Plugins: a catalogue, packages shipped with every build, and a per-Project list the platform applies
- Date: 2026-08-20
- Type: feature
- Scope:
core,server,web,desktop,tooling,docs - PR: #383
- Breaking: yes — the data root's
plugins.jsonis no longer read; each Project asks for its plugins again on the Plugins page
The harness gains plugins end to end: a registry abstraction and a shared index format on the server, the plugins this repository builds shipped as part of every deployment, a Plugins page that lists what a Project has and what it could have, a plugin list that belongs to the Project and takes effect without a restart, and the same list kept on the machines the Project uses. Plugins are loaded by the platform, so all of it reaches a running deployment by a push.
Registries and the index format
- A plugin registry is one source of plugin index entries. Two implementations ship — a builtin registry serving an index embedded in the server package, and an HTTP registry fetching an
index.jsonURL. Both run their document through the same validator, so a remote index is trusted no further than the embedded one. - All registries share one plugin index format, modeled on typst/packages'
index.jsonschema: a flat array of per-version entries withname,version,description,authors,license, and optionalrepository/homepage/keywords/categories/updatedAt. An entry'snameis the package specifier a Project's plugin list names. GET /api/plugins/registry(any logged-in user) serves the merged index of the configured registries. The builtin one lists the packages this build ships: the four sandbox backends — bubblewrap (Linux), Seatbelt (macOS), MXC (Windows) and the DSH adaptor — and the language floor.- A readme is fetched per entry through
GET /api/plugins/registry/readme?name=…rather than carried in the index: the listing is sent in full on every visit, while a readme is large and wanted only for the entry someone opened. The endpoint answers only for entries the deployment lists, so it cannot be used to probe what exists; a registry that has no readme for an entry answers null rather than a guessed URL. The readmes are the packages' ownREADME.mdfiles, read from the package on this machine, so the catalogue holds no second copy of the prose to drift from the first; a test pins every listed entry's name, version, description and license to what the package itself declares.
Shipped as the npm packages they are
scripts/build-plugins.mjs takes every plugins/* package with a code entry, runs the package's own build, packs it with pnpm pack — exactly what npm publish would send, files honored — and installs the tarballs with npm install into a staging directory laid out as an npm prefix: plugins/package.json, whose dependencies name what was shipped, plus plugins/node_modules/<name>/…, each package's dependencies beside it the way npm installs them anywhere. Nothing about a package is rewritten: its package.json, its exports, its dist/, its generated ifaces.json and its README.md reach the target as its own build produced them. The SDK is not among the installed dependencies — a plugin compiles against @prismshadow/penguin-core's types and shares the host's copy at run time. The staged prefix is cached under node_modules/.cache/penguin-plugins/ by the hash of every plugin's sources, manifest, README and build config, so a push that touched nothing there builds, packs and installs nothing again.
A hot push ships the prefix among its assets (plugins/…); the desktop build stages it beside skills/ (scripts/build-assets.mjs, electron-builder.yml). The loader resolves plugins from, in order: <root>/plugins (the data root's own prefix), the committed push's plugins/ (read from harness.json, no host needed), the installation's plugins/, and the installation entry — looking a package up the way Node does and reading the entry an importer would, its exports import condition or main.
Shipping one is not installing it. builtin is a tag on where a package came from, never a second way of being installed: a plugin the build carries appears in the catalogue marked built in — installing it copies nothing over the network — and it is installed, loaded and removed exactly like any other, by a Project listing it. Only a plugin the build ships can be asked for; a name the build does not ship is refused rather than listed, so a Project never names a package that is not on the machine.
The Plugins page
One list, one plugin per row, every kind in the same card, with a search box above it and the filters beside it. Installed plugins (N) comes first, folded by default: the library's skill and hook packages, which ship with the build and every Agent may use, and the module plugins the current Project asks for, each with what the running process makes of it — Installed, Running, or Restart to load. Available follows: the registry entries the Project does not ask for yet, and a shipped package the registry has no entry for. A row carries the plugin's name, description, version and update date, and its tags: the category (Office Productivity, sandbox, languages, …), built in, and the keywords. The filters are three controlled facets, each option with its count — Categories, Contains (skills, hooks, modules) and Status (installed, available, running, restart to load); options within a facet widen the match, facets narrow it. Each row carries its control, so a plugin is asked for where it is read about, and removed there too. An entry opens a detail page with its metadata and rendered readme, so choosing a sandbox backend does not mean reading its source.
The list belongs to a Project; the process runs the closure
A Project's plugins live in its own config — the [plugins] table in .project_config.toml, package name → requirement in the shape of Cargo's [dependencies] ("@scope/name" = "*" for whatever the deployment ships, a version string, or { version = "…" } where later fields go), beside its models — because machines are lent to Projects, so a Project's list is what says which machines a plugin has to reach (see PRFC-0010). Loading is per process, though: there is one module tree. So what a deployment runs is the closure, the union over its Projects, and what a plugin contributes is visible to all of them. A row on the Plugins page is therefore two facts joined: this Project asked for it, and the process has it.
The routes are /api/projects/:projectId/plugins/installed: GET (any member of the Project) reads the list with what the process makes of each entry, PUT { plugins } (admin) rewrites it, POST { specifier } (admin) asks for one plugin and DELETE …?specifier= drops it. Every name that enters the list passes the same gate, on PUT as on POST: a package name, never a path or a subpath, and one the build ships. Asking is consent, not a download; removing changes nothing on disk, and a package leaves the disk only once no Project asks for it. A listed plugin the process could not load — a specifier that does not resolve, a package whose table is missing, an import that threw, a module name another plugin already took — is reported with that reason rather than as a pending restart, and the page shows the row as failed with the reason. A Project whose config cannot be read contributes nothing to the closure and its own list view reports the fault; the other Projects' deployment comes up.
Applied without a restart, by the platform
A write asks the App to re-assemble itself: the platform boots its inner tree again with the kernel's own upgrade — same bundle, same parked document, the swap a hot push already performs — so ptys and machine connections cross it exactly as they cross a push, and what a push stops, this stops too: the agent runs in progress, in every Project, since there is one tree. The page says so before an admin applies a change. No process restart, and nothing in the HMR layer is involved: the runtime keeps holding the same outer instance throughout, which is why this works on every runtime, old ones included. The edit travels with the re-assembly: it is written in the re-assembly's queue, so two admins' edits of one file never interleave, and a boot that fails undoes it before the previous App is restored — reported as "did not take", with the list as it was.
Reading the closure and importing it is the platform's, in its own boot, rather than the runtime's at process start. Which plugins a deployment runs, and how that list is read, is policy; a machine whose program predated a rule could otherwise never learn it from a push — a machine given a Project's list sat with every plugin inactive because its program still looked for the old plugins.json. Now any deployment that can take a push can take a plugin change. What stays in the registry across a swap is the imported objects, claimed by the next App and reused by specifier, never imported twice; an entry the closure no longer names is simply absent from the new host. The host in the registry is written only by a boot that succeeded, so a plugin can no longer read as active while nothing running contains it. The runtime keeps a load of its own as a shim, for a platform older than this move being rolled back onto it.
The same list on a Project's machines
A Project's list is handed to the machines it uses, on the same trip its Model credentials already take and at the same moments: when the list changes, and again on connect. Parity is strict — the Project's list is the truth and what a machine has beyond it is removed.
That has a cost worth knowing: a platform-specific sandbox backend is not in the other platform's list and is therefore taken away. Keeping one means listing it fleet-wide; a machine that cannot resolve it shows an inert error row rather than losing the backend it can use. The sync reports per machine what it added, what it removed, what that machine lists but cannot resolve (most often a machine that needs updating first), and whether it still has to restart.
Compatibility
The data root's plugins.json is no longer read, and nothing migrates it. A deployment that had one starts with no plugins: sandbox backends, languages and session surfaces are all absent from the tree until each Project asks again on the Plugins page. The old file is left on disk untouched, so rolling back to an earlier platform finds it exactly as it was.
The same holds for the list form this key briefly had before release (plugins = ["…"]): it is not read, and such a Project asks for no plugins until its table is written again from the Plugins page.