Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.228 Home All releases olderv2.1.227 v2.1.229newer
Claude Code v2.1.228

Transcript cleanup prunes a new sidecar file and refuses risky directory names

You'll notice
Useful2 Signal2
Sessions

Cleanup now deletes leftover per-directory sync files so they stop piling up next to transcripts.

What

Retention cleanup now recognises and deletes the per-directory sync-state file written next to a transcript as <name>.dir-sync.json, along with its temporary variants, so these no longer accumulate.

Details
  • The check made before recursively removing a session's companion directory was tightened. It previously only rejected empty, . and .. names.
  • It now also rejects names containing path separators, reserved or device-like names, names ending in a dot or space, and names ending in .jsonl.
Evidence

.dir-sync.json

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.228 →