# opencode · Specialist definition

> 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: [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) (Specialist collaboration)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/opencode/specialist-definition

## Rationale

Config/.md agents set model, prompt, permission rules; L4 unmet: parent agent denies not intersected (plan→general edits)

## Rubric criteria for this column

- 0: No subagents or specialists
- 1: Subagents exist only as example code, or as ad hoc spawns with task text and no definition
- 2: Built-in subagents configurable by prompt or model, but tool and permission scope cannot be set per specialist
- 3: Declarative definitions (file or config) set prompt, model **and** tool scope per specialist
- 4: Level 3, plus an enforced rule that a child cannot exceed the parent's authority (permissions/sandbox intersect or inherit-only), with no default path that widens it

## Review finding

Built in. Agent records (model, prompt/instructions, mode, steps, ordered permission rules) come from config, agent `.md` files or plugins; built-ins are `general` and `explore`. Permission rules double as tool scoping. A child gets its own agent's rules plus the parent session's permissions; the parent *agent's* denies are not intersected [C95]–[C98]; Note C-7.

## Evidence cited by the mark

- [C95] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/schema/src/agent.ts#L21-L63 — Agent Info fields and default permission rules — [S]
- [C97] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/session.ts#L325-L328 — Children inherit parent session `metadata` and `permissions` — [S]
- [C98] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/plugin/plan.ts#L11-L35 — `plan` denies edit (except plan dir); "do not ask a subagent" is prompt text only — [S]

## Grading record

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