Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.227 ·

Hook for syncing a worker directory around each headless turn

Headless runs can sync a worker directory before and after each turn, if the host provides a callback.

Nothing to try yet In Development
JSON All of v2.1.227
Nothing to try yetTier: how much it should matter to you
1Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
In DevelopmentKind: in v2.1.227,
In DevelopmentSection of the release

A per-turn sync callback in the headless loop is accepted but nothing in the CLI supplies one.

What

The headless streaming loop accepts an optional callback that runs before each turn and again after it, receiving the message IDs from that turn. It only runs when the embedding caller supplies one, and nothing in the CLI itself does.

Evidence

workerDirSync

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.227 →

Feedback