{"version":"2.1.333","anchor":"passive-flag-on-task-notification-messages-and-thinking-toke","canonical_anchor":"passive-flag-on-task-notification-messages-and-thinking-toke","heading":"SDK stream can carry a thinking-token estimate and passive task notices","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/passive-flag-on-task-notification-messages-and-thinking-toke","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### SDK stream can carry a thinking-token estimate and passive task notices\n\nTask notifications can be marked passive, and a new thinking_tokens system message reports estimated thinking tokens and their change\n\n**Unclear.** Whether the `thinking_tokens` message is sent by default is not known.\n\n**What**\n\nPrograms that drive Claude Code through the SDK (the toolkit for running Claude Code from your own code) read a stream of messages from it. Two things in that stream changed:\n\n- Task notifications can now be marked passive.\n\n- A system message of type `thinking_tokens` reports `estimated_tokens` and `estimated_tokens_delta`, an estimate of how many tokens Claude has spent thinking and how much that changed.\n\n**Why**\n\nIf you consume the message stream, you may see a message type you don't handle yet, and you can use it to follow how much thinking is going on.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}