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.