# NousResearch/hermes-agent · read_file dedup cache bugs and response inconsistencies

## Open now

- 1 issue, 1 PR open on GitHub.
- #44819: \[Bug\]: read_file In some inappropriate situations, is the dedup likely to affect instruction compliance? For example, when reading skill commands
- PR #45269: fix(tools): preserve instruction file rereads

These issues and fixes center on problems with the read_file tool's deduplication mechanism, including incorrect response structures in the execute_code sandbox, cache invalidation using only mtime, loop detection bypasses, and dedup metadata leaking into file content.

## TL;DR

- 11 member(s): 1 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 7 PR(s) closed without merging.
- A fix was merged to main in PR #153355. Verify it addresses your case.
- **Recommended:** read PR #153355 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `partially_resolved` · deciding PR(s): `pr-153355`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.17`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #44819: \[Bug\]: read_file In some inappropriate situations, is the dedup likely to affect instruction compliance? For example, when reading skill commands

## Closed / duplicate issues

- #44843: read_file\` returns inconsistent response structure in \`execute_code()\` sandbox

## Prior & competing PRs

- **#44849: fix(tools): skip read_file dedup for execute_code sandbox calls**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#44847`
- **#44997: fix(tools): make read_file dedup response consistent (#44843)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#153355: execute_code scripts always get file content from read_file (#82711, #44843)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_code_execution_programmatic_reads.py`, `tools/code_execution_rpc.py`, `tools/code_kernel.py`, `tools/file_tools.py`, `tools/file_tools_read_tracking.py`
- **#44847: fix(tools): bypass read dedup in execute_code**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`; refs `7043a9264880`, `#153355`, `#44843`
- **#44960: fix(tools): align read_file sandbox response format with normal tool (#44843)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#45087: fix(tools): read_file returns inconsistent response structure in execute_code sandbox (#44843)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#44843`, `#44997`, `#44847`, `#44849`, `#44960`
- **#45269: fix(tools): preserve instruction file rereads**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - files: `tests/tools/test_file_read_guards.py`, `tools/file_tools.py`
- **#82873: fix(tools): bypass read_file dedup in execute_code sandbox**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#44847`
- **#102813: fix(tools): bypass read dedup in execute_code**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- Merged to main in PR #153355 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-11-11`.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
