Language: python Source: anthropics/claude-code#37464 Estimated lines: 80
Context compression causes complete memory loss of recent tool calls, making Claude forget completed file operations and attempt to redo entire batches of work.
A PostToolUse hook that appends a one-line summary of each completed Write and Edit tool call to a .claude/checkpoint.md file, creating a durable record that survives context compression.
["work_checkpoint.py","install.sh","README.md"]