CrewCode plugins are local-first extensions loaded from ~/.crewcode/plugins. Community plugins can also be staged from public HTTPS Git repositories, reviewed at a pinned commit, and installed without executing repository scripts. The current v0 contract is documented in docs/plugins.md; this file is the shorter implementation snapshot.
Status (pre-v1): The v0 contract has stabilized. The CLI (
crewcode plugin create/dev/package) andpackages/crewcode-plugin-apiare both built and tested — seedocs/plugins.mdfor their documented behavior. The only remaining gates before the v1 bump are operational, not code: publishcrewcode-plugin-api+crewcode-plugin-clito npm
A no-build plugin folder contains a checked manifest and static UI assets:
~/.crewcode/plugins/codebase-graph-lite/
crewcode.plugin.json
panel.html
crewcode-plugin-api.js
plugin.jsA bundled TypeScript/React plugin is authored in src/, built to static assets, and points its manifest entry at the built HTML file. CrewCode does not import plugin React components into the trusted renderer.
Plugin UI runs in a sandboxed iframe. It does not receive window.electronAPI.
plugin iframe
-> postMessage request
-> trusted renderer forwarder
-> main-process plugin permission gate
-> approved CrewCode capabilityThe manifest currently supports tabs, sidebar panels, status items, editor/chat/header actions, commands, MCP server declarations, agent providers, git lenses, mission widgets, terminal watcher actions, and browser toolbar actions. See schemas/crewcode.plugin.schema.json for the exact checked shape.
The iframe permission gate currently supports:
workspace:listFiles— requiresworkspace:readworkspace:readFile— requiresworkspace:readworkspace:writeFile— requiresworkspace:write
network:fetch and secrets:get are reserved and denied from plugin iframes. Agent provider runtimes are the current safe path for brokered network/CLI execution. Remote SSH workspaces are intentionally denied until the remote backend gets plugin-safe routes.
No-build plugins include crewcode-plugin-api.js, the canonical browser helper from packages/crewcode-plugin-api/browser:
<script src="crewcode-plugin-api.js"></script>
<script src="plugin.js"></script>Bundled plugins import or vendor the typed source contract from packages/crewcode-plugin-api:
import { crewcode } from 'crewcode-plugin-api'The API exposes crewcode.apiVersion, context listeners, workspace methods, and reserved network/secrets namespaces.
The stabilization work below is done: tab lifecycle/restore, permission naming and denial messages, remote-workspace denial, schema/permission/protocol test coverage, and dogfooding across no-build, bundled, provider, MCP, browser, and git-lens plugins. The crewcode CLI ships create/dev/package.
Still open before the v1 bump:
- Publish
packages/crewcode-plugin-apito npm so bundled plugins canimport { crewcode } from 'crewcode-plugin-api'without vendoring. - Publish
packages/crewcode-plugin-clito npm so authors can runcrewcode plugin ....
Marketplace, signing, hosted registries, and package review remain out of scope.