Plugin format

A plugin is a big prompt that says how to do one job, plus optional tools. The agent can write new ones.

One page per shipped plugin is in Plugins. How the agent builds new ones is in Plugin maker.

Folder layout

plugins/
  calendar/             the live version
    plugin.yaml         metadata
    guide.md            the big prompt: how to work in this domain
    schemas/            JSON Schema for tool inputs and outputs
    tools/              optional scripts or definitions
    tests/              optional checks
    state/              plugin-owned data (caches; secrets are never stored here)
  .drafts/<id>/         a draft being built or waiting for approval
  .versions/<id>/<version>/   old versions

Drafts are built in .drafts/, so the live version keeps working while a change waits for approval. Approval copies the draft over the live folder. Rollback is a copy from .versions/.

The core stores a hash of each live version (all files except state/). It checks the hash before every tool run. A mismatch blocks the run with plugin_tampered.

Status, provenance, hash and created_by are kept by the core in its own database. The core ignores any such fields in a plugin.yaml written by the agent or a downloaded plugin. Otherwise a plugin could declare itself active or signed.

plugin.yaml

id: calendar
version: 1.2.0            # semver
requires_core: ">=0.3"    # core versions it works with; the core refuses others
status: active            # draft | active | disabled   (kept by the core; see above)
summary: Read, create and move calendar events.   # becomes the index line (cleaned, max 25 words)
needs:                    # what it touches, shown to the user on approval
  network: [calendar.example.com]
  secrets: [calendar_token]
tools:
  - name: list_events
    tags: [reads]
    autonomy: auto        # requested level: auto | ask | never
    input: schemas/list_events.in.json
    output: schemas/list_events.out.json
  - name: create_event
    tags: [writes, shares]
    autonomy: ask
    undo: delete_event    # optional: the tool that reverses this one, called with the saved result
  - name: book_table
    tags: [spends]
    autonomy: ask
    cost: {amount: "$.price", currency: "$.currency"}   # required for `spends`
runtime:                  # for script tools
  command: ["python3", "tools/main.py"]
  deps: requirements.txt  # optional, installed at build time only
  timeout_secs: 120       # optional, wall time per run, at most 300 (default 30); longer is shown on the card
created_by: agent         # agent | human
provenance:               # filled by the core, not the plugin
  source: local | path | url
  url: null
  sha256: null
  installed_at: null
  signed_by: null

Tool tags

reads, writes, sends, spends, deletes, shares. The core uses tags for its policy: any tool tagged sends, spends, deletes or shares is at least ask, whatever the plugin requests. A tool with no tags is treated as ask.

Two more tags can never be made auto, not even by the user: unrestricted (a shell; its card shows the exact command) and always_ask (every call needs a yes; risk high, so voice cannot approve it; used by email.send).

Tags are claims by the plugin author, and a bad plugin may lie. So:

The plugin's autonomy is a request. The effective level is set by the Safety Gate (see API, Autonomy levels).

Two rules the core needs to keep its promises:

More plugin.yaml fields in code:

guide.md

Free text written for the model. Should hold: what the domain covers, how to do common tasks step by step, edge cases, what to ask the user, what never to do, examples. Long is fine; it is only loaded on demand.

A guide from outside (installed by path or URL) is loaded as outside content (see Prompt system). It can teach steps but cannot unlock anything: the Safety Gate still decides every call.

Tools

A tool is a script run in the sandbox or a declared HTTP call. Each has a name, tags, a JSON Schema input, a JSON Schema output, and a requested autonomy level.

Sandbox

Each tool run is a separate process started by the Rust tool runner.

Sandbox as built:

Tests

Tests are written by the agent, so they are a weak signal. They show the plugin runs and its schema is right, not that it is safe. Safety comes from the sandbox, the needs list and the Safety Gate.

Sharing

A plugin is a folder. Zip it, put it in a git repo, install by path or URL.

MCP servers

A plugin may wrap an MCP (Model Context Protocol) server instead of its own scripts:

mcp:
  command: ["npx", "some-mcp-server"]
  tools: [search, get_page]   # only these are exposed

The MCP server runs in the same sandbox with the same needs. Each exposed tool still needs tags and a requested autonomy level in plugin.yaml.

Not built yet: install by URL, signing and MCP-wrapped plugins. See Next.

Built-in plugins (small set)

Everything else (mail, calendar, files, music, home) is an ordinary plugin.

The full list of shipped plugins is in Plugins.

Real programs and longer jobs

A plugin can ask for real programs beyond the terminal plugin's allowlist, and for more time per run:

needs:
  programs: [git, ffmpeg, /opt/homebrew/bin/jq]   # plain names or absolute paths
runtime:
  timeout_secs: 120                               # 1 to 300