Claude Hookbook

Context hooks

Re-inject project state at session start and after compaction.

Re-inject project context after compaction

Restores your project's key facts into Claude's context right after a compaction wipes the details.

SessionStartcompactlow riskneeds manual check

Session-start repo snapshot

Hands Claude a bounded snapshot - branch, dirty state, recent commits - at every session start and resume.

SessionStartstartup|resumelow riskneeds manual check