# NousResearch/hermes-agent · Compression threshold cap overrides user model_thresholds config

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #117929: fix(compression): let model ratios outrank the default cap

Multiple fixes and a bug report addressing a default 256K token compression cap that silently overrides user-configured model_thresholds ratios for large-context models. Several approaches attempt to make explicit user configuration take precedence over the default cap.

## TL;DR

- 8 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 5 PR(s) closed without merging.
- A fix was merged to main in PR #126064. Verify it addresses your case.
- **Recommended:** read PR #126064 (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-126064`. 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.25`: 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

- #117915: \[Bug\]: default compression.threshold_tokens (256_000) silently overrides compression.model_thresholds ratio on 1M-window models

## Prior & competing PRs

- **#126064: Compaction follows compression.threshold again: no default 256K token cap (#117915, #125235)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli-config.yaml.example`, `hermes_cli/config_defaults.py`, `hermes_cli/config_migrations.py`, `tests/agent/test_context_compressor.py`, `tests/gateway/test_agent_cache.py`, `tests/tui_gateway/test_compression_config_hot_reload.py`, `tui_gateway/session_compression.py`, `website/docs/developer-guide/context-compression-and-caching.md`, `website/docs/user-guide/configuration.md`, `website/docs/user-guide/features/delegation.md`
- **#117929: fix(compression): let model ratios outrank the default cap**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/agent_init.py`, `agent/context_compressor.py`, `tests/agent/test_context_compressor.py`, `tests/tui_gateway/test_compression_config_hot_reload.py`, `tui_gateway/session_compression.py`, `website/docs/developer-guide/context-compression-and-caching.md`, `website/docs/user-guide/configuration.md`
- **#117961: fix(compression): don't apply default threshold_tokens cap when model_thresholds are explicitly set (closes #117915)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#126064`, `#115986`
- **#119247: fix(compression): don't apply default threshold_tokens cap when model_thresholds are explicitly set**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `dfe91e6e4c4f9f4b0cb59ae04279d3825645287a`, `95f20517c25ee418da5337f4ead347008baaa2b3`, `#119247`
- **#119394: fix(compression): do not apply default threshold_tokens cap when model_thresholds are set**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#126064`, `#115986`
- **#119441: Default 256K compression cap yields to user-set ratios (global threshold + model_thresholds) — salvage of #117929**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#126064`, `#115986`
- **#124012: fix(compression): surface the effective trigger and what binds it — startup line + hermes doctor (#117915)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `465c3699659`

## Fix status

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