When working with large diffs (>500 files changed), Claude Code now uses git diff --shortstat first to quickly determine file counts before fetching full diff details. This prevents timeouts on very large changesets.
Evidence
ks5() at line 448558 (parses shortstat format with filesCount, linesAdded, linesRemoved), modified Pl2() at line 448405 (uses Ps5 = 500 threshold)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.