To ensure we don't finish a session without leaving a record after having Claude Code do some work, we use 'hooks' here.