What happens after Claude edits code

What happens after Claude edits code A sequence diagram generated by Archify. PostToolUse: file edited · spawn Hook JSON with the tool name, file path, and old and new text. The hook appends the edit to the turn log. Stop · spawn Hook JSON with the session id and transcript path. The hook writes the job (edits plus the last user request). spawn, detached · spawn list defects · HTTPS issues as JSON check claim (up to 2) · HTTPS holds + evidence write ranked result · file UserPromptSubmit · spawn Hook JSON with the session id and the user's new prompt. collect results read undelivered · file top 2 + confirmed · stdio during the turn turn ends in the background next prompt Claude Code · Sequence participant Claude Code Hook entry · Sequence participant Hook entry Review worker · Sequence participant Review worker DeepSeek Flash · Sequence participant DeepSeek Flash Claude Opus 5.5 · Sequence participant Claude Opus 5.5 Review results · Sequence participant Review results Delivery · Sequence participant Delivery Legend reply crosses a boundary async or planned message

The short answer

  • • It records each edit, starts a detached review when the turn ends, and shows the result on the next prompt
  • • Claude never waits for it

Not shown here

  • • The turn log, router, ranker, settings and ledger, which the hooks and worker use along the way, and the tests, which run only on HARD changes
  • • Connected but out of scope: Turn log and jobs, Settings, Router, Project tests, Ranker, Ledger

What it guarantees

  • • Claude never waits for a review: the Stop hook starts a detached worker and returns; results arrive on the next prompt
  • • Only confirmed findings go back to Claude, at most two turns in a row: an unconfirmed claim sent as an instruction would have Claude fix code that may be correct, and a cap stops fix loops