Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

Programs running Claude Code can mark a PostToolBatch hook as idle so it is skipped

Programs that run Claude Code through the SDK can now mark a PostToolBatch hook as idle, and Claude Code then skips it

Use it now New Features
JSON All of v2.1.336
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.336,
What probably matters to youSection of the release
What

A hook is a script that runs at a set point. PostToolBatch hooks run after a batch of tool calls Claude made at the same time has finished, before the next request to the model. Programs that run Claude Code through the SDK, its programming interface, can now send a request to mark one of these hooks as idle or not idle. Hooks marked idle are skipped when Claude Code picks which hooks to run.

The request must name the PostToolBatch event, a non-empty matcher (the pattern that picks the hook) and idle set to true or false. Anything else is rejected with "Invalid set_hook_idle: event must be PostToolBatch, matcher a non-empty string, and idle true or false".

Why

A program can switch a PostToolBatch hook off and on again while Claude Code is running, without changing the hook settings.

Read from
Names in the bundlePostToolBatch

See this entry in the whole of v2.1.336 →

Feedback