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.
When a PostToolUse hook modifies a file that Claude just edited (e.g., a formatter running after a write), Claude Code now automatically detects the change and re-syncs its internal read-file state. This prevents stale-file errors on the next Edit tool call for that file.
Evidence
Hook file sync handler (search for "PostToolUse hook modified" and "re-synced readFileState")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.