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.227 Home All releases olderv2.1.226 v2.1.228newer
Claude Code v2.1.227

Remote sessions can adopt the host's auto-compact settings

You'll notice
Useful3 Signal3
Compaction

Remote sessions now use the host's auto-compact settings for context and token display.

What

A session running over the SDK or bridge can now be told the host's auto-compact configuration (whether it is on, the effective context window, the threshold, and whether it is enforced) and will use it for its own token-usage and context display, instead of guessing from local settings. A seed value can also arrive at session start.

Details
  • Carried as a new control frame type autocompact_state, stored in app state as remoteAutocompactState.
  • Successful adoption is reported as tengu_remote_autocompact_state_adopted, including enabled, enforced, source and via.
  • Frames that do not parse are dropped once, with the log line "[sdkMessageAdapter] Dropping malformed autocompact_state frame" and an invalid_frame error report.
  • The session state object gained onAutocompactInputsChanged and onConversationReset callbacks, which fire when the compaction window, model or settings change.
Evidence

tengu_remote_autocompact_state_adopted, [sdkMessageAdapter] Dropping malformed autocompact_state frame

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.227 →