# opencode · Reusable computation

> 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: [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) (Programmable capabilities)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/opencode/reusable-computation

## Rationale

Default-on automations re-run code/shell on triggers with runCount/lastOutput; args untyped JSON (level 4 unmet)

## Rubric criteria for this column

- 0: Nothing persists between runs except the transcript
- 1: Reuse only as prose instructions (skills or prompts without executable parts) or in-memory state within one session
- 2: Persisted executable artifacts (skills with scripts, saved programs) rediscovered in later sessions, but no way to invoke them as a unit with inputs
- 3: Level 2, plus a supported way to re-run a stored program or workflow as a unit (recipe, scheduled action, saved script by path, granted program)
- 4: Level 3, plus typed parameters and a recorded result or journal per run, **and** scheduled or triggered execution

## Review finding

Built in. Automations are SQLite rows on by default (`automations: false` disables them). Each runs a prompt, shell command or Code Mode program on a timer, cron, one-shot or MCP-event trigger; code actions are capped at 30 s and 32 KiB of output. Skills, commands and plugins give file-based reuse. Code Mode calls are not stored otherwise. [P82][P83][P84] Note P-7

## Evidence cited by the mark

- [P82] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/schema/src/automation.ts — Automation triggers at/every/cron/event; actions prompt/code/shell; target session or fresh subagent — [S]
- [P83] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/automation.ts#L305-L312 — `automations` config defaults to true — [S]
- [P84] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/automation/code.ts#L18-L23 — Automation code actions: 30 s timeout, 32 KiB output — [S]

## Grading record

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