Harness Notes

Plugin formats

Updated 2026-11-22

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.

QuestionCodex CLIchecked at 0.169.0Claude CodeCursor AgentOpenCodechecked at 2.3.0pichecked at 1.5.2Antigravity CLIchecked at 1.5.14
Manifest and format

Root plugin.json selects Agent Plugins 1.0.0 by canonical $schema. Otherwise Codex checks .codex-plugin/plugin.json, .claude-plugin/plugin.json, then .cursor-plugin/plugin.json. An unsupported Agent Plugins schema is selected then rejected, rather than silently falling back.

.claude-plugin/plugin.json is optional when the standard component layout is enough. Without it, the name comes from the marketplace or --plugin-dir directory. Other assets stay at the plugin root, outside .claude-plugin/.

Two documented formats: root plugin.json for Agent Plugins, or required .cursor-plugin/plugin.json for native Cursor Plugins. The reference describes Cursor IDE bundles; Agent CLI parity is not established.

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.

Pi packages use package.json with an optional pi resource manifest. Without explicit resource arrays, conventional directories supply extensions, skills, prompt templates and themes. A metadata-only pi object keeps conventional discovery.

Use plugin.json at the root or .antigravity-plugin/plugin.json. The subdirectory manifest wins if both exist.

Required and optional fields

Portable: required $schema and name; optional version, description, author, homepage, repository, license, keywords and extensions. Codex reads apps, hooks, interface and onboarding from extensions.com.openai; an inline object replaces the whole .codex-plugin/plugin.json overlay. Legacy fields also include skills and mcpServers; a blank legacy name falls back to the directory name.

When present, name is required. Optional identity, listing, version, dependency and userConfig fields accompany component keys. $schema is for editors and ignored at runtime. Advanced keys include types, channels, workflows and experimental themes/monitors/evals. Unknown fields are stripped with warnings.

Native Cursor requires name. Optional metadata plus rules, agents, skills and commands paths; hooks path/object; mcpServers path/object/array; variables JSON Schema. Portable manifests instead require the standard $schema and name and put host data under extensions.

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.

pi.extensions, pi.skills, pi.prompts and pi.themes are optional resource arrays. Package metadata includes changelogPath and gallery image/video; npm keyword pi-package enables gallery discovery. Ordinary package.json dependencies supply runtime imports.

Google requires a kebab-case name for CLI install and strict validation. Direct folder loading can infer a name. Marketplace metadata has additional requirements.

Components and default layout

Partly

Portable components are fixed at skills/<skill>/SKILL.md and mcp.json; skill discovery is direct children only. Legacy packages use recursive skill roots, .mcp.json, hooks/hooks.json and .app.json, with manifest overrides. Parsing portable hooks does not make them active: the local loader explicitly skips them.

Default layout includes skills/, commands/, agents/, hooks/hooks.json, .mcp.json, .lsp.json, output-styles/, workflows/, themes/, monitors/monitors.json and evals/. Top-level bin/ exposes executables on Bash PATH; claude.ai and Cowork reject packages containing it. Plugin-root CLAUDE.md is not loaded as instructions.

Native defaults: skills/, rules/, agents/, commands/, hooks/hooks.json and mcp.json. Root SKILL.md is a single-skill fallback only without skills/ or an explicit skills field. Explicit fields replace automatic discovery for that component. Agent Plugins supports portable skills and MCP.

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.

Default extensions/, skills/, prompts/ and themes/ package executable TS/JS extensions, Agent Skills, Markdown templates and JSON themes. Extensions register event handlers and tools in process. The package manifest itself is a resource selector.

Packages can bundle skills, rules, subagents, MCP servers, lifecycle hooks and sidecars.

Paths and variables

Manifest component paths resolve from the plugin root and require ./. Portable stdio args/env/cwd expand ${PLUGIN_ROOT} and ${PLUGIN_DATA}; command is one executable token or a contained ./ executable path. Treat compatibility path handling separately from portable MCP containment.

Component paths require ./, must exist and stay inside the plugin. skills additionally permits the root as .; mcpServers permits HTTPS bundle URLs. skills paths add to defaults; commands/agents/styles/workflows replace defaults; hooks/MCP/LSP merge. ${CLAUDE_PLUGIN_ROOT}, ${CLAUDE_PLUGIN_DATA} and ${CLAUDE_PROJECT_DIR} expand only in documented fields; they are not automatically present in model Bash commands.

Partly

Native hooks document ${PLUGIN_ROOT}; Agent Plugin MCP instead documents ${CURSOR_PLUGIN_ROOT} and ${CLAUDE_PLUGIN_ROOT} for command/args/env/cwd, and explicitly does not expand standard ${PLUGIN_ROOT} or ${PLUGIN_DATA} there. Keep these component contexts separate. Native variables declares names/types while values live in the dashboard.

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.

Resource paths resolve relative to the package root, with globs and exclusions. Exact dot-prefixed/symlinked roots can be listed explicitly. User/project resource filters narrow the package manifest; they cannot expose resources the package did not declare.

Place components relative to the plugin root, including when the manifest is in .antigravity-plugin. The validator counted a root skill in that layout.

MCP configuration

Partly

Portable mcp.json requires its 1.0.0 $schema and mcpServers. Codex normalizes stdio and streamable-http entries; legacy SSE entries are rejected individually. An invalid server does not discard valid sibling servers. Legacy mcpServers accepts a path or inline object and defaults to .mcp.json.

.mcp.json merges with manifest mcpServers, which accepts paths, inline server maps or arrays. Referenced .mcpb/.dxt bundles are also supported. Later declarations replace earlier servers of the same name. This differs from fixed portable mcp.json and its transport schema.

Partly

Native mcp.json auto-discovers servers; manifest mcpServers overrides discovery with custom paths or inline maps. Portable mcp.json uses the Agent Plugins schema. The documented root/data variable gap limits portability; avoid assuming identical expansion across hooks and MCP.

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.

Not documented

This audit covers Pi resource packaging and extension loading; it does not establish a portable root mcp.json or package-level MCP manifest contract. Extension or host MCP APIs require their own trace.

Use mcp_config.json for local stdio or remote HTTP servers. A plugin can declare variables and OAuth. Google documents disabled-until-configured behavior for plugins that need variables.

Distribution and marketplaces

Marketplace lookup includes .agents/plugins/marketplace.json, .agents/plugins/api_marketplace.json, .claude-plugin/marketplace.json and .cursor-plugin/marketplace.json. Local, Git and npm source kinds exist. Marketplace identity, source and install/auth policy are distinct from the plugin manifest; remote curated installs have additional routing policy.

Marketplaces use .claude-plugin/marketplace.json with name, owner and plugins; entries select plugin sources and may supplement component declarations. Entry/manifest merging and strict behavior have their own rules. Use claude plugin validate for the package and marketplace rather than treating their schemas as interchangeable.

Multi-plugin Git repositories use .cursor-plugin/marketplace.json with required name, owner and plugins. Per-plugin manifests override marketplace entry values when merged. metadata.pluginRoot can prefix source paths; marketplace files are capped at 10 MB.

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.

Pi packages can be installed from npm, Git or local paths, in personal/project configuration. Identity is npm package name, Git repository URL without ref, or resolved local path. A normal project entry replaces personal configuration; autoload:false instead applies a filtering delta.

CLI installation supports local packages, repository URLs, and the official marketplace. agy plugin validate checks packages without installing them.

Compatibility and verification limits

Partly

The local session and App Server watcher call the shared PluginsManager loader. Executor-owned roots use a separate provider. Codex can read compatibility manifests without implementing every Claude/Cursor component. Packaging docs describe OpenAI hooks, while the pinned local Agent Plugins loader skips them; desktop and hosted import behavior remain separate and unprobed.

Packaging documentation: https://developers.openai.com/plugins/build/plugins

Partly

Claude Code packages use their own component paths, merge rules, variable names and execution APIs. A manifest accepted by Codex compatibility parsing does not carry every Claude component across. Root Agent Plugins support is unknown in this audit; no cross-host execution probe ran.

Partly

Documented Agent Plugins loading covers skills and MCP, while the native Cursor format includes more components. The standard MCP variable gap is recorded explicitly. Neither marketplace acceptance nor compatibility metadata proves CLI, cloud or cross-host runtime conformance.

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.

Partly

Pi extension code and its event/UI APIs are host-specific. Reusing a SKILL.md directory does not transfer extension behavior, package identity or user/project filter semantics. Agent Plugins loading remains unestablished by this audit.

Partly

CLI 1.5.14 recognized a fixture declaring the Agent Plugins 1.0.0 schema. The validator reports an enable-agent-plugins-spec gate. Actual gated loading and host availability remain untested.

Commands

From your shell

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

TaskCodex CLIchecked at 0.162.1Claude Codechecked at 2.1.296Cursor Agentchecked at 2026.10.12-d47ca18OpenCode 2.xchecked at 2.0.28pichecked at 1.2.0Antigravity CLIchecked at 1.5.14
Set up
Install

codex plugin add <PLUGIN[@MARKETPLACE]>

Install a plugin from a configured or remote marketplace.

1 note

-m/--marketplace when the selector has no @MARKETPLACE; --json.

claude plugin install [options] <plugin>

also claude plugin i <plugin>

Install a plugin from an available marketplace.

2 notes

--marketplace <source> adds the marketplace first (2.1.292+). --config sets options, including <server>.<key>=<value>.

--json prints one result line; --accept-command <sha256> accepts exactly the displayed marketplace command; -y is required without a TTY.

—

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.

pi install <source> [-l]

Install a package and add it to settings.

1 note

Sources: npm:, git:, HTTPS or SSH URLs, or a local path. Packages run extension code; project packages load only after trust.

agy plugin install <target>

Install a plugin. A marketplace plugin can be written as plugin@marketplace.

Create a new one—

claude plugin eval init [name]

Write a plugin eval suite through an interview.

1 note

--bare <name> writes a blank single-case template instead.

claude plugin init <name>

also claude plugin new <name>

Create a plugin at ~/.claude/skills/<name>/, loaded next session.

————
Configure—

claude plugin configure [--json] [--values-stdin] <plugin>

Show a plugin's options and which are unset, or save values read from stdin.

1 note

Added in 2.1.285. Takes the qualified name@marketplace id.

————
Use
Open the manager————

pi config [-l]

Open a panel to enable or disable package resources and built-in extensions.

1 note

Tab switches between global and project scope.

—
List

codex plugin list

List plugins from configured and remote marketplaces.

1 note

-m filters by marketplace; --available adds uninstalled plugins and requires --json.

claude plugin list [--json] [--available] [--data-size [plugin]]

List installed plugins, optionally with available ones and data sizes.

1 note

--available and --data-size require --json.

—

opencode plugin list [--builtin]

List plugins, optionally including built-in ones.

pi list

List installed packages from user and project settings.

agy plugin list [--json]

List installed plugins, optionally as JSON.

Show details—

claude plugin details <name>

Show a plugin's components and projected token cost.

—

opencode plugin check [<target>]

Check package plugins for available updates.

1 note

Read-only.

——
Validate—

claude plugin validate [--json] [--strict] <path>

Validate a plugin or marketplace manifest, or a directory's skills, agents and commands.

———

agy plugin validate [target] [--strict] [--json]

Validate plugin files and manifest. Help lists directories, ZIP files, URLs and marketplaces.

Evaluate—

claude plugin eval [options] [target]

Run and score a plugin's eval cases against a no-plugin baseline.

2 notes

Asks for confirmation in an untrusted plugin directory; --trust-plugin answers for CI. Scaffold scripts and real MCP servers start only on opt-in and run outside the sandbox.

-j/--concurrency runs up to 8 agent runs at once on your credential.

claude plugin test [dir]

Run a mod's *.test.ts files in a hook-like environment.

1 note

Needs no session, sign-in or network; exits 1 on failure.

————
Change
Enable————

agy plugin enable <name>

Enable an installed plugin.

Disable————

agy plugin disable <name>

Disable an installed plugin.

Update—

claude plugin update [options] <plugin>

Update a plugin to its latest version; restart to apply.

—

opencode plugin update [<target>]

Update one or all outdated package plugins.

pi update (<source> | --extensions | --all)

Update one or all installed packages, optionally with pi itself.

1 note

A bare pi update updates pi only. Pinned versions and Git refs are not moved.

—
Tag a release—

claude plugin tag [options] [path]

Create a {name}--v{version} Git tag after checking the manifest.

————
Remove
Remove———

opencode plugin remove <package>

Remove a plugin from the global configuration.

pi remove <source> [-l]

also pi uninstall <source>

Remove a package and its entry from settings.

—
Uninstall

codex plugin remove <PLUGIN[@MARKETPLACE]>

Uninstall a plugin and remove its local cache.

1 note

-m/--marketplace; --json.

claude plugin uninstall [options] <plugin>

also claude plugin remove <plugin>

Uninstall a plugin from a scope.

1 note

Deletes the plugin's data unless --keep-data; --prune also removes orphaned dependencies.

———

agy plugin uninstall <name>

Uninstall an installed plugin.

Clean up unused—

claude plugin prune [--dry-run] [-s <scope>] [-y]

also claude plugin autoremove

Remove automatically installed dependencies that are no longer needed.

————

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1Claude Codechecked at 2.1.296Cursor Agentchecked at 2026.10.12-d47ca18OpenCode 2.xchecked at 2.0.28pichecked at 1.2.0Antigravity CLIchecked at 1.5.14
Use
Open the manager

/plugins

Open the plugin browser to review, install, uninstall, enable or disable plugins.

1 note

The shell CLI has no enable or disable command; only this browser can toggle a plugin.

/plugin [subcommand]

also /plugins

Open the plugin panel, or run a subcommand against it.

1 note

Interactive terminal only. Subcommands include list, install, manage, stats, enable, disable, uninstall, configure, validate, tag and marketplace.

/plugin

also /plugins

View installed plugins, browse marketplaces, and install or uninstall plugins.

1 note

Install and uninstall happen in the panel; there is no shell plugin install command.

/plugins

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

——
Change
Reload—

/reload-plugins [--force]

Apply pending plugin changes without restarting.

1 note

Skips a reload that would invalidate the prompt cache unless --force.

——

/reload

Reload keybindings, extensions, skills, prompt templates, themes and context files.

—

Notes and sources

Codex CLI, 14 sources
Manifest and format, 2
Required and optional fields, 3
Components and default layout, 2
Paths and variables, 2
MCP configuration, 2
Distribution and marketplaces, 2
Compatibility and verification limits, 5
Claude Code, 2 sources
Manifest and format, 1
Required and optional fields, 1
Components and default layout, 1
Paths and variables, 1
MCP configuration, 1
Distribution and marketplaces, 2
Compatibility and verification limits, 1
Cursor Agent, 1 source
Manifest and format, 1
Required and optional fields, 1
Components and default layout, 1
Paths and variables, 1
MCP configuration, 1
Distribution and marketplaces, 1
Compatibility and verification limits, 1
OpenCode, 7 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, 2
Compatibility and verification limits, 2
pi, 5 sources
Manifest and format, 3
Required and optional fields, 2
Components and default layout, 2
Paths and variables, 2
MCP configuration, 1
Distribution and marketplaces, 1
Compatibility and verification limits, 2
Antigravity CLI, 3 sources
Manifest and format, 2
Required and optional fields, 1
Components and default layout, 1
Paths and variables, 2
MCP configuration, 1
Distribution and marketplaces, 2
Compatibility and verification limits, 2