# opencode · Capability interface

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [opencode](https://ai-agents-review.com/runtime/opencode.md)
- Column: [Capability interface](https://ai-agents-review.com/column/capability-interface.md) (Programmable capabilities)
- Mark: 4 s
- Default deployment: 4
- Best supported configuration: 4
- Page: https://ai-agents-review.com/cell/opencode/capability-interface

## Rationale

Plugins (npm/local/SDK) plus MCP; denied/hidden filtering; SDK plugins host-executed in-process; Code Mode defers catalog by default

## Rubric criteria for this column

- 0: Fixed built-in tools only. No way to add tools
- 1: Tools can be added only by modifying or recompiling the runtime, or via example code
- 2: One supported extension mechanism (MCP client **or** plugin API **or** host-supplied tools)
- 3: Two or more supported mechanisms (e.g. MCP plus plugins/host tools), with per-agent or per-session filtering of the visible tool set
- 4: Level 3, plus host-supplied tools whose calls are executed by the embedding host through a supported interface, **and** large catalogs can be deferred or searched (e.g. `tool_search`, code mode)

## Review finding

Built in. One registry is fed by built-in plugins, npm or local plugins, SDK plugins and MCP. Tools carry input and output schemas. By default most tools sit behind one Code Mode `execute` tool; denying `execute` exposes them directly. Plugins run in-process, and only `tool.execute.before` can reject a call. [P77][P78][P79][P80][P81]

## Evidence cited by the mark

- [P77] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/tool.ts#L344-L367 — Tool snapshot: hidden/denied dropped; codemode-default tools routed behind Code Mode — [S]
- [P78] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/tool.ts#L543-L545 — `codeModeAvailable` = `execute` not denied (Code Mode on by default) — [S]
- [P79] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/plugin/internal.ts#L209-L283 — Built-in plugin list incl. AutomationTools, subagent, skill, shell — [S]

## Evidence also cited by the review finding

- [P80] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/plugin/hooks.ts#L13-L30 — Hook domains aisdk/session/permission/shell/tool; only tool.execute.before can reject — [S]
- [P81] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/schema/src/mcp.ts#L26-L59 — MCP local (command/cwd/environment) and remote (url, OAuth) server config — [S]

## Grading record

- Grader A (default / best): 4 / 4
- Grader B (default / best): 4 / 4
