Keep task instructions and saved progress after Claude Code compaction with a SessionStart hook, durable checkpoint files, and verification steps.