Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.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

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSDKwhat it touches
KindInternal Changesin v2.1.271,
Group of 2 Under the hood

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

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 →