# NousResearch/hermes-agent · Fix compression threshold ceiling for large-context models

## Open now

- Nothing open on GitHub.

These items address a bug where compression thresholds had no upper ceiling, causing large-context models (e.g. 1M-token windows) to defer compaction until 500K tokens, with proposed fixes capping the default at 256K. The cost and billing implications of delayed compaction are also noted.

## 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 #115986. Verify it addresses your case.
- **Recommended:** read PR #115986 (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-115986`. 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

- #83450: \[Bug\]: \`compression.threshold\` has a token floor but no ceiling: on 1M-context models compaction first fires at 500K and long sessions bill quadratically

## Prior & competing PRs

- **#115986: fix(compression): large-context models compact at 256K by default instead of half the window (#83450, salvage #83523)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_init.py`, `agent/context_compressor.py`, `cli-config.yaml.example`, `hermes_cli/config_defaults.py`, `hermes_cli/context_switch_guard.py`, `tests/agent/test_context_compressor.py`, `tests/hermes_cli/test_context_switch_guard.py`, `tools/delegate_tool.py`, `website/docs/developer-guide/context-compression-and-caching.md`, `website/docs/user-guide/configuration.md`, `website/docs/user-guide/features/delegation.md`
- **#83523: fix(compression): stop 1M-context sessions from deferring compaction to 500K**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#115986`

## Fix status

- Merged to main in PR #115986 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-19`.
- Subsystem: `agent`
