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.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Individual transcript records can be removed from a session stream

Under the hood
Useful2 Signal4
Sessions Notable

Code exists to delete one record from a stored session by rewriting the stream.

Single-record deletion from a session transcript is implemented as the machinery a targeted deletion would need, with no surface described here.

What

New code can delete a single record from a stored session by rewriting the stream in place, which is the machinery a targeted deletion would need.

Details
  • It walks records backwards looking for the target id in the raw bytes, then parses to confirm before rewriting.
  • The rewrite is done in place with a precondition on the current version, retried up to three times if the stream changed underneath it.
  • It stops and reports rather than looping if the stream exceeds a read budget or the backward cursor fails to move.
Evidence

Tombstone removal abandoned: the backward record cursor did not advance

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.247 →