# hermes-agent vs letta-code

> 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-letta-code

## Programmable capabilities

| Column | hermes-agent | letta-code | 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) | [3 s](https://ai-agents-review.com/cell/letta-code/capability-interface.md) | no |
| [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/letta-code/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 d](https://ai-agents-review.com/cell/letta-code/capability-transfer.md) | no |

## Evidence and memory

| Column | hermes-agent | letta-code | 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 d](https://ai-agents-review.com/cell/letta-code/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 [opt: experimental local backend] d](https://ai-agents-review.com/cell/letta-code/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) | [4 s](https://ai-agents-review.com/cell/letta-code/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | hermes-agent | letta-code | 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/letta-code/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) | [2 s](https://ai-agents-review.com/cell/letta-code/continuation.md) | yes |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/coordination.md) | [3 s](https://ai-agents-review.com/cell/letta-code/coordination.md) | no |

## Execution controls

| Column | hermes-agent | letta-code | 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) | [2 s](https://ai-agents-review.com/cell/letta-code/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/letta-code/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) | [2 s](https://ai-agents-review.com/cell/letta-code/budget-enforcement.md) | yes |

## Product integration

| Column | hermes-agent | letta-code | 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/letta-code/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) | [1 s](https://ai-agents-review.com/cell/letta-code/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [3 s](https://ai-agents-review.com/cell/hermes-agent/durable-execution.md) | [2 d](https://ai-agents-review.com/cell/letta-code/durable-execution.md) | yes |

## Operations and verification

| Column | hermes-agent | letta-code | 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) | [X (+E alt: local backend) s](https://ai-agents-review.com/cell/letta-code/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) | [1 d](https://ai-agents-review.com/cell/letta-code/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) | [2 s](https://ai-agents-review.com/cell/letta-code/result-checks.md) | no |

## Rationales

### Capability interface

- hermes-agent: Plugins plus MCP, toolset filtering, tool_search deferral; host-executed tools not shown. unresolved: host-executed tool interface
- letta-code: Mods and host-injected external tools; per-subagent tool lists; MCP not native; no deferral/search (level 4 unmet)

### Reusable computation

- hermes-agent: Skills with scripts persist; no unit re-run with inputs; execute_code kernel per conversation; cron stores prompts only
- letta-code: Workflow script, args and journal saved, re-run by scriptPath; crons hold prompts, no scheduled workflow or typed params

### Capability transfer

- hermes-agent: Skills-hub install with quarantine; children always fresh, no fork-vs-fresh choice shown (level 3 unmet). unresolved: session fork
- letta-code: Skill install and MemFS restore are [D]; fork type carries conversation; no dependency checking (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)
- letta-code: Cloud messages server-side [D] plus client transcript copy; no retention policy; local file rewritten on fork

### Context recovery

- hermes-agent: Default session_search FTS5 search/read over kept compacted rows; no in-tree relevance injection (providers external)
- letta-code: Cloud compaction/search [D] caps D; local mode keeps rows with default BM25 search and recall subagent

### Memory maintenance

- hermes-agent: Default background review and idle curator archiving; failures swallowed at debug, not retried (level 4 unmet)
- letta-code: MemFS auto-enabled on Cloud (index.ts:1808); reflection every 25 steps; rebase-retry/backoff; git versioning (not Windows/detached headless)

### Specialist definition

- hermes-agent: Model via delegation.model, roles leaf/orchestrator; L3 unmet: no declarative per-specialist tool scope; unresolved: profile-route toolsets
- letta-code: Markdown frontmatter sets tools, model, prompt; L4 unmet: child forced --permission-mode unrestricted, widening when parent interactive

### Continuation

- hermes-agent: Child transcripts persist; resumable_subagents rows survive restart (48 h TTL); L4 unmet: no durable child mailbox
- letta-code: Follow-ups via agent_id reuse child conversation; live state in memory; unresolved: resume of ephemeral API children after restart

### Coordination

- hermes-agent: Depth 1, 10 concurrent, parent interrupt fans out (background units excepted); L4 unmet: no delegate messaging, no tree budget
- letta-code: Depth 2, 32 concurrent tasks, process-group cancel; L4 unmet: no tree-wide budget for Task children (messaging server-side [D])

### Confinement

- hermes-agent: Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4
- letta-code: OS sandbox default-on only for memory subagents; main shell unconfined under unrestricted mode; network never isolated

### Credential handling

- hermes-agent: Local subprocesses get env minus provider/cloud blocklist; L3 unmet: no cleared env; .env/auth.json readable
- letta-code: Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist

### Budget enforcement

- hermes-agent: Iterations unlimited by default, $ reporting only; opt-in wall-clock run budget is a level-2 work limit (R3)
- letta-code: Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only

### 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
- letta-code: Headless stream-json plus a WebSocket app server with typed protocol, abort, `can_use_tool` control requests and an external-tool-call handler

### Declarative configuration

- hermes-agent: Structural checks warn, and unknown root keys are deliberately ignored. Not rejected, so level 3 unmet
- letta-code: JSON spread over defaults; no schema; unknown keys pass through

### 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
- letta-code: Cloud background runs and busy handling are server-side [D], so the evidence cap is 2. Local mode loses runs on a crash

### Service dependencies

- hermes-agent: SQLite store; clients start the gateway on demand, and an auto-started gateway exits after 600 s idle
- letta-code: Default API mode needs a reachable Letta server every turn; the local backend uses provider endpoints only

### 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
- letta-code: Local transcript/debug files; background failures often only in the debug log; tool-error recording unresolved; server records [D]

### 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
- letta-code: Hooks: exit 2 blocks, but errors and timeouts fail open; Stop-hook re-prompts have no stated cap
