Skip to content

Commit 2158b46

Browse files
haasonsaasclaude
andcommitted
feat: add adaptive patch compression for large PRs (#30)
4-stage progressive degradation strategy for diffs exceeding token budget: Stage 1 (Full): all diffs fit → use as-is Stage 2 (Compressed): remove deletion-only hunks, drop tail files Stage 3 (Clipped): truncate large files at hunk boundaries Stage 4 (MultiCall): split into multiple batches (up to 5) Integrated into review pipeline — files dropped by compression are skipped with logging. 24 new tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 13467b1 commit 2158b46

File tree

3 files changed

+727
-0
lines changed

3 files changed

+727
-0
lines changed

0 commit comments

Comments
 (0)