Critical Fix: Premature Compaction
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE is an undocumented Claude Code env var with inverted semantics. The value represents remaining% (not used%), so setting it to 85 triggers compaction at 15% used, silently destroying your session.
Token Optimizer now auto-removes this env var on every session start. If you had it set, your next session will use the correct default (~98% used).
What changed
- Auto-fix on SessionStart:
ensure-healthhook removes harmful env vars automatically - Doctor/Quick checks: Both commands detect and remove
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE - Status bar redesign: Shows effort level (lo/med/hi), renames
Q:toContextQ:, reads model name dynamically - Docs updated: All references to this env var now warn against setting it
Status bar format
Opus 4.6 | hi | my-project | ████░░░░░░ 34% | ContextQ:82 | Compacts:1(~65% lost)
Upgrade
Plugin users: auto-updates on next session.
Script users: git pull in your token-optimizer directory.