Harness Notes

Plugin formats

Updated 2026-11-25,

On this page

Plugin manifests, component layouts and distribution formats checked November 16, 2026. Agent Plugins 1.0 is the published portable format for skills and MCP; 1.1 portable hooks remain a working draft. Vendor formats and executable extensions have separate contracts. Source inspection and documentation review do not establish runtime conformance.

QuestionOpenCodechecked at 2.3.0
Manifest and format

2.3.0 loads executable npm or local modules. package.json exports resolve ./server then the root for server code, with separate ./tui, ./rpc and ./gui-experimental parts. Conventional directory filenames apply when exports are absent; this is not a vendor plugin.json layout.

Required and optional fields

Config uses plugins entries as strings or {package, options}. A server module default export has id plus effect or setup; setup may return cleanup. package.json name and exports control part resolution. TUI/GUI-only modules have different activation boundaries.

Components and default layout

Server modules can register tools, skills, agents, commands, providers and MCP behavior through host APIs. TUI, RPC and experimental GUI have separate package entrypoints. Config roots discover plugin/ and plugins/ directories and legacy .ts/.js files. SDK and instance plugins are contributed in code.

Paths and variables

Configured relative or file:// paths resolve from the config document; explicitly configured local files are skipped because a directory is required. Auto-discovered legacy files remain accepted. Module imports and package exports resolve executable dependencies, rather than plugin-relative JSON component paths.

MCP configuration

Executable plugins receive MCP and other host APIs; MCP configuration/registration is separate from a portable root mcp.json package. Runtime contributions can supply custom behavior, so a filesystem scan alone cannot bound all hosts.

Distribution and marketplaces

npm package targets resolve/install through the module loader; local directories resolve package parts. Internal, configured, SDK and instance generations are assembled by the supervisor, then activated by plugin identity. This audit does not establish a portable marketplace catalog format. From 2.4.0, plugin specs using @latest, a version range, a Git branch or a Git semver range update at startup and every 24 hours. A failed reload keeps the previous version running. Bare names, exact versions, other dist-tags, Git tags and commit pins support manual update.

Compatibility and verification limits

Partly

Keep 2.3.0 module objects and plugins configuration separate from historical 1.x named function exports and singular plugin configuration. Root Agent Plugins package support remains unknown here; SDK contribution hooks mean module discovery is not the entire host surface.

Commands

From your shell

Commands you run in a terminal or script, outside a session.

TaskOpenCode 2.xchecked at 2.0.28
Set up
Install

opencode plugin add <package>

Install a plugin package and add it to the global configuration.

1 note

Accepts npm names with versions or ranges, and Git specs.

Use
List

opencode plugin list [--builtin]

List plugins, optionally including built-in ones.

Show details

opencode plugin check [<target>]

Check package plugins for available updates.

1 note

Read-only.

Change
Update

opencode plugin update [<target>]

Update one or all outdated package plugins.

Remove
Remove

opencode plugin remove <package>

Remove a plugin from the global configuration.

Inside a session

Slash commands you type into an open session.

TaskOpenCode 2.xchecked at 2.0.28
Use
Open the manager

/plugins

Switch plugins on or off, check for and apply updates, and view errors.

Notes and sources

OpenCode, 8 sources
Manifest and format, 2
Required and optional fields, 3
Components and default layout, 5
Paths and variables, 2
MCP configuration, 2
Distribution and marketplaces, 3
Compatibility and verification limits, 2