NousResearch/hermes-agent

Fix compaction gates to use real provider usage

Cluster 100381. Data as of

Nothing open on GitHub. Fix merged in #104555 on 6 Sep 2026. Check it covers your case.

The short answer

0open issues
0open PRs
3items grouped
Known?
Yes. 3 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #104555. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #104555. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items address a bug where thread compaction decisions were based on a local byte-estimate heuristic rather than the provider's reported token usage, causing incorrect compaction behavior on small or long-lived threads. The fix anchors compaction logic to actual reported usage figures.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #104555 fix(compression): compaction gates follow the provider's real usage, never the bytes/4 estimate (#104462, salvage #99585 #100447)

    merged to main

    files: agent/agent_init.py, agent/codex_runtime.py, agent/context_breakdown.py, agent/context_compressor.py, agent/conversation_compression.py, agent/conversation_loop.py, agent/model_metadata.py, agent/turn_context.py, agent/turn_context_compaction.py, agent/turn_preflight.py, agent/turn_preflight_gate.py, agent/turn_request_assembly.py, agent/turn_usage.py, agent/usage_anchor.py, evals/token_accounting/replay_gates.py, gateway/run_turn.py, hermes_cli/cli_status_bar_mixin.py, tests/agent/test_budget_reasoning_details_exclusion.py, tests/agent/test_context_compressor.py, tests/agent/test_context_compressor_cross_session_guard.py (+8 more)

1 PR closed without merging

From the close comments: done elsewhere 1

  • #100447 fix(compression): anchor codex app-server preflight on reported usage · done elsewhere → a9e56c0, #104555
Closed issues · 1
  • Closed#100381codex_app_server_auto=hermes triggers thread compaction off the local mirror estimate — compacts tiny threads, thrashes on long-lived sessions
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.67: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#104555
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
6 Sep 2026

For your agent

The same facts, typed.