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 ·

New plugin-hooks 'wait/sleep' primitive with input validation

Plugin hooks gained a 'wait' primitive that pauses for a validated number of milliseconds

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaPlugin Hookswhat it touches
KindNew Featuresin v2.1.271,
Use it now

Plugin hooks gained a 'wait' primitive that pauses for a validated number of milliseconds

What

A new operation was added to the plugin hooks API that lets a hook pause execution for a given number of milliseconds, specified as { ms }. The value is validated to ensure it's a non-negative number before the wait happens; an invalid value produces an error naming the bad input.

Why

This gives plugin authors a built-in way to introduce a deliberate delay in a hook, with validation that catches bad input early instead of failing unpredictably later.

See this entry in the whole of v2.1.271 →