AI Coding Tools Brief source

Recovering lost code

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

Claude Code's local session logs in ~/.claude/projects can serve as a recoverable copy of code lost from /tmp, a practical safety net for agent-heavy workflows.

Read this as

Simon Willison lost a feature he had written the day before, including the branch and worktree it lived in. He found the code had been written in a /tmp folder that vanished after his computer crashed and rebooted. The code still survived inside ~/.claude/projects/, the session logs that the Claude Code agent tool keeps locally. He used Claude Code to extract it and rebuild the missing feature.

Willison describes 'parallel agent psychosis': losing a whole feature worked on the previous day across branches, worktrees and cloud instances. The code survived in ~/.claude/projects/ session logs, and Claude Code extracted and rebuilt it. Posted 19 February 2026, this is a personal note, not a product announcement; the takeaway is that agent session logs are a de facto backup. No costs, vendors or timelines are given.

The lost code was an uncommitted prototype in /tmp, wiped by a reboot. Claude Code retains per-project session transcripts under ~/.claude/projects/, which preserved the generated code and diffs. Willison prompted Claude Code to recover the feature from those logs. The note gives no retention policy, tooling details or benchmark figures.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison Claude Code WorkOS Datasette Qwen 3.8 27B Pyodide

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

Assessing AI Impact: Notes for Your CFO

Executive teams now have a CFO-friendly framework for deciding whether AI coding tools justify their spend, which ranges from hundreds to thousands of dollars per developer per month, rather than relying on conference anecdotes.