Skip to content

fix: reduce pre-pass chunk headroom from 75% to 50%#144

Merged
jeff-atriumn merged 1 commit intomainfrom
fix/prepass-chunk-headroom
Mar 24, 2026
Merged

fix: reduce pre-pass chunk headroom from 75% to 50%#144
jeff-atriumn merged 1 commit intomainfrom
fix/prepass-chunk-headroom

Conversation

@jeff-atriumn
Copy link
Copy Markdown
Member

Summary

Pre-pass chunks at 75% of context window were still exceeding the token limit due to prompt/formatting overhead not accounted for in the estimate. Dropped to 50%.

Test plan

  • 439 tests pass

🤖 Generated with Claude Code

The token estimate (chars/4) doesn't account for prompt overhead,
markdown formatting, and file path wrapping. 75% of context window
was too tight. 50% gives enough room.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeff-atriumn jeff-atriumn merged commit 9e6439d into main Mar 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant