Plugin maker

Lifecycle

none -> draft -> active -> disabled
          ^         |
          +---------+  (edit creates a new draft version)
  1. Missing ability found in the index, and the user says yes to learning it.
  2. Model loads plugin-maker and builds a draft in plugins/.drafts/<id>/ with status draft.
  3. Draft is tested in the sandbox, using its tests/ if present.
  4. User sees an approval card (below).
  5. Approved: status active, index rebuilt.
  6. Any later change by the agent makes a new draft; the old version stays live until approved.
  7. 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:

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:

  1. Restate the goal of the plugin in one sentence.
  2. Check the index again for anything close that could be extended.
  3. Research the app or API if needed (docs, --help, test calls) using build mode (below).
  4. Write plugin.yaml with the smallest permissions that work.
  5. Write guide.md: steps, edge cases, what to ask, what to avoid.
  6. Write tools, with JSON Schema inputs/outputs and clear errors.
  7. Write tests and run them in the sandbox.
  8. Request autonomy: reads are auto; sends, spends, deletes, shares are ask.
  9. Save as draft and request approval with a plain-language summary.
  10. 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.

The runtime prompt is plugin-maker.md. The plugin page is plugin-maker.