Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

SDK-hosted sessions now report context usage and artifact counts

Claude Code now reports context-usage and artifact-count metadata back to SDK-hosted sessions

Group of 2 Under the hood Internal Changes
JSON All of v2.1.271
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.271,
Internal ChangesSection of the release

What

  • SDK-hosted sessions now report context_usage and artifacts count metadata back to the session's outbound handle, deduplicated against the last-reported values, with a suppression flag for artifacts.
  • The underlying state tracking gained matching fields, lastReportedContextUsage, lastKnownContextUsage, lastReportedArtifacts, lastKnownArtifacts, and artifactsEgressSuppressed, used consistently across the relevant reset paths.

Why This lets tools and integrations built on the Claude Code SDK see how much context a session is using and how many artifacts it has produced, without re-sending duplicate metadata.

See this entry in the whole of v2.1.271 →

Feedback