Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.227 Home All releases olderv2.1.226 v2.1.228newer
Claude Code v2.1.227

Sync work per turn is capped by time, path count, row count and file size

You'll notice
Useful3 Signal2
Remote Sync

Per-turn syncing is capped by time, path count and a 64 MiB file size limit.

What

The syncer enforces published limits so a turn cannot be delayed indefinitely by file transfer. The pre-turn pull is bounded by WORKER_SYNC_BEFORE_TURN_CAP_MS at 10000 ms, dropping to WORKER_SYNC_DEGRADED_CAP_MS at 500 ms once the connection is degraded. Pushing looks at 4096 candidate paths per turn at most and refuses any file over 64 MiB, so very large files never sync.

Details
  • Surplus paths beyond 4096 rotate across later turns rather than being dropped.
  • At most 40 new entries are admitted per turn against a 256-entry cap, with some of that cap held in reserve.
  • The published record of worker state is capped at 2 MiB, with at most 256 recorded entries and 256 recorded skips.
  • If a previous worker process still holds the sync, the apply step retries up to MAX_APPLY_ATTEMPTS (3) times with APPLY_RESTART_DELAY_MS (5000 ms) between attempts.
Evidence

WORKER_SYNC_BEFORE_TURN_CAP_MS

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.227 →