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

The claude logs escape-sequence filter is an allow-list

You'll notice
Useful2 Signal2
Elsewhere

Log replay keeps only escape sequences it recognises and drops everything else.

claude logs
What

Rather than stripping known-bad sequences, log replay keeps only sequences it recognises and drops everything else, including private-mode and parameter-prefixed ones.

Details
  • Screen-erase is allowed only with parameters 0, 1 or 2; scroll-down only with a single numeric parameter; plus a small set of two-character escapes.
  • The parser also reports whether the stream ever moved the cursor to an absolute position, which is what triggers the trailing reposition.
  • Unconditional; the reposition only applies when output is a terminal.
Evidence

cursorAddressed

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