fix: remove preemptive context warnings in plan-eng-review#572
Open
claygeo wants to merge 1 commit intogarrytan:mainfrom
Open
fix: remove preemptive context warnings in plan-eng-review#572claygeo wants to merge 1 commit intogarrytan:mainfrom
claygeo wants to merge 1 commit intogarrytan:mainfrom
Conversation
The priority hierarchy instruction tells the model to watch for low context, which causes premature compression warnings on 1M context window models (e.g., Claude Opus 4.6). At 27% usage on a 1M window, ~730K tokens remain — nowhere near a real constraint. The fix: - Removes "running low on context" trigger (model can't accurately gauge this and becomes overly cautious) - Keeps the user-initiated "asks you to compress" trigger - Adds system compaction trigger (Claude Code handles this natively) - Explicitly tells the model not to preemptively warn about limits This was calibrated for 200K windows. On 1M models, the old thresholds caused unnecessary anxiety and premature summarization. Closes garrytan#510
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.
Problem
The
plan-eng-reviewskill's priority hierarchy instruction tells the model to watch for low context:This causes premature compression warnings on 1M context window models. At 27% usage on a 1M window, ~730K tokens remain — far from any real constraint. The model doesn't have precise token-counting ability and relies on heuristics, so this instruction makes it "context-anxious" regardless of actual available space.
Solution
Changes
plan-eng-review/SKILL.md.tmpl— Updated priority hierarchy instructionplan-eng-review/SKILL.md— Regenerated from templateTest Plan
/plan-eng-reviewon a 1M context model with a long conversation — verify no premature compression warningsCloses #510