claude-code-hermit: less aggressive compact defaults#130
Merged
Conversation
…ACT_PCT_OVERRIDE 50→65, COMPACT_THRESHOLD 50→75) Default auto-compact was firing at 50% context — well before the quality-degradation zone (~73%) — discarding usable context without benefit. Bumps the trigger to 65%, conservative move that stays well under the upstream ~83% clamp ceiling. COMPACT_THRESHOLD was firing the tool-call-based /compact nudge mid- session for any non-trivial work. Bumps to 75; the real signal (context_usage > 60% in suggest-compact.js) continues to drive substantive nudges. CHANGELOG [Unreleased] adds executable Upgrade Instructions for hermit-evolve with an only-if-still-50 guard so operators who tuned to a custom value keep their choice.
…ighten architecture.md cell PR review pointed out the `config-reference.md` description correction from the previous commit was unmentioned in CHANGELOG, and architecture.md still called the threshold a generic "Compaction suggestion threshold." Adds a third `### Changed` bullet flagging the description correction, and tightens the architecture.md env-defaults table cell to "Tool-call-count fallback for compact suggestion" — matching the now-corrected config-reference entry.
Owner
Author
|
@copilot resolve the merge conflicts in this pull request |
…ax-thinking-tokens
Contributor
Resolved by merging |
Copilot stopped work on behalf of
gtapps due to an error
May 23, 2026 20:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE50→65,COMPACT_THRESHOLD50→75)Default auto-compact was firing at 50% context — well before the quality-degradation zone (~73%) — discarding usable context without benefit. Bumps the trigger to 65%, a conservative move that stays well under the upstream ~83% clamp ceiling (anthropics/claude-code#31806).
COMPACT_THRESHOLDwas firing the tool-call-based/compactnudge mid-session for any non-trivial work. Bumps to 75; the real signal (context_usage > 60%insuggest-compact.js) continues to drive substantive nudges.CHANGELOG
[Unreleased]adds executable Upgrade Instructions forhermit-evolvewith an only-if-still-50 guard so operators who tuned to a custom value keep their choice.Verification
bash plugins/claude-code-hermit/tests/run-all.sh(84/84 contract tests + full hooks/sessions/auto-close suites) ran green during implementation.state/last-test.jsonnot recorded in this worktree (no hermit config), so no cached HEAD-SHA pass available.50references survive inplugins/outside the intentional guard conditions inside the new CHANGELOG migration text.Test plan
env.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE == "50"andenv.COMPACT_THRESHOLD == "50": run/claude-code-hermit:hermit-evolveand confirm both bump to65/75inconfig.jsonandsettings.local.json.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE: "75"): run/claude-code-hermit:hermit-evolveand confirm the value is left untouched with a "custom override preserved" message.