Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

Workflow scripts can mark a shared prompt opening when starting an agent

The workflow agent() call accepts a new sharedHeadLength option, and a bad value stops the agent from starting

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

Unclear Whether sharedHeadLength affects anything beyond the agent's label and preview is not stated.

What

A workflow is a script that tells Claude Code to start helper agents (subagents) and pass them prompts. Its agent() call now accepts a sharedHeadLength option: the number of characters at the start of the prompt that are shared with other agents, for example head.length.

  • sharedHeadLength must be a whole number, 0 or more. You can also leave it out.
  • Any other value makes Claude Code refuse to start that agent.
  • When it is set, Claude Code leaves the shared opening out of the agent's label and preview, so each agent shows the part of its prompt that is different.
Why

Workflow authors who give many agents the same long opening can now get labels and previews that show what each agent is actually for. Check the value you pass, since a wrong one stops the agent from starting.

Read from
Names in the bundlesharedHeadLength
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether `sharedHeadLength` affects anything beyond the agent's label and preview is not stated.

See this entry in the whole of v2.1.326 →

Feedback