# goose vs opencode

> 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.

Page: https://ai-agents-review.com/compare/goose-vs-opencode

## Programmable capabilities

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [2 s](https://ai-agents-review.com/cell/goose/capability-interface.md) | [4 s](https://ai-agents-review.com/cell/opencode/capability-interface.md) | yes |
| [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) | [3→4 [opt: goose serve --enable-scheduler] s](https://ai-agents-review.com/cell/goose/reusable-computation.md) | [3 s](https://ai-agents-review.com/cell/opencode/reusable-computation.md) | yes |
| [Capability transfer](https://ai-agents-review.com/column/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/goose/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/opencode/capability-transfer.md) | no |

## Evidence and memory

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/goose/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/opencode/durable-evidence.md) | no |
| [Context recovery](https://ai-agents-review.com/column/context-recovery.md) | [2 s](https://ai-agents-review.com/cell/goose/context-recovery.md) | [2→3 [dev-only: sqlite_fts flag] s](https://ai-agents-review.com/cell/opencode/context-recovery.md) | yes |
| [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) | [0→2 [opt: bundled memory MCP server] s](https://ai-agents-review.com/cell/goose/memory-maintenance.md) | [0→1 [dev-only: home_memory] s](https://ai-agents-review.com/cell/opencode/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) | [3 s](https://ai-agents-review.com/cell/goose/specialist-definition.md) | [3 s](https://ai-agents-review.com/cell/opencode/specialist-definition.md) | no |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [3 s](https://ai-agents-review.com/cell/goose/continuation.md) | [4 s](https://ai-agents-review.com/cell/opencode/continuation.md) | yes |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [3 s](https://ai-agents-review.com/cell/goose/coordination.md) | [2 s](https://ai-agents-review.com/cell/opencode/coordination.md) | yes |

## Execution controls

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [0→2 [opt: --container (stdio/goose-mcp extensions only)] s](https://ai-agents-review.com/cell/goose/confinement.md) | [1 s](https://ai-agents-review.com/cell/opencode/confinement.md) | yes |
| [Credential handling](https://ai-agents-review.com/column/credential-handling.md) | [1 s](https://ai-agents-review.com/cell/goose/credential-handling.md) | [1 s](https://ai-agents-review.com/cell/opencode/credential-handling.md) | no |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1→2 [opt: lower GOOSE_MAX_TURNS] s](https://ai-agents-review.com/cell/goose/budget-enforcement.md) | [1→2 [opt: per-agent steps] s](https://ai-agents-review.com/cell/opencode/budget-enforcement.md) | no |

## Product integration

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/goose/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/opencode/embedding-interfaces.md) | no |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [1 s](https://ai-agents-review.com/cell/goose/declarative-configuration.md) | [2 s](https://ai-agents-review.com/cell/opencode/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [2 s](https://ai-agents-review.com/cell/goose/durable-execution.md) | [4 s](https://ai-agents-review.com/cell/opencode/durable-execution.md) | yes |

## Operations and verification

| Column | goose | opencode | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [E (+R opt: goose serve) s](https://ai-agents-review.com/cell/goose/service-dependencies.md) | [R (+E alt: in-process SDK) s](https://ai-agents-review.com/cell/opencode/service-dependencies.md) | yes |
| [Execution records](https://ai-agents-review.com/column/execution-records.md) | [2 s](https://ai-agents-review.com/cell/goose/execution-records.md) | [3 s](https://ai-agents-review.com/cell/opencode/execution-records.md) | yes |
| [Result checks](https://ai-agents-review.com/column/result-checks.md) | [3 s](https://ai-agents-review.com/cell/goose/result-checks.md) | [3 s](https://ai-agents-review.com/cell/opencode/result-checks.md) | no |

## Rationales

### Capability interface

- goose: Extensions are MCP servers (plugins bundle MCP); platform extensions compiled in; one mechanism, so L3 unmet
- opencode: Plugins (npm/local/SDK) plus MCP; denied/hidden filtering; SDK plugins host-executed in-process; Code Mode defers catalog by default

### Reusable computation

- goose: Recipes re-run as unit with typed parameters, each run a session; cron scheduling only with --enable-scheduler
- opencode: Default-on automations re-run code/shell on triggers with runCount/lastOutput; args untyped JSON (level 4 unmet)

### Capability transfer

- goose: Git-cloned plugins and shared skill dirs; binaries not bundled and no dependency check found (level 3 unmet)
- opencode: Skills from dirs/paths/URLs; session fork exists; plugin/MCP executables not dependency-checked (level 3 unmet)

### Durable evidence

- goose: Full messages in sessions.db; no retention policy; replace/retry delete rows (level 3 unmet)
- opencode: Messages with tool parts in SQLite; revert deletes rows; no message retention policy (level 3 unmet)

### Context recovery

- goose: Compacted rows stored agent-invisible; chatrecall off, LIKE search, first/last 3 messages. unresolved: compacted-row visibility
- opencode: Release: summary plus re-reading saved tool-output paths; session search/read only under sqlite_fts

### Memory maintenance

- goose: No default memory facility shown; opt memory server gives remember/retrieve/remove; no consolidation (level 3 unmet)
- opencode: Release: none. Dev home_memory uses plain dirs edited with file tools (L2 unmet), so its daily merge job cannot lift it past 1 (rule 3)

### Specialist definition

- goose: Recipes set instructions, model, extension set; L4 unmet: recipe extensions not intersected with parent's, only goose_mode copied
- opencode: Config/.md agents set model, prompt, permission rules; L4 unmet: parent agent denies not intersected (plan→general edits)

### Continuation

- goose: Persisted SubAgent session resumable via delegate(resume) incl. after restart; L4 unmet: no durable queue for busy child
- opencode: Durable child session resumed at boot; follow-ups to running child go through SQLite session_inbox (read in code)

### Coordination

- goose: Depth 1 hard, 5 concurrent, shared cancel token; L4 unmet: no peer messaging, no tree-wide budget (separate max_turns)
- opencode: Depth 1 enforced, per-job cancel; L3 unmet: no subagent concurrency cap found (Code Mode caps dev-only, codemode only)

### Confinement

- goose: Default Auto allows all calls, no OS boundary; --container confines only a subset, developer shell/edit stay on host
- opencode: Allow/ask/deny ruleset (allow *, *.env ask); no OS sandbox in release or dev builds

### Credential handling

- goose: Keychain option exists, but shell/hooks/stdio inherit full env; L2 unmet: no default env denylist
- opencode: Full env inherited, plaintext credential DB; only *.env read-tool ask and host per-session env replacement

### Budget enforcement

- goose: Default 1000-turn ceiling is coarse (L1); a practical turn cap via the named setting is a level-2 work limit (R3)
- opencode: steps unset by default, cost reporting only; setting the named per-agent steps key gives a level-2 work limit (R3)

### Embedding interfaces

- goose: ACP over stdio and HTTP+WS, with typed session updates, new/prompt/cancel/load, and `request_permission` approvals to the client
- opencode: In-process SDK plus HTTP API with typed events, prompt/interrupt/fork/inbox, permission replies and an ACP agent, all in release

### Declarative configuration

- goose: Free-form YAML, keys read ad hoc, unknown keys silently ignored; only a few keys parse strictly. No general type validation
- opencode: Effect Schema type decode, but `onExcessProperty: "ignore"`; a malformed document is dropped with a warning

### Durable execution

- goose: Second run rejected, steps persisted. An interrupted turn is lost except confirmation-paused ones, so level 3 detect/close-out is unmet
- opencode: Durable inbox outlives disconnect; one execution per session; boot sweep resumes claims, documented as at-least-once

### Service dependencies

- goose: CLI is one process with embedded SQLite and stdio MCP children; `goose serve` stays resident
- opencode: Clients ensure a local `opencode serve --service` process that stays resident when idle

### Execution records

- goose: Transcript with error messages and optional OTel; whether aborts are structured events is unresolved, so the lower level is kept
- opencode: Typed step/tool/execution failure events, optional OTLP. Revert and delete remove rows, so not protected

### Result checks

- goose: Recipe `retry.checks` retry up to `max_retries`, then emit an error (fails closed). No default verifier, so not level 4
- opencode: Built-in `/goal` judge re-prompts with stated caps (50 rounds, 3 stalls) and pauses; the caps are constants, not configurable per check
