Commit 9c0d47c
authored
Use agentic file reading for large diffs instead of skipping (#19)
Instead of skipping reviews when the diff exceeds max-diff-lines,
switch to agentic mode where Claude reads files on-demand. This
ensures large PRs still get reviewed while managing context limits.
Changes:
- Large diffs trigger agentic mode instead of skipping review
- `max-diff-lines=0` now forces agentic mode (always read files)
- Updated prompts to give Claude clear file reading instructions
- Preserved existing fallback for `PROMPT_TOO_LONG` errors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"1 parent 7091abd commit 9c0d47c
4 files changed
Lines changed: 44 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
711 | 697 | | |
712 | 698 | | |
713 | 699 | | |
| |||
716 | 702 | | |
717 | 703 | | |
718 | 704 | | |
719 | | - | |
| 705 | + | |
720 | 706 | | |
721 | 707 | | |
722 | 708 | | |
| |||
727 | 713 | | |
728 | 714 | | |
729 | 715 | | |
730 | | - | |
| 716 | + | |
731 | 717 | | |
| 718 | + | |
732 | 719 | | |
733 | | - | |
| 720 | + | |
734 | 721 | | |
735 | | - | |
736 | 722 | | |
737 | 723 | | |
738 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
259 | | - | |
| 266 | + | |
260 | 267 | | |
261 | 268 | | |
262 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
263 | 277 | | |
264 | 278 | | |
265 | 279 | | |
| |||
414 | 428 | | |
415 | 429 | | |
416 | 430 | | |
417 | | - | |
| 431 | + | |
418 | 432 | | |
419 | 433 | | |
420 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
421 | 442 | | |
422 | 443 | | |
423 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
| 460 | + | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
0 commit comments