# hermes-agent 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/hermes-agent-vs-opencode

## Programmable capabilities

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/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) | [2 s](https://ai-agents-review.com/cell/hermes-agent/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/hermes-agent/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/opencode/capability-transfer.md) | no |

## Evidence and memory

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/opencode/durable-evidence.md) | yes |
| [Context recovery](https://ai-agents-review.com/column/context-recovery.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/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) | [3 s](https://ai-agents-review.com/cell/hermes-agent/memory-maintenance.md) | [0→1 [dev-only: home_memory] s](https://ai-agents-review.com/cell/opencode/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/specialist-definition.md) | [3 s](https://ai-agents-review.com/cell/opencode/specialist-definition.md) | yes |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/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/hermes-agent/coordination.md) | [2 s](https://ai-agents-review.com/cell/opencode/coordination.md) | yes |

## Execution controls

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [1→3 [opt: terminal.backend docker] s](https://ai-agents-review.com/cell/hermes-agent/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) | [2 s](https://ai-agents-review.com/cell/hermes-agent/credential-handling.md) | [1 s](https://ai-agents-review.com/cell/opencode/credential-handling.md) | yes |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1→2 [opt: run_budget_seconds] s](https://ai-agents-review.com/cell/hermes-agent/budget-enforcement.md) | [1→2 [opt: per-agent steps] s](https://ai-agents-review.com/cell/opencode/budget-enforcement.md) | no |

## Product integration

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/hermes-agent/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) | [2 s](https://ai-agents-review.com/cell/hermes-agent/declarative-configuration.md) | [2 s](https://ai-agents-review.com/cell/opencode/declarative-configuration.md) | no |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/durable-execution.md) | [4 s](https://ai-agents-review.com/cell/opencode/durable-execution.md) | yes |

## Operations and verification

| Column | hermes-agent | opencode | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [E+O (+R opt: installed gateway service) s](https://ai-agents-review.com/cell/hermes-agent/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/hermes-agent/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) | [2 s](https://ai-agents-review.com/cell/hermes-agent/result-checks.md) | [3 s](https://ai-agents-review.com/cell/opencode/result-checks.md) | yes |

## Rationales

### Capability interface

- hermes-agent: Plugins plus MCP, toolset filtering, tool_search deferral; host-executed tools not shown. unresolved: host-executed tool interface
- opencode: Plugins (npm/local/SDK) plus MCP; denied/hidden filtering; SDK plugins host-executed in-process; Code Mode defers catalog by default

### Reusable computation

- hermes-agent: Skills with scripts persist; no unit re-run with inputs; execute_code kernel per conversation; cron stores prompts only
- opencode: Default-on automations re-run code/shell on triggers with runCount/lastOutput; args untyped JSON (level 4 unmet)

### Capability transfer

- hermes-agent: Skills-hub install with quarantine; children always fresh, no fork-vs-fresh choice shown (level 3 unmet). unresolved: session fork
- opencode: Skills from dirs/paths/URLs; session fork exists; plugin/MCP executables not dependency-checked (level 3 unmet)

### Durable evidence

- hermes-agent: Configurable retention (auto_prune off); rewind soft-deletes, compaction keeps rows; agent-unalterable records absent (level 4 unmet)
- opencode: Messages with tool parts in SQLite; revert deletes rows; no message retention policy (level 3 unmet)

### Context recovery

- hermes-agent: Default session_search FTS5 search/read over kept compacted rows; no in-tree relevance injection (providers external)
- opencode: Release: summary plus re-reading saved tool-output paths; session search/read only under sqlite_fts

### Memory maintenance

- hermes-agent: Default background review and idle curator archiving; failures swallowed at debug, not retried (level 4 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

- hermes-agent: Model via delegation.model, roles leaf/orchestrator; L3 unmet: no declarative per-specialist tool scope; unresolved: profile-route toolsets
- opencode: Config/.md agents set model, prompt, permission rules; L4 unmet: parent agent denies not intersected (plan→general edits)

### Continuation

- hermes-agent: Child transcripts persist; resumable_subagents rows survive restart (48 h TTL); L4 unmet: no durable child mailbox
- opencode: Durable child session resumed at boot; follow-ups to running child go through SQLite session_inbox (read in code)

### Coordination

- hermes-agent: Depth 1, 10 concurrent, parent interrupt fans out (background units excepted); L4 unmet: no delegate messaging, no tree budget
- opencode: Depth 1 enforced, per-job cancel; L3 unmet: no subagent concurrency cap found (Code Mode caps dev-only, codemode only)

### Confinement

- hermes-agent: Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4
- opencode: Allow/ask/deny ruleset (allow *, *.env ask); no OS sandbox in release or dev builds

### Credential handling

- hermes-agent: Local subprocesses get env minus provider/cloud blocklist; L3 unmet: no cleared env; .env/auth.json readable
- opencode: Full env inherited, plaintext credential DB; only *.env read-tool ask and host per-session env replacement

### Budget enforcement

- hermes-agent: Iterations unlimited by default, $ reporting only; opt-in wall-clock run budget 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

- hermes-agent: In-process `AIAgent` with callbacks plus an ACP stdio server (new/load/resume/prompt/cancel) with an approval callback; two default bindings
- 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

- hermes-agent: Structural checks warn, and unknown root keys are deliberately ignored. Not rejected, so level 3 unmet
- opencode: Effect Schema type decode, but `onExcessProperty: "ignore"`; a malformed document is dropped with a warning

### Durable execution

- hermes-agent: Turn lease serializes (interrupt default), and a recovery turn re-drives `resume_pending`. Disconnect survival is opt; unresolved: whether `/v1/runs` resumes after restart
- opencode: Durable inbox outlives disconnect; one execution per session; boot sweep resumes claims, documented as at-least-once

### Service dependencies

- hermes-agent: SQLite store; clients start the gateway on demand, and an auto-started gateway exits after 600 s idle
- opencode: Clients ensure a local `opencode serve --service` process that stays resident when idle

### Execution records

- hermes-agent: SQLite transcripts with tool calls and `end_reason`; rewritable. unresolved: optional OTel or similar telemetry is not in the report, so level 3 unmet
- opencode: Typed step/tool/execution failure events, optional OTLP. Revert and delete remove rows, so not protected

### Result checks

- hermes-agent: Stop gates re-prompt up to 3 times, then release the held answer; the schema is passed on unvalidated. unresolved: outcome recorded
- opencode: Built-in `/goal` judge re-prompts with stated caps (50 rounds, 3 stalls) and pauses; the caps are constants, not configurable per check
