What the hook does
- At the start of a chat: reads the brief once.
- At every prompt: save as you go, confirm what you checked.
- At the end of a turn: sends work without a save back once.
- After compaction: saves what the summary would lose.
- After a commit: leaves a checkpoint.