Contribution Points
Every slot a Daintree plugin can fill: commands, keybindings, menus, context menus, toolbar buttons, panels, views, settings, MCP servers, skills, agents, process tools, forge providers, file decorations, and project surfaces. Includes recipes, project surfaces, scope restrictions, and implementation references.
A contribution point is a slot in Daintree that a plugin can fill. All of them are declared in the contributes object of plugin.json. The schema has twenty-one contribution arrays and the project-only surfaces object.
This reference describes the current host contract. The npm 0.1.0 authoring packages predate several fields below; use the source SDK and CLI for current types and validation. See the authoring toolchain.
Daintree registers allowed contributions from the manifest before activation. Installed plugins load at startup; repository plugins also require project trust and staged activation when applicable. Your entry module is imported later, the first time one of these contributions is actually used. Installed contribution ids normally use the plugin namespace. Project plugins additionally use an instance-specific namespace; write manifest action references as publisher.name.command and let the host qualify them.
Scope availability
Project-level plugins support commands, keybindings, context menus, toolbar buttons, panels, views, settings, agent MCP tools, databases, and surfaces. Project manifests reject menu items, agents, skills, recipes, file decorations, file editors, process tools, MCP servers, tours, and forge providers. Installed plugins may use the app-wide groups, but cannot claim project surfaces or declare a "project" database. Forge implementations, file editors, preview tools, and guest adapters currently require a built-in plugin.
| Contribution | Installed | Project | Built-in |
|---|---|---|---|
| commands, keybindings, contextMenus, toolbarButtons, panels, views, settings | Yes | Yes | Yes |
| agentMcp, databases | Yes ("local" databases only) | Yes | Yes |
| surfaces | No | Yes | No |
| menuItems, agents, skills, recipes, fileDecorationProviders, processTools, mcpServers, tours | Yes | No | Yes |
| forgeProviders | Descriptor only; the implementation never binds | No | Yes |
| fileEditors, previewTools, guestAdapters | No | No | Yes |
Filtering needs JavaScript. The contents list works without it, and so does your browser's find-in-page — every contribution point on this page is in the document.
Commands
Commands are callable actions. They appear in the command palette and can be bound to keys, toolbar buttons, menu items, and context menus.
"commands": [
{
"id": "plan-from-issue",
"title": "Plan From Issue",
"description": "Turn a Linear issue into a branch and agent session.",
"category": "Linear Planner",
"kind": "command",
"danger": "confirm"
}
] | Field | Required | Notes |
|---|---|---|
id | yes | Bare command id, up to 64 characters. |
title | yes | Palette entry label. |
description | yes | One-line summary shown under the title in the palette. |
category | yes | Grouping label. Free-form; mirror your display name. |
kind | yes | "command" or "query". |
danger | yes | "safe" or "confirm". "restricted" is rejected: a plugin cannot self-register a restricted action. |
keywords | no | Extra palette search terms. |
inputSchema | no | JSON schema validated against the dispatched args. |
requires | no | The capabilities this command uses. See below. |
requires: per-action capability intent
By default the host derives a command's effective danger from your plugin's entire capabilities list. Declare shell:exec for one command and every other command in the plugin inherits the confirmation dialog, including a no-argument "open the panel". Dropping the capability is not an honest fix. requires is.
{
"id": "open-panel",
"title": "Open Panel",
"description": "Opens the tools panel.",
"category": "Flutter Tools",
"kind": "command",
"danger": "safe",
"requires": []
} - Omit it and nothing changes: the whole manifest is consulted, as before. Existing plugins need no migration.
[]declares that the command exercises no capability, so it stays one click even in a plugin holdingshell:exec.["git:read"]consults only those capabilities, for both the high-risk set and the compound lattice.
Three things it does not do. It grants no access: host APIs still gate on the manifest's capabilities at call time, so listing one here neither adds nor removes runtime authority. It cannot lower a self-declared "danger": "confirm". And every entry must also appear in capabilities; naming one you did not declare fails the command's registration outright rather than falling back, so a typo surfaces at load instead of quietly reverting.
Binding a handler
Two styles, and the choice is not stylistic: it decides whether your handler can reach the host API.
Filesystem convention, installed plugins only. A command with id plan-from-issue looks for src/plan-from-issue.js or src/plan-from-issue.mjs, probed in that order, under the plugin directory. Its default export is the handler. The module is not imported until the command is first dispatched, so twenty declared commands cost nothing at activation.
// src/plan-from-issue.js
export default async function planFromIssue(args) {
// handler body
} args only: there is no host argument, so it cannot call host.showQuickPick, host.settings.get, or anything else on the host. Use imperative registration when the command needs the live host. Project plugins always register handlers from their compiled worker entry; the host does not import a repository convention handler from src/. The handler must also ship as JavaScript: .ts and .tsx files are not probed. Compile to src/{id}.js.Imperative registration binds a handler that closes over the live host. For a lazy plugin, also declare the command in the manifest; otherwise nothing makes that command reachable to trigger activation:
export async function activate(host) {
await host.registerAction(
{
id: "plan-from-issue",
title: "Plan From Issue",
description: "Turn a Linear issue into a branch and agent session.",
category: "Linear Planner",
kind: "command",
danger: "confirm"
},
async (args) => {
// handler body, with `host` in scope
}
);
} An imperative registration for the same id supersedes the convention file, so you can start with a manifest-declared stub and graduate the moment you need host access. A declared command with neither a matching file nor an imperative override produces a visible toast when run: Command "{pluginId}.{id}" has no handler. That is deliberate: the manifest entry alone is enough to make the command appear so you can wire it up incrementally.
A command whose resolved id collides with a built-in Daintree action is rejected at load and does not register. Pick a different id. See Host API for the full registerAction signature.
Keybindings
"keybindings": [
{
"actionId": "acme.linear-planner.plan-from-issue",
"combo": "Cmd+Shift+P",
"scope": "global",
"when": "!terminalFocused && !modalOpen"
}
] | Field | Required | Notes |
|---|---|---|
actionId | yes | Fully qualified, usually one your plugin declared. |
combo | yes | Same normalized format as Daintree's own bindings. Chords such as "Cmd+K Cmd+S" work. |
scope | no | "global" (default), "portal", "worktreeGrid", or "dev-preview". Unknown scopes are rejected. The former terminal, modal, and worktreeList scopes were removed. Use a when condition instead. |
description | no | What the binding does. |
when | no | Context expression, evaluated live on each keydown. |
The when grammar
Expressions support &&, ||, !, ==, !=, and single-quoted string literals. Keybindings evaluate against eight context keys:
| Key | Type | Meaning |
|---|---|---|
terminalFocused | boolean | Keyboard focus is inside a terminal. |
textInputFocused | boolean | Keyboard focus is in an input, textarea, or editable element, excluding a terminal's own textarea. Added by the Linux release update. |
modalOpen | boolean | A modal dialog is open. |
paletteOpen | boolean | Any palette is open. |
paletteId | string | Identifier of the open palette, or "" when none. |
fleetArmed | boolean | At least one terminal is armed for fleet broadcast. |
fleetWaiting | boolean | At least one armed terminal's agent is waiting. |
sidebarVisible | boolean | The worktree sidebar is visible. |
canopyHidden | boolean | Canopy is turned off, so nothing opens it. |
!modalOpne is always true and your binding fires everywhere. Spell-check the identifiers; nothing else will.Bindings register when the plugin loads and unregister on unload. Plugin bindings are low priority and yield to user overrides and to conflicting bindings resolved by Daintree's keybinding service. See Keyboard Shortcuts for the built-in map.
Menu items
Entries in Daintree's application menus.
"menuItems": [
{
"label": "Plan from Linear…",
"actionId": "acme.linear-planner.plan-from-issue",
"location": "view",
"accelerator": "Cmd+Shift+L"
}
] | Field | Required | Notes |
|---|---|---|
label | yes | Menu entry label. |
actionId | yes | Fully qualified action to dispatch. |
location | yes | "terminal", "file", "view", or "help". |
accelerator | no | Platform-neutral shortcut: "Cmd+Shift+L" becomes Ctrl+Shift+L on Windows and Linux. |
when | no | Evaluated once at menu build time against an empty context, so only constant expressions are useful. For a live condition, gate a keybinding instead. |
Context menus
"contextMenus": [
{
"actionId": "acme.linear-planner.link-issue",
"location": "worktree",
"label": "Link to Linear issue…"
}
] Locations are worktree, terminal, and file. On worktree and file menus, plugin items sit in an Extensions submenu, grouped and labeled by plugin when more than one contributes, so the root menu keeps the same shape however many plugins are installed. On the terminal menu they follow Daintree's own entries.
A context-menu when clause is evaluated against the surface's own context, not the keybinding keys above: worktreeId on the worktree card, panelId and panelKind on a terminal, and nothing on a file row. An expression naming a key the surface does not set evaluates false and hides the item.
The file location is the interesting one: it is mounted on every file row Daintree renders: the Review Hub's changed-file rows, the worktree card's changed-files list, the File Browser's tree and listing, and the Diff Viewer's file sidebar. One contribution reaches all four with no per-surface work, and the action is dispatched with the clicked file's context: { path, worktreePath, status }. path is always absolute; worktreePath and status are each omitted when the row has no worktree root or no git status, so an unchanged file in the File Browser arrives as { path } alone. A worktree item is dispatched without arguments.
Two built-in actions pair well here. file.openDiff opens the side-by-side diff for the dispatched file, and panel.openPluginPanel spawns or focuses one of your panels, passing initialArgs straight through to the view, so a context-menu item can open your panel already scoped to the file the user clicked.
Toolbar buttons
"toolbarButtons": [
{
"id": "plan-button",
"label": "Plan",
"iconId": "list",
"actionId": "acme.linear-planner.plan-from-issue",
"priority": 3
}
] | Field | Required | Notes |
|---|---|---|
id | yes | Bare id, namespaced at runtime. |
label | yes | Hover tooltip. |
iconId | yes | One of the shared plugin icon IDs below, or a ./…svg path to the plugin's own icon. Agent brand ids do not resolve here. |
actionId | yes | Fully qualified. Built-in actions such as terminal.new work too. |
priority | no | 1 to 5, lower sorts earlier within your plugin's tray group. Default 3. |
The plugin tray
Contributed buttons do not each claim a top-level toolbar slot. They collect into a single plugin tray button, grouped by owning plugin. From the tray a user promotes an individual button to its own slot (hover the row and click the pin, or use Settings > Toolbar), and a promoted button keeps its tray row as well.
This is deliberate. Placement is the user's call, not the manifest's: there is no field that requests a top-level slot, so five installed plugins cannot between them consume the entire toolbar. See UI Layout for the toolbar itself.
Panels
A panel is a full-sized workspace in Daintree's grid, alongside terminals, viewers, and the Review Hub. The panel entry declares the slot; the view below provides the component that fills it.
"panels": [
{
"id": "dashboard",
"name": "Cost Dashboard",
"iconId": "gauge",
"color": "hsl(150 60% 55%)",
"showInPalette": true
}
] | Field | Required | Notes |
|---|---|---|
id | yes | Bare id, namespaced at runtime as the panel kind. |
name | yes | Label in the panel header and palette. |
iconId | yes | A shared plugin icon ID, a ./…svg path to the plugin's own icon, or a built-in agent id to render that agent's brand mark. |
color | yes | Accent color for the panel tab. |
hasPty | no | Defaults to false. true uses the terminal host instead of a React view. A matching view declaration is ignored; panel menus can still carry the plugin's own actions. |
dockable | no | Dockable unless you declare false. Declaring false alongside hasPty: true is a manifest error, because the opt-out could never be honored. |
canRestart | no | Show a restart control in the panel header. |
canConvert | no | Allow conversion between compatible kinds. Rarely useful for a plugin. |
showInPalette | no | Include in the new-panel palette. Default true. |
menu | no | Up to five of your own actions, shown in the panel's ⋯ and right-click menus in the order given. Each entry is { actionId, label? }; the label defaults to the action's title. |
toolbar | no | Up to three of your own actions drawn as buttons in the panel header. Each entry is { actionId, label?, iconId?, status? }. Without an icon the label is drawn as text. Not allowed on a hasPty panel. |
stateVersion | no | Integer version of the shape this panel saves through persistState. The host stamps it on every write, tells the view which version it is reading, and refuses to hand over state written by a newer build of the plugin. Bump it only for an incompatible change. |
Panel menus and toolbars
menu and toolbar accept only your plugin's own actions, written publisher.name.id, and when you declare commands each must match one of them. An entry appears while its action is registered and is dispatched with { panelId } naming the panel it was used on. The view sets a toolbar button's live state (busy, disabled, a tone, a short status text, an "Updated" age) at runtime, and a plugin can publish further menu entries while it runs. A PTY panel can take menu entries, which appear in the terminal's right-click menu, but not toolbar entries. See Host API for the runtime calls and Plugin UI Kit & Styling for how they look.
Icon IDs
One shared set backs every surface that renders a plugin icon (the panel palette, panel headers, tabs, the dock, toolbar buttons, the toolbar overflow, and process-tool tabs), so an id looks the same everywhere. The developer set:
terminal, package, puzzle, globe, monitor, monitor-play, file-text, file-diff, folder-tree, git-branch, git-pull-request, sticky-note, gauge, list, sparkles, layout-panel-top, daintree
App-shaped glyphs for project tools that stand in for a whole application:
wallet, receipt, chart-column, chart-line, chart-pie, calendar, clock, kanban, check-square, list-todo, users, contact, handshake, briefcase, inbox, mail, image, palette, book-open, bookmark, notebook, newspaper, megaphone, target, heart-pulse, flame, dumbbell, utensils, tag, shopping-cart, boxes, database, table, layout-grid, map, star, rocket, lightbulb, flask
Verbs for toolbar actions: refresh-cw, download, upload, filter, plus, search, play, settings.
An unrecognized icon id falls back to a generic glyph without failing manifest validation, so a manifest written for a newer host degrades on an older one. That says nothing about compatibility of the plugin's other fields or APIs. daintree-plugin validate warns about ids your installed host does not know. Manifest icon ids are this list only; they are not looked up by Lucide name.
Your own SVG icons
A panel, a panel toolbar entry, a toolbar button, or a process tool can name an SVG file the plugin ships, written as a relative path in iconId: "iconId": "./icons/ledger.svg". The path must start with ./, end in .svg, be lowercase, stay inside the plugin directory, and be at most 64 characters; the file may be at most 64 KiB. The host reads and sanitizes the markup, and daintree-plugin validate runs the same checks, reporting a broken file as an error. Because the path lives in the existing iconId field rather than a new key, an older host simply shows the fallback glyph.
Live panel-title badges
A plugin can put a badge in its panel's title chrome at runtime with host.setPanelBadge(panelId, badge), and clear it by passing null. Two shapes:
await host.setPanelBadge(panelId, { kind: "dot", color: "warning", tooltip: "3 checks failing" });
await host.setPanelBadge(panelId, { kind: "label", text: "12", color: "success" }); color is default, success, warning, or error; success renders as neutral emphasis rather than green, because the host cannot know what a given plugin means by success. tooltip is optional and capped at 200 characters. A label is at most six characters, and one that exceeds the cap is rejected rather than truncated, so it can never overflow the header. This is a live push, not a manifest field: it is how a long-running build or review-status plugin reports state without opening its panel.
Views
A view is the React component that renders inside a panel. It binds to a panel slot by matching its bare id; at load, that panel kind gains a componentPath resolved to a plugin:// URL, and the renderer host lazy-imports the module under an error boundary.
"panels": [
{ "id": "dashboard", "name": "Cost Dashboard", "iconId": "gauge", "color": "var(--theme-category-orange)" }
],
"views": [
{ "id": "dashboard", "componentPath": "./dist/dashboard.js", "location": "panel" }
] | Field | Required | Notes |
|---|---|---|
id | yes | For a panel view, must match a panels entry's id. A panel view with no matching panel is a manifest error: it could never be shown. |
componentPath | yes | POSIX-relative path to a pre-built ESM module inside the plugin, whose default export is a React component. Absolute paths, URL schemes, and .. segments are rejected. |
location | yes | "panel" or "settings". "sidebar" is rejected at validation: the sidebar host does not exist yet, so accepting it would validate a view the runtime cannot render. |
iconId | no | Accepted for compatibility but ignored at runtime. The matching panel owns the rendered icon. |
A location: "settings" view is the plugin's own settings section. It names no panel, a manifest may declare at most one, and its id must not match a panel's. It mounts in the plugin's settings below the generated fields, and opening it can activate a lazy plugin. Mark a declared setting "editor": "view" when this view edits it, so the generated form does not show it twice.
Views ship as pre-built ESM. Nothing compiles TypeScript or JSX at load time. The view schema carries no name or description: the panel is the single source of truth for display metadata. The full component contract (the props, the React hooks, and how module generations defeat the renderer's ESM cache) is on Host API.
Temporary unmount is not teardown
This is the distinction that most often bites. A panel outlives its views, and a view receives two abort signals that mean different things:
disposeSignalis the lifetime of this mounted view attempt. It aborts on unmount, on "Try again" after a render error, and when the host drops the panel kind. Crucially it also aborts on a temporary unmount: maximizing a sibling pane, leaving a dock tab, or backgrounding a project view.panelRemovedSignalis the lifetime of the panel record. The same object is handed to every mount of a given panel, so it survives remounts, retries, trash-then-restore, and plugin upgrades. It aborts exactly once, when the panel is permanently removed.
Deciding deletion from disposeSignal alone is how a plugin ends up killing a running dev-server session because someone maximized the pane next door. Tie view-scoped work (in-flight fetches, DOM observers, timers driving the UI) to disposeSignal. Tie anything that should survive being backgrounded but not survive the panel to panelRemovedSignal. Keep genuinely durable resources such as spawned processes in the plugin worker and release them from host.onDidChangePanelLifecycle on the "removed" phase, because the worker observes the panel across every remount and the view cannot.
Settings schema
Declares user-configurable settings. Daintree generates the form; you read values back through the host API.
"settings": [
{
"id": "linear.apiToken",
"type": "secret",
"scope": "user",
"label": "Linear API Token",
"description": "Personal API token from linear.app/settings/api"
},
{
"id": "linear.defaultTeam",
"type": "string",
"scope": "project",
"label": "Default team",
"default": ""
}
] | Field | Required | Notes |
|---|---|---|
id | yes | Limited to letters, digits, ., -, and _, so it can always be referenced by a ${settings:id} token. |
type | no | One of nine (see below). Defaults to string. |
label / description | no | Field label and help text. |
default | no | Default value. |
scope | no | "user", "project" (in the repository), or "local" (this machine and project, outside the repository). Defaults to "user". |
options | no | Non-empty string array. Required when type is enum. |
min / max | no | Bounds for number. min may not exceed max. |
mustExist | no | For the path types: flag a stored path that no longer resolves. Advisory: it never blocks saving. |
extensions | no | For file only, no leading dot: ["json", "md"]. Rejected on any other type. |
secret | no | Legacy boolean. true normalizes to type: "secret". Prefer the type. |
required | no | Marks a value the plugin cannot work without. An unset required setting puts a "needs setup" strip on the plugin's panels, and host.settings.missingRequired reports it. |
editor | no | "form" (the default) or "view". "view" leaves the field out of the generated form because the plugin's settings view edits it. |
A secret may not declare a default: it would ship in plugin.json. Leave it unset and mark it required instead.
The nine types are string, number, boolean, enum, json, secret, path, directory, and file.
secretis encrypted at rest through the OS keychain, transparently to the plugin, and never written to the repository, even at project scope. Where no keychain is available the value is not saved and the form says why. See Trust & Capabilities for the caveats.pathanddirectoryrender a read-only input plus a native folder chooser;fileopens a single-file chooser narrowed byextensions. The stored value is an absolute path, read back like any other setting.
Settings appear on the plugin's Settings tab in the Plugin Manager, and changes fire a subscription callback, so a plugin never needs to reactivate to pick up an edit.
const token = await host.settings.get("linear.apiToken"); MCP servers
Model Context Protocol servers the plugin ships, with Daintree as the client. Their tools are supervised and routed through Daintree's plugin MCP surface; declaring a server does not edit every agent CLI's own MCP configuration. To serve tools to the agents in your terminals instead, use agentMcp. See MCP Server.
"mcpServers": [
{
"id": "linear",
"name": "Linear MCP",
"command": "node",
"args": ["./dist/mcp/linear-server.js"],
"env": { "LINEAR_API_KEY": "${settings:linear.apiToken}" }
}
] command is an executable: node, python, npx, or an absolute path. args and env are optional. Values in all three may reference a declared setting with ${settings:id}; an id naming no declared setting is a manifest error, not a runtime surprise. Transport is stdio only: remote transports, explicit transport types, per-server working directories, and restart policies are all deliberately absent.
The server does not inherit Daintree's environment. It starts from the same short allowlist every plugin child process gets (PATH, HOME, temp directories, locale, time zone, shell and user names, and the Windows essentials) plus the env you declare, so an API token in Daintree's own environment never reaches it. Pass anything else the server needs through env, ideally from a secret setting.
Daintree supervises the process. It is lazily spawned on first tool use, hard-killed when Daintree exits, and on an unexpected crash it transitions to crashed and rejects tool calls until you restart it by hand: there is no automatic retry or backoff. Discovery is two-tier: a cheap tool list first, full schemas fetched on demand. Tool calls run through a consent, permission, and audit subsystem, with the reachable danger tier capped against the plugin's declared capabilities.
Changing a user-scope setting automatically restarts every running server that references it, debounced by about a second so a burst of edits coalesces into one respawn. Servers that were never started stay stopped: a settings change never eagerly boots one.
Agent MCP tools
contributes.agentMcp is the inbound direction: tools your plugin serves to the agents running in Daintree's terminals. You write no server and pick no port. Daintree serves each plugin as one MCP server on its own loopback listener, named daintree-<mcpName> (see mcpName), and owns the transport, a per-terminal credential bound to one project, and revocation. Requires the mcp:expose capability. Allowed in project plugins as well as installed ones; at most one endpoint per plugin.
"capabilities": ["mcp:expose", "fs:project-write"],
"contributes": {
"agentMcp": [
{ "id": "data", "name": "Household ledger", "description": "Read and append transactions.", "mode": "tools" }
]
} | Field | Required | Notes |
|---|---|---|
id | yes | The endpoint id that host.mcp.registerTools binds a roster to. Not the server name. |
name | yes | Up to 80 characters, shown in the per-project access setting. Agents never see it. |
description | no | Up to 400 characters. |
mode | yes | "tools", the only mode. |
The tools themselves are registered from activate() with host.mcp.registerTools(endpointId, tools): up to 16 tools, names of 1 to 32 lowercase letters, digits, and underscores, input schemas that are enforced before your code runs, and results capped at 256 KiB with a 60-second call timeout. An agent's first call activates a lazy plugin. See Host API for the registration contract.
A plugin that declares a database also gets the host's own read-only database_schema and database_query tools on the same server, without mcp:expose; those two names are reserved.
Nothing reaches an agent until the user allows it. Access is set per plugin in Project settings > Plugins > Agent tools: Off (the default), Read only (the database tools), or Read and write (the database tools and your own tools). Daintree's MCP server must be on, and an agent receives the servers when it launches, so raising access reaches agents started afterwards while lowering it also cuts off running ones. A repository can set defaults for its own project plugins in .daintree/mcp.json; it can never turn on an installed plugin. See Trust & Capabilities.
Skills
Markdown instruction or knowledge files that extend Daintree's built-in MCP server. Agents discover and load them through its skills.search and skills.load tools.
"skills": [
{
"id": "tdd-workflow",
"name": "TDD Workflow",
"path": "./skills/tdd-workflow.md",
"triggers": ["test-driven", "tdd", "red-green-refactor"]
}
] path is a relative path inside the plugin, realpath-contained at read time. triggers is an optional array of up to 50 search terms the agent uses to find the skill. The file's content is returned verbatim when an agent loads it. Skills are inert declarative content and require no capability.
Recipes
Installed plugins can ship named multi-terminal launch layouts in contributes.recipes. Each entry requires id, name, and a non-empty terminals array; optional showInEmptyState and autoAssign are user-overridable defaults. Recipe ids are qualified as publisher.name.recipe.
Terminal entries describe their type and optional title, command, environment, initial prompt, arguments, dev command, and exit behavior. Content passes through the host recipe sanitizer. Contributed recipes appear app-wide and are immutable; duplicate one into a user-owned tier to customize its content. Installing does not itself launch the recipe.
Recipes require no plugin capability token, but they describe executable startup content and the archive preview discloses their names. A project plugin may not contribute this app-wide tier. Keep project-owned recipes directly under .daintree/recipes/ instead. See the recipe contribution types and PluginRecipeRegistry.
Tours
An installed plugin can ship a narrated welcome tour that plays in the same dialog as the Daintree tour: a few short chapters, each an animated mockup with captions and optional voice-over. Without panelKind it is a plugin tour offered from Help and the command palette; with one it is a panel tour opened from that panel's menu, and panelKind must name one of the plugin's own panels. Project plugins cannot declare tours.
Each entry has an id, a title (up to 120 characters), a componentPath to the scene module, up to 32 chapters (each with an id, a duration of at most 600 seconds, named cues, captions, an audioUrl, and a narrationHash), and the audioHosts narration may be fetched from. Remote audio must be HTTPS on a host the tour lists, so the user can see where it comes from. The scene module is imported only when the tour opens, and draws with the host-served @daintreehq/tour kit. The daintree-plugin tour commands that voice, align, and preview a tour are newer than the 0.1.0 CLI on npm. See the app's tour guide for the authoring workflow.
Project surfaces
contributes.surfaces.emptyCanvas lets a project plugin claim the content grid's empty region with { "viewId": "overview" }. The value names a declared view with a matching non-PTY panel. One plugin owns the slot in each project, and Daintree keeps a control that returns to the stock launcher. Installed plugins cannot make a surface claim. See Project Plugin Surfaces.
Databases
contributes.databases declares a SQLite file the plugin opens through host.db. The declaration names the file, discloses it, and decides where it lives, so the host can resolve and contain the path before plugin code sees it.
"databases": [
{ "id": "ledger", "description": "Household transactions, amounts in integer cents." }
] | Field | Required | Notes |
|---|---|---|
id | yes | Bare id; also the default file name. |
description | no | Up to 400 characters. Shown to agents by the database_schema tool. |
location | no | "project" (the default) or "local". A project database is a file in the repository, at .daintree/data/<manifestId>/<id>.db unless path says otherwise, and needs "scope": "project" plus fs:project-write. A local database lives in the plugin's own data directory on this machine. |
path | no | Project databases only: a path relative to the project root, ending in .db, .sqlite, or .sqlite3, never inside .git. |
journalMode | no | "delete" (the default) or "wal". |
An installed plugin can declare only local databases, and one local file serves every project, so agent access to an installed plugin's database tools in one project reads what the plugin stored for all of them. Every panel of a plugin that declares a database gets a host-owned Back up data… menu entry that snapshots the databases the plugin has actually created to a file or folder the user picks. See Host API for opening, migrating, and querying.
Agents
Teaches Daintree about a launchable agent CLI it does not ship, so it appears as a named, selectable agent rather than a generic shell. Requires the agent:register capability, which the manifest gate enforces.
"capabilities": ["agent:register"],
"contributes": {
"agents": [
{
"id": "acme",
"name": "Acme Agent",
"command": "acme",
"args": ["--interactive"],
"color": "#3366ff",
"iconId": "claude",
"supportsContextInjection": true
}
]
} | Field | Required | Notes |
|---|---|---|
id | yes | Additive for new ids only. Colliding with a built-in agent is a manifest error, and built-ins always shadow plugin entries. Cross-plugin conflicts resolve first-registered-wins. |
name | yes | Display label. |
command | yes | A bare binary name found on PATH, or a plugin-relative path starting with ./ for a launcher the plugin ships. No absolute paths, backslashes, or .. segments. Supports ${settings:id}. |
args | no | Up to 20 default launch arguments, each up to 256 characters with no line breaks. Also supports ${settings:id}. |
color | yes | Brand color as a 6-digit hex. |
iconId | yes | A different namespace from panel and toolbar icons. It must name a built-in agent id such as claude or codex, because agents render bundled brand marks. A panel icon id like terminal is not a bundled agent brand mark. Shipping a custom icon asset is not supported. |
supportsContextInjection | no | Whether copy-tree context injection targets this agent. Default false. |
${settings:id} tokens in command and args resolve at spawn time against the plugin's user-scope setting of that id; project scope is never read. If the setting is unset the launch fails with a clear error rather than spawning the agent with a literal token or a silently blanked value, so a missing credential surfaces as a spawn error instead of an opaque auth failure inside the agent. Unlike MCP server tokens, these are not validated at parse time.
detection
Without a detection block a plugin agent runs as a plain named terminal whose working and waiting state Daintree does not track. Declare one and it joins the same agent-state machinery as a built-in. The block is strict, so a typo'd field is a loud manifest error rather than a silently ignored tuning knob.
| Field | Required | Notes |
|---|---|---|
primaryPatterns | yes | Non-empty array of regex strings, each of which must compile, marking the agent as working. A detection block without it is rejected. |
fallbackPatterns, bootCompletePatterns, promptPatterns, promptHintPatterns, completionPatterns | no | Regex arrays for the corresponding detection tiers. |
scanLineCount, promptScanLineCount | no | Line-window bounds for the matcher, 1 to 1000. |
debounceMs, promptFastPathMinQuietMs | no | Timings in milliseconds, 0 to 600000. |
primaryConfidence, fallbackConfidence, promptConfidence, completionConfidence | no | Confidence weights in the range 0 to 1 for a matched tier. |
titleStatePatterns | no | { working, waiting } string arrays matched against the terminal title, up to 50 entries each. |
Process tools
Teaches Daintree to recognize a CLI running inside a terminal pane, so the tab shows your icon instead of the generic terminal glyph. Detection normally runs off a fixed built-in list (npm, Vite, Docker and friends), and this is how a plugin that ships or wraps its own CLI gets the same treatment. Inert declarative data; no capability required.
"processTools": [
{ "command": "acme-cli", "iconId": "sparkles" },
{ "command": "acmec", "iconId": "sparkles" }
] iconId takes a shared icon id or a ./…svg path to your own icon. An unrecognized id, including an agent brand id such as claude, is collapsed to the generic terminal glyph, so a plugin cannot borrow a built-in agent's mark.
command is a bare executable name, lowercase, starting with a letter or digit and otherwise limited to letters, digits, ., -, and _. Omit the extension: write acme, not acme.exe or acme.py, because detection strips launcher and script suffixes before matching, so a suffixed form would never fire and is rejected. Lowercase is enforced rather than normalized for the same reason.
Entries are additive for new commands only. Colliding with a built-in tool command or a built-in agent CLI is a manifest error, as is declaring the same command twice in one manifest. So are shells and launcher wrappers (sh, bash, sudo, env, xargs, timeout and the rest), because they name the process that runs a tool, so sudo vite would report your plugin instead of Vite. The package-manager exec subcommands exec, dlx, and x are rejected for the same reason. A collision with another plugin resolves first-registered-wins with a warning.
One entry per alias, each pointing at the same iconId. Plugin detections rank at the same tier as named built-in tools, so npm exec acme-cli reports your CLI rather than npm. Detections register at plugin load and are mirrored into the pty-host process where detection actually runs, surviving a pty-host restart; unloading or disabling the plugin removes them, and a terminal already running the command keeps its icon until the next detection pass reclassifies it.
Forge providers
Registers a forge backend (issues, pull or merge requests, reviews, CI roll-up, releases, and auth) for a platform that sits on top of git. See Code Forge.
parseRemote and URL builders are synchronous and cannot cross the async MessagePort that user-installed plugins run behind, so registerForgeProvider is a no-op out of process. An installed manifest can register a descriptor, but the implementation never binds through the worker. Project manifests reject the contribution outright. Daintree's own GitHub and GitLab plugins work because built-ins activate in-process."forgeProviders": [
{
"id": "gitea",
"name": "Gitea",
"matches": ["gitea.io", "gitea.example.com"],
"capabilities": ["issues", "pulls", "required-checks"]
}
] | Field | Required | Notes |
|---|---|---|
id | yes | Must match the descriptor id passed at runtime. |
name | yes | Display label in the forge settings. |
matches | yes | Exact hostnames. The host extracts the hostname from the project's git remote (HTTPS, SSH, and SCP-form URLs all handled), lowercases it, and matches for exact string equality. No globs, no suffix matching. List every hostname your forge serves. First match wins. |
kind | no | "network" for a provider that reaches a remote forge, "local" for one that serves a local or offline source. Display only. |
capabilities | no | Informational hints driving the "supports…" display only. Behavior gates on the runtime implementation, not on this list. |
credentialFields | no | { id, label, type, placeholder?, helpText? } entries driving the generated credential form. |
settingsScopeRef | no | A declared setting id used to group provider settings. A dangling reference is a manifest error. |
viewRefs | no | Ids of views shown under this provider's section. Each must resolve to a declared view. |
slots | no | Renderer view ids for settingsTab, icon, statsDropdown, bulkCreateWorktreeDialog, and issueSelector. Checked for shape only; an unresolved id renders a neutral fallback. |
The manifest entry is read eagerly so the provider populates the settings UI and the remote-routing table before any plugin code runs; the implementation binds lazily in activate().
File decorations
Registers a provider that decorates file rows with status badges, colors, and tooltips. The manifest declares which scopes the provider answers for, so the renderer can route decoration pulls before the plugin's code has run.
"fileDecorationProviders": [
{ "id": "worktree-diff-review", "scopes": ["worktree-diff:*"] }
] id must match the id passed when the provider binds at runtime; scopes is a non-empty list of patterns. There are two host-routed scopes, and keeping them distinct is the point:
| Scope | Surface | Typical use |
|---|---|---|
worktree-diff:<worktreePath> | Review Hub changed-file rows: base-branch diff and linked PR. | Badging PR review state, as the built-in GitHub plugin does. |
worktree-files:<worktreePath> | The local file-change list on the worktree card. | Local-only signals: lint status, leaked secrets, format drift. No PR or remote required. |
A provider registered for worktree-diff:* is not invoked on worktree-files:* and vice versa, so PR-review badges never leak onto the plain change list. The paths the host passes, and that your provider keys its returned map by, are the changed-file paths as the surface renders them.
Two providers declaring the same exact scope string merge first-writer-wins per field in load order, so the second one's badge for a shared path can be dropped; the host logs a warning naming both plugins so the collision is detectable. A broad provider coexisting with a narrow one (worktree-files:* alongside worktree-files:/some/path) is intentional and not warned about.
A provider that takes longer than 3000 ms to answer a pull is skipped and logged, so one slow provider cannot stall the file list. From your subscriptions and timers, call host.invalidateFileDecorations(scope, paths?) to tell any renderer showing that scope to re-pull.
Built-in-only contributions
Three contribution types exist in the schema for Daintree's own built-in plugins. Each resolves components out of the app's bundle, which an installed or project plugin's code never reaches, so they are refused anywhere else.
| Key | What it does | Used by |
|---|---|---|
fileEditors | Adds an Edit mode to the file viewer for the listed extensions ({ id, slot, extensions, maxBytes? }). Refused at load for non-built-in plugins. | The built-in Markdown editor. |
previewTools | Adds a tool to the dev preview toolbar ({ id, title, iconId?, guestAdapter? }). The id is the plugin name plus one segment. | SvelteKit Tools. |
guestAdapters | A browser bundle installed into the previewed page through the site-preview bridge ({ id, entry }). It runs with full DOM access inside the previewed site, which is why only a first-party asset may back one. | SvelteKit Tools. |
What is deliberately not a contribution point
- Model-provider implementations. Registering a launchable CLI does not add a model provider to Daintree's assistant.
- Agent lifecycle interception. Plugins can observe the supported agent-state API; they do not gain a hook that intercepts every operation performed by an agent CLI.
- Subagents. Daintree spawns fresh agents natively. Compose them with skills and MCP rather than a subagent contribution.
- Status bar items, tree views, editor decorations. Daintree is not an editor; these surfaces do not map onto what it renders.
- Themes. A
themescontribution is designed but not shipped: it needs a theme registry surface that does not exist yet. See Themes.
Exact field definitions and limits live in the manifest schema and public types. The contribution-consumer tests trace declarations to their runtime consumers. These links are pinned to the audited October 13, 2026 revision.