github alexgreensh/token-optimizer v5.6.13

latest release: v5.7.0
5 hours ago

Bug Fixes

  • Quality score stability: Enforce ResourceHealth monotonicity within a session. Score can only decrease (worsen) unless a compaction resets context. Prevents fill_pct measurement fluctuations from causing 10-20 point score swings in the statusline.

  • False tool call warnings suppressed: Tool call threshold scaling changed from linear (5x) to superlinear (x^1.3) for 1M context windows, raising thresholds from warn=125/crit=200 to warn=202/crit=324. Additionally, tool call warnings are now gated on context fill >= 50%, since tool calls at low fill don't degrade instruction adherence.

  • Two-row statusline: Status bar split into two rows for readability. Row 1: model, effort, project, context bar, ContextQ. Row 2: Eff, warnings, compactions, session duration, active agents. Session duration is now always visible (previously gated on quality < 75).

  • Edge case hardening: Duration display guards against invalid timestamps (epoch 0, negative values, >7 day sessions). Monotonicity clamp handles corrupted cache where compaction count regresses.

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.