# NousResearch/hermes-agent · Prompt cache stability fixes for cwd and worktree context

## Open now

- Nothing open on GitHub.

These items address prompt caching issues where the current working directory or project context lines fall outside the stable cache tier, causing cache misses per worktree session. The fixes aim to keep volatile path information from disrupting prefix cache reuse.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #104908. Verify it addresses your case.
- **Recommended:** read PR #104908 (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: `resolved` · deciding PR(s): `pr-104908`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: 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.

## Closed / duplicate issues

- #104610: Prompt cache: the cwd line in the stable tier and context files behind the workspace snapshot miss the prefix cache once per worktree session

## Prior & competing PRs

- **#104908: fix(prompt): shared project context stays ahead of worktree state (#104610)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_loop.py`, `agent/prompt_builder.py`, `agent/system_prompt.py`, `evals/token_accounting/worktree_prompt_prefix.py`, `tests/agent/test_system_prompt.py`, `website/docs/developer-guide/prompt-assembly.md`
- **#104645: fix(prompt): keep the working directory out of the cached stable tier**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `9da8df8d26581396d0f22f6832a3d5efa5d16c1b`, `#104908`, `#104642`, `#104645`, `#104688`

## Fix status

- Merged to main in PR #104908 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-07`.
