# codex vs software-agent-sdk

> 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-software-agent-sdk

## Programmable capabilities

| Column | codex | software-agent-sdk | 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/software-agent-sdk/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) | [1→2 [opt: load_user_skills / load_project_skills] s](https://ai-agents-review.com/cell/software-agent-sdk/reusable-computation.md) | yes |
| [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/software-agent-sdk/capability-transfer.md) | yes |

## Evidence and memory

| Column | codex | software-agent-sdk | 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) | [0→3 [opt: persistence_dir on agent-server with retention set] s](https://ai-agents-review.com/cell/software-agent-sdk/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) | [1→2 [exp: conversation_mentions] s](https://ai-agents-review.com/cell/software-agent-sdk/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) | [0→1 [opt: load_memory=True] s](https://ai-agents-review.com/cell/software-agent-sdk/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | codex | software-agent-sdk | 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) | [0→3 [opt: enable_sub_agents=True] s](https://ai-agents-review.com/cell/software-agent-sdk/specialist-definition.md) | yes |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [3 s](https://ai-agents-review.com/cell/codex/continuation.md) | [0→3 [opt: enable_sub_agents + agent-server child conversations] s](https://ai-agents-review.com/cell/software-agent-sdk/continuation.md) | yes |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [2 s](https://ai-agents-review.com/cell/codex/coordination.md) | [0→2 [opt: enable_sub_agents / workflow tool] s](https://ai-agents-review.com/cell/software-agent-sdk/coordination.md) | yes |

## Execution controls

| Column | codex | software-agent-sdk | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [3 s](https://ai-agents-review.com/cell/codex/confinement.md) | [0→3 [opt: DockerWorkspace / server docker runtime] s](https://ai-agents-review.com/cell/software-agent-sdk/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→3 [opt: DockerWorkspace forward_env] s](https://ai-agents-review.com/cell/software-agent-sdk/credential-handling.md) | no |
| [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) | [2 s](https://ai-agents-review.com/cell/software-agent-sdk/budget-enforcement.md) | yes |

## Product integration

| Column | codex | software-agent-sdk | 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/software-agent-sdk/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/software-agent-sdk/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) | [0→3 [alt: agent-server] s](https://ai-agents-review.com/cell/software-agent-sdk/durable-execution.md) | yes |

## Operations and verification

| Column | codex | software-agent-sdk | 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 (+R opt: agent server) s](https://ai-agents-review.com/cell/software-agent-sdk/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) | [1→3 [opt: persistence_dir] s](https://ai-agents-review.com/cell/software-agent-sdk/execution-records.md) | yes |
| [Result checks](https://ai-agents-review.com/column/result-checks.md) | [2 s](https://ai-agents-review.com/cell/codex/result-checks.md) | [3 s](https://ai-agents-review.com/cell/software-agent-sdk/result-checks.md) | yes |

## Rationales

### Capability interface

- codex: Two or more mechanisms with policy filtering; host-executed dynamicTools (experimental API counts per R8); tool_search deferral
- software-agent-sdk: Tool specs, MCP, plugins, client tools; regex filtering; no deferral or tool search found (level 4 unmet)

### Reusable computation

- codex: Skills with scripts and rules rediscovered; no unit re-run with inputs; code-mode store/load in memory only
- software-agent-sdk: Skill loaders default False (agent_context.py:87-100), so nothing executable is rediscovered by default; enabled skills with scripts give L2

### Capability transfer

- codex: Skill MCP dependencies checked with install offer; thread/fork and fork_context give fork-vs-fresh choice; no closure-packaging operation
- software-agent-sdk: Git-fetched plugins and serializable Agent; fork exists; tool modules not dependency-checked (level 3 unmet)

### Durable evidence

- codex: Full JSONL rollouts kept, revert writes new file; no explicit rollout retention policy (logs only) (level 3 unmet)
- software-agent-sdk: Default InMemoryFileStore; with persistence, append-only events, configurable server retention, condensation keeps events

### Context recovery

- codex: Rollout stored, default reachable only by file re-read; memories tools list/read/search when enabled
- software-agent-sdk: Condensed events kept but unreadable by the agent (L1); experimental opt-in retrieval tool reaches L2

### Memory maintenance

- codex: memories off by default; when on, phase-2 consolidation agent runs; retry/leases only [D] (level 4 unmet)
- software-agent-sdk: load_memory off; when on, MEMORY.md kept via ordinary file tools per prompt; no dedicated tools (level 2 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
- software-agent-sdk: task tool off in default preset; AgentDefinition sets tools/model/prompt; L4 unmet: never_confirm widens

### Continuation

- codex: Child rollout reloaded by resume_agent after restart; L4 unmet: v2 mailbox off by default; unresolved: mailbox durability across crash
- software-agent-sdk: Off by default; local resume in-process only (ID map in memory); agent-server child conversations survive restart

### Coordination

- codex: Depth 1, 6 concurrent, close_agent cascades below a closed child; no evidence that interrupting the parent stops running children (R5, unresolved)
- software-agent-sdk: Off by default; workflow concurrency cap 8 (max 64); L3 unmet: no depth cap, no cancel propagation

### Confinement

- codex: Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed
- software-agent-sdk: Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4

### Credential handling

- codex: Default denylist *KEY*/*SECRET*/*TOKEN*; a named config key gives an allowlisted env (R1); auth.json likely readable
- software-agent-sdk: Host env minus small denylist, LLM_API_KEY visible; DockerWorkspace passes only forward_env allowlist

### Budget enforcement

- codex: Default token_budget only steers, cost display only; rollout_budget is pre-call tree-wide admission, in-flight calls billed
- software-agent-sdk: 500 iterations and post-step $ cap; child cost merged only at completion does not meet 'covering descendants' (R4)

### 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
- software-agent-sdk: Python SDK, in-process Local plus Remote over HTTP+WS; typed events, run/pause/send, confirmation policy, client tools

### 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
- software-agent-sdk: Pydantic types and ranges validated; unknown keys silently ignored for Config, LLM and settings

### 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
- software-agent-sdk: Local SDK persists nothing without `persistence_dir`. The server survives disconnect and marks stale RUNNING as ERROR, with no auto re-run

### Service dependencies

- codex: Single local process with embedded SQLite; MCP children; nothing idle. The daemon is optional
- software-agent-sdk: Local SDK runs no services; the agent server stays resident with lease and eviction loops

### Execution records

- codex: Rollout JSONL persists TurnAborted, but rollout policy marks Error events transient, so failures are not structured records. Level 3 unmet; mutable
- software-agent-sdk: Local default keeps events in memory only, capped at 1 (R12); with persistence, structured error/limit events plus optional OTel

### 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
- software-agent-sdk: Opt-in critic and goal judge re-prompt up to `max_iterations` and record `capped` vs `complete`. No default check, so not level 4
