[Go to site: main page, start]

Skip to main content

Project-level Plugins

Build repository-specific tools with project plugins: panels, workflows, project data and agent tools, supported extension points, binding, and illustrative use cases.

Updated
Reviewed

A project-level plugin gives a repository its own tools inside Daintree: a release board, a content review queue, a data explorer, or an interface for the services that team operates. The plugin lives with the project, changes through the same Git review process, and appears only in that project's views.

Think of it as building your own mini SaaS inside a project. You can give recurring work a purpose-built interface, with actions, persistent state, and connections to your existing systems. Daintree supplies the surrounding habitat: projects, worktrees, panels, agent terminals, and review. Your plugin supplies the workflow and vocabulary specific to your team.

This is a local application extension. A plugin does not automatically provide web hosting, shared accounts, billing, a multi-user database, or access control for a remote service. If your workflow needs those, your own backend supplies them. A useful first version can work entirely from files already in the repository.

Choose the right kind of extension

NeedUseHow it travels
A tool whose meaning comes from this repositoryA project plugin in <projectRoot>/.daintree/plugins/, declaring "scope": "project"Commit the manifest and loadable output alongside the source.
A tool you want available across unrelated projectsAn installed plugin in ~/.daintree/plugins/, with no top-level scopeInstall a .dntr archive or sideload a directory.
A repeatable set of terminals and startup commandsA recipeSave the launch configuration; build a plugin when the workflow needs its own UI or ongoing behavior.

A project plugin is identified by its manifest name, conventionally also its directory name, such as acme.release-board. Two projects may ship that same name, and an installed copy may coexist with them. Daintree gives each project copy a separate runtime identity. Use the SDK's host.pluginInfo and host.panelKindId() helpers instead of constructing those internal identifiers yourself.

What you could build

These are design examples using the current extension surfaces, not bundled products. Each starts with a concrete recurring task and can grow as the repository's needs change.

Project toolFirst useful versionHow it could grow
Release deskA panel combining version files, changelog drafts, build results, and a release checklist.Fetch release status from your service, run a managed validation process, and expose a reviewed publishing action with explicit confirmation.
Content studioRead repository content into a queue of drafts, missing metadata, broken references, and review assignments.Open a record in a plugin panel, save an edit to its source file, and stage a focused writing or checking prompt in an agent terminal.
Data workbenchBrowse local datasets and compare generated reports without remembering file paths and command flags.Launch validation or transformation jobs, stream progress, and preserve a panel's selected dataset and filters across remounts.
Service environment boardShow health and configuration for the services this project needs.Start managed child processes, link to their existing browser interfaces, and connect to a team API for remote status.
Agent review queueCombine the project's worktree snapshots and changed-file counts into a queue for a human reviewer.Open relevant panels through host actions and send prepared context to the project's active agent. Treat observed agent state as a hint, never proof a task passed.
Customer or operations consoleA project-specific interface over an API your team already owns.Add scoped credentials, local preferences, and explicit confirmation for mutations. The backend continues to authorize every operation.

The key question is whether an interface would save people repeatedly reconstructing the same context. A button that runs one stable command may belong in a recipe. A release that involves inspecting several artifacts, comparing states, and choosing a next action can justify a plugin.

Build a small platform in layers

  1. Make the state visible. Start with one panel showing real project data. Read through host.fs, host.git, or a service you control. Prefer getWorktreesResult() when an unavailable project must be distinguished from an empty one.
  2. Add useful actions. Declare commands in the manifest so they can trigger lazy activation, then register their handlers in activate(). Give a navigation command requires: []; declare the actual capabilities used by a mutation.
  3. Keep people oriented. Use toolbar buttons or context menus for frequent entry points. A file-oriented command can open the panel with initialArgs; use the panel's worktreeId to preserve its actual context.
  4. Persist the right information. Put shared defaults in project settings, machine-specific paths in local settings, private working state in storage, and small view preferences in persistState.
  5. Give the project a starting screen. Once the tool is useful, a project surface can make it the first thing people see: on the empty canvas, as a project Home beside the grid, or in place of the New worktree dialog.

A panel communicates with its worker through registered channels. Pull initial state when the view mounts, then subscribe to updates. Pushes are not buffered: broadcasting during activation alone does not initialize a view that has not mounted yet. Keep long-running jobs in the worker, with cleanup tied to their actual lifetime.

What project scope supports

Project plugins can contribute, among others, commands, panels, views, toolbar buttons, context menus, keybindings, settings, launch entries, layouts, search providers, agent MCP tools, databases, skills, recipes, prompt templates, terminal links, context providers, worktree setup steps, worktree delete notes, setup checklists, file decorations, view-backed file editors, element picker providers, services for other plugins, tours, and surfaces. The host routes those contributions to the owning project's renderers and sessions, and removes them while the plugin is off or the folder is untrusted. A background plugin cannot accidentally dispatch its action or show its prompt in a different project merely because focus changed.

The schema rejects menuItems, agents, processTools, themes, and forgeProviders in project plugins, along with mcpServers unless an agentMcp endpoint bridges each one. Those groups register into app-wide registries with no project axis: one application menu, one agent roster and process-detection table shared by every terminal, one app theme, and a forge contract the plugin worker cannot carry. cloudProviders, canopyViews, and projectTemplates are rejected for their own reasons: a repository must never add something that creates machines on your account, Canopy belongs to no project, and a template is offered before any project exists. A file editor backed by a built-in slot is refused for every plugin but a built-in one. The same rejections apply to an installed package that declares "instanceMode": "project". A project plugin can still use supported host APIs to observe agents, send input with consent, or manage child processes; those are different from contributing a new app-wide agent or MCP server.

A project plugin can also declare itself the project's application with the top-level application block: a name and icon, whether the project opens on its Home or the grid, and the ids of the sidebar view, settings view, welcome tour, first workflow command, and agent tools it already contributes. Only one plugin per project may declare one. See the manifest reference.

The manifest schema gives the exact accepted fields and explains each project-scope rejection. The contribution reference maps the complete extension surface.

Data and agent tools

A project plugin can declare SQLite databases alongside its files and serve its own tools to agents with agentMcp. The user chooses Off, Read only, or Read and write for that plugin in Project settings > Plugins > Agent tools. Trusting the plugin folder does not grant tool access. See databases and agent tools. The ledger sample demonstrates this combination; it is an authoring sample, not a bundled project application.

The project root is the load boundary

Daintree scans the registered project's root, not each worktree under it. A plugin authored in an agent's separate worktree does not replace the version running from the root checkout. Bring the reviewed change into that checkout before expecting its plugin to load there. Merely selecting the agent's worktree is insufficient.

The load contract is plugin.json plus the compiled files it names, normally under dist/. Daintree never runs npm install, a package script, or a compiler when opening the project. A checkout must therefore include all required runtime output. Rebuild and commit it with the source change.

Note
The CLI, scaffolder, SDK, and Vite preset are published on npm as 0.1.0. Newer contracts need the current source toolchain. Small ESM plugins can also use the host-served view hooks and UI kit without a build. Building Project Plugins covers both paths and how to verify that another clone will work.

Trust and operating the tool

Repository plugins start disabled. A trust banner offers session-only or remembered enabling. Existing trusted plugins reload after changes to their manifest or output without asking again; a previously unseen manifest id is staged for explicit activation. Review plugin changes as executable code, including changes made by agents.

Use Project settings → Plugins to inspect the project folder, manage trust, change settings, reload, or turn an individual project plugin off with Run here. The installed-plugin control Show here only changes which UI contributions appear in this project; it leaves that global plugin running. See Project Plugin Trust & Management for the distinction.

Source reading map

The links below are pinned to the implementation reviewed on October 13, 2026, except Request Desk, which is newer and pinned to the November 2026 revision. Start with the public contract, then read the implementation or tests for the behavior you are building against.

  • Plugin types and host API: identity, panels, actions, storage, and project contribution contracts.
  • ProjectPluginController: discovery reconciliation, trust, staging, muting, and teardown.
  • PluginHostFactory and its binding tests: which project a host call reaches.
  • Sample plugins: existing implementations to inspect and adapt. Samples have different scopes; copying an installed manifest into a project requires changing its scope and removing unsupported contributions.
  • Request Desk: the maintained reference project application, with a project Home, databases, agent tools, a setup step, and a tour. The source CLI's app template copies it.