Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 580 Bytes

File metadata and controls

17 lines (10 loc) · 580 Bytes

work-checkpoint-hook

Language: python Source: anthropics/claude-code#37464 Estimated lines: 80

Problem

Context compression causes complete memory loss of recent tool calls, making Claude forget completed file operations and attempt to redo entire batches of work.

Solution

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.

Expected Files

["work_checkpoint.py","install.sh","README.md"]