Plugin maker
Lifecycle
none -> draft -> active -> disabled
^ |
+---------+ (edit creates a new draft version)
- Missing ability found in the index, and the user says yes to learning it.
- Model loads
plugin-makerand builds a draft inplugins/.drafts/<id>/with statusdraft. - Draft is tested in the sandbox, using its
tests/if present. - User sees an approval card (below).
- Approved: status
active, index rebuilt. - Any later change by the agent makes a new draft; the old version stays live until approved.
- Rollback makes an older version live. Uninstall removes the plugin; its
state/is removed only if the user asks.
Approval card
Built by the core from the files, not from model text:
- One-sentence purpose (from
summary). - Network hosts it may reach.
- Secrets it may use.
- Each tool with its tags and requested autonomy. Any
autorequest on awritestool is highlighted. - For updates: what changed in
needsand autonomy, and a link to the full diff. - For installs from outside, and for drafts built after reading web pages: source, hash, signer if any, and the full
guide.md(expandable). For all other drafts the guide is one tap away. - What the tests did: the calls they made and their results.
- A warning if the guide mentions other plugins' tools.
A plugin that adds a network host or a secret, or asks for auto on a writes tool, is high risk and needs an owner token.
plugin-maker prompt (outline)
The built-in prompt tells the agent to:
- Restate the goal of the plugin in one sentence.
- Check the index again for anything close that could be extended.
- Research the app or API if needed (docs,
--help, test calls) using build mode (below). - Write
plugin.yamlwith the smallest permissions that work. - Write
guide.md: steps, edge cases, what to ask, what to avoid. - Write tools, with JSON Schema inputs/outputs and clear errors.
- Write tests and run them in the sandbox.
- Request autonomy: reads are
auto; sends, spends, deletes, shares areask. - Save as
draftand request approval with a plain-language summary. - Never touch files outside its own plugin folder. (The sandbox enforces this; the rule is a reminder.)
Build mode
Drafts have no approved needs yet, but research needs the internet.
- Build mode runs in its own thread (
system:build:<id>). That turn gets the plugin goal and no memory: nocore.md, nosearch_memory, no memory entries. A web page that fools the model then has nothing private to leak. - Build mode allows read-only HTTP GET to any host through the proxy, with no secrets and no request body. URLs are capped at 200 characters, and requests are rate limited.
- Every URL fetched is logged and shown on the approval card.
- Build mode can install the plugin's
depsinto the plugin's own folder. After approval, deps are frozen; changing them is a new version. - Test calls to the real service that use a secret need a
mediumapproval each.
The runtime prompt is plugin-maker.md. The plugin page is plugin-maker.