# hermes-agent · Context recovery

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

- Runtime: [hermes-agent](https://ai-agents-review.com/runtime/hermes-agent.md)
- Column: [Context recovery](https://ai-agents-review.com/column/context-recovery.md) (Evidence and memory)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/hermes-agent/context-recovery

## Rationale

Default session_search FTS5 search/read over kept compacted rows; no in-tree relevance injection (providers external)

## Rubric criteria for this column

- 0: Evidence that leaves the prompt is gone, or never stored
- 1: Only an in-prompt summary; originals not stored, or stored but unreachable by the agent
- 2: Originals stored, reachable only through generic means (re-reading files, temp-file paths named in the summary) or through a retrieval tool that is off by default
- 3: Default-on retrieval tool or command over stored transcript/memory (search plus read)
- 4: Level 3, plus automatic relevance-based injection of stored evidence **or** stable references (ids/paths) that survive restart and compaction

## Review finding

Built in. In-place compaction marks old rows `compacted` and keeps them. The default `session_search` tool does FTS5 discovery, scroll and read with no LLM. MEMORY.md/USER.md enter the prompt as a frozen per-session snapshot. [opt: external provider recall injected into the user turn] [E27][E28][E29][E30].

## Evidence cited by the mark

- [E27] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/hermes_cli/config_defaults.py#L668-L672 — in-place compaction soft-archives rows (`active=0, compacted=1`), still searchable — [S]
- [E28] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/tools/session_search_tool.py#L1-L11 — `session_search`: FTS5 discovery/scroll/read, lineage-aware, no LLM — [S]
- [E29] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/tools/memory_tool_store.py#L179-L258 — memory prompt snapshot frozen at load — [S]

## Evidence also cited by the review finding

- [E30] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/agent/turn_context.py#L113-L137 — external memory prefetch injected as per-turn context — [S]

## Grading record

- Grader A (default / best): 3 / 3
- Grader B (default / best): 3 / 3
