# codex vs hermes-agent

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

## Programmable capabilities

| Column | codex | hermes-agent | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [4 s](https://ai-agents-review.com/cell/codex/capability-interface.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/capability-interface.md) | yes |
| [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) | [2 s](https://ai-agents-review.com/cell/codex/reusable-computation.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/reusable-computation.md) | no |
| [Capability transfer](https://ai-agents-review.com/column/capability-transfer.md) | [3 s](https://ai-agents-review.com/cell/codex/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/capability-transfer.md) | yes |

## Evidence and memory

| Column | codex | hermes-agent | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/codex/durable-evidence.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/durable-evidence.md) | yes |
| [Context recovery](https://ai-agents-review.com/column/context-recovery.md) | [2→3 [opt: memories feature] s](https://ai-agents-review.com/cell/codex/context-recovery.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/context-recovery.md) | yes |
| [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) | [0→3 [opt: memories feature] s](https://ai-agents-review.com/cell/codex/memory-maintenance.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/memory-maintenance.md) | yes |

## Specialist collaboration

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

## Execution controls

| Column | codex | hermes-agent | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [3 s](https://ai-agents-review.com/cell/codex/confinement.md) | [1→3 [opt: terminal.backend docker] s](https://ai-agents-review.com/cell/hermes-agent/confinement.md) | yes |
| [Credential handling](https://ai-agents-review.com/column/credential-handling.md) | [2→3 [opt: shell_environment_policy inherit=core/none] s](https://ai-agents-review.com/cell/codex/credential-handling.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/credential-handling.md) | yes |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1→4 [opt: rollout_budget (under development)] s](https://ai-agents-review.com/cell/codex/budget-enforcement.md) | [1→2 [opt: run_budget_seconds] s](https://ai-agents-review.com/cell/hermes-agent/budget-enforcement.md) | yes |

## Product integration

| Column | codex | hermes-agent | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [2 s](https://ai-agents-review.com/cell/codex/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/hermes-agent/embedding-interfaces.md) | yes |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [3 s](https://ai-agents-review.com/cell/codex/declarative-configuration.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [2→3 [opt: app-server daemon recovery] s](https://ai-agents-review.com/cell/codex/durable-execution.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/durable-execution.md) | yes |

## Operations and verification

| Column | codex | hermes-agent | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [E (+R opt: app-server daemon) s](https://ai-agents-review.com/cell/codex/service-dependencies.md) | [E+O (+R opt: installed gateway service) s](https://ai-agents-review.com/cell/hermes-agent/service-dependencies.md) | yes |
| [Execution records](https://ai-agents-review.com/column/execution-records.md) | [2 s](https://ai-agents-review.com/cell/codex/execution-records.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/execution-records.md) | no |
| [Result checks](https://ai-agents-review.com/column/result-checks.md) | [2 s](https://ai-agents-review.com/cell/codex/result-checks.md) | [2 s](https://ai-agents-review.com/cell/hermes-agent/result-checks.md) | no |

## Rationales

### Capability interface

- codex: Two or more mechanisms with policy filtering; host-executed dynamicTools (experimental API counts per R8); tool_search deferral
- hermes-agent: Plugins plus MCP, toolset filtering, tool_search deferral; host-executed tools not shown. unresolved: host-executed tool interface

### Reusable computation

- codex: Skills with scripts and rules rediscovered; no unit re-run with inputs; code-mode store/load in memory only
- hermes-agent: Skills with scripts persist; no unit re-run with inputs; execute_code kernel per conversation; cron stores prompts only

### Capability transfer

- codex: Skill MCP dependencies checked with install offer; thread/fork and fork_context give fork-vs-fresh choice; no closure-packaging operation
- hermes-agent: Skills-hub install with quarantine; children always fresh, no fork-vs-fresh choice shown (level 3 unmet). unresolved: session fork

### Durable evidence

- codex: Full JSONL rollouts kept, revert writes new file; no explicit rollout retention policy (logs only) (level 3 unmet)
- hermes-agent: Configurable retention (auto_prune off); rewind soft-deletes, compaction keeps rows; agent-unalterable records absent (level 4 unmet)

### Context recovery

- codex: Rollout stored, default reachable only by file re-read; memories tools list/read/search when enabled
- hermes-agent: Default session_search FTS5 search/read over kept compacted rows; no in-tree relevance injection (providers external)

### Memory maintenance

- codex: memories off by default; when on, phase-2 consolidation agent runs; retry/leases only [D] (level 4 unmet)
- hermes-agent: Default background review and idle curator archiving; failures swallowed at debug, not retried (level 4 unmet)

### Specialist definition

- codex: Roles set prompt/model and can only disable tools; approval, permission profile copied from parent turn (inherit-only); no widening path
- hermes-agent: Model via delegation.model, roles leaf/orchestrator; L3 unmet: no declarative per-specialist tool scope; unresolved: profile-route toolsets

### Continuation

- codex: Child rollout reloaded by resume_agent after restart; L4 unmet: v2 mailbox off by default; unresolved: mailbox durability across crash
- hermes-agent: Child transcripts persist; resumable_subagents rows survive restart (48 h TTL); L4 unmet: no durable child mailbox

### Coordination

- codex: Depth 1, 6 concurrent, close_agent cascades below a closed child; no evidence that interrupting the parent stops running children (R5, unresolved)
- hermes-agent: Depth 1, 10 concurrent, parent interrupt fans out (background units excepted); L4 unmet: no delegate messaging, no tree budget

### Confinement

- codex: Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed
- hermes-agent: Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4

### Credential handling

- codex: Default denylist *KEY*/*SECRET*/*TOKEN*; a named config key gives an allowlisted env (R1); auth.json likely readable
- hermes-agent: Local subprocesses get env minus provider/cloud blocklist; L3 unmet: no cleared env; .env/auth.json readable

### Budget enforcement

- codex: Default token_budget only steers, cost display only; rollout_budget is pre-call tree-wide admission, in-flight calls billed
- hermes-agent: Iterations unlimited by default, $ reporting only; opt-in wall-clock run budget is a level-2 work limit (R3)

### Embedding interfaces

- codex: Full lifecycle, approvals and several transports exist, but app-server is labelled [experimental] (codex-rs/cli/src/main.rs:177), which the L2 anchor names
- hermes-agent: In-process `AIAgent` with callbacks plus an ACP stdio server (new/load/resume/prompt/cancel) with an approval callback; two default bindings

### Declarative configuration

- codex: Unknown keys only warn by default, but a documented `--strict-config` meets level 3. Level 4 not met because strictness is not the default
- hermes-agent: Structural checks warn, and unknown root keys are deliberately ignored. Not rejected, so level 3 unmet

### Durable execution

- codex: Steer and writer lock serialize input. A crash cold-resumes without closing out the turn; only the opt daemon resumes eligible turns, with no idempotency rule
- 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

### Service dependencies

- codex: Single local process with embedded SQLite; MCP children; nothing idle. The daemon is optional
- hermes-agent: SQLite store; clients start the gateway on demand, and an auto-started gateway exits after 600 s idle

### Execution records

- codex: Rollout JSONL persists TurnAborted, but rollout policy marks Error events transient, so failures are not structured records. Level 3 unmet; mutable
- 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

### Result checks

- codex: Owner Stop hooks re-prompt with no stated cap. The schema is enforced provider-side only, so level 3's stated-cap/block condition is unmet
- hermes-agent: Stop gates re-prompt up to 3 times, then release the held answer; the schema is passed on unvalidated. unresolved: outcome recorded
