Problem
The longer a Claude Code session runs, the worse the model’s judgment gets. Anthropic calls it “context rot.” In one dissected 70 MB session dump, 93 % was noise: redundant JSON envelope metadata, stale tool results, old base64 screenshots. Only 3 % was actual conversation.
Clouded judgment while editing yields messy diffs. During deletions, it can destroy the project. Incident reports: December 2025, a user saw Claude run rm -rf … ~/ where the trailing ~/ expanded to the entire home directory. October 2025, another user watched rm -rf / execute from root; only file permissions saved the system. Deletion risk isn’t linear—it’s explosive.
My hard rule: if a session has ever run a delete command, I kill it and start fresh.
Approach








