Follow Discord
Sweep 08 Oct 2026 · 18:53Z Build v2.1.295 516 read Stable v2.1.286 Latest v2.1.295 Next v2.1.295 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.292 ·

SDK messages can now say which subagent wrote them

SDK messages gain an optional agent_id naming the exact subagent that produced them; it is absent on main-thread messages

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

Unclear Whether Claude Code always fills in agent_id on subagent messages is not confirmed.

What

Messages that Claude Code sends through the SDK (the kit developers use to build on Claude Code) can now carry an optional agent_id field. It identifies the subagent (a helper agent Claude starts for part of a task) that produced the message. Its value is the task_id used in that subagent's task events, and it stays the same when the subagent is resumed. Messages from the main conversation do not have it. Before, only the subagent's type was given.

Why

Programs built on Claude Code can now tell which particular subagent wrote a message, not just what kind of subagent it was.

Read from
Names in the bundleagent_id
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up agent_id, on Subagents in the SDK. Messages from within a subagent's context include a `parent_tool_use_id` field. In TypeScript, each assistant and user message a subagent produces also carries [`agent_id`](/docs/en/agent-sdk/typescript#sdkassistantmessage): the `task_id` … agent-sdk/subagents see the edit
Added since A small documentation edit on Hooks reference touched a line naming agent_id after this was published. | `agent_id` | On this event, the [common input field](#common-input-fields) identifies the subagent or [in-process teammate](/docs/en/agent-teams#choose-a-display-mode) creating the task. May be absent. Requires Claude Code v2.1.290 or la… hooks see the edit
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 Claude Code always fills in `agent_id` on subagent messages is not confirmed.
Anthropic's documentation agreesA small documentation edit on Hooks reference touched a line naming agent_id after this was published.

See this entry in the whole of v2.1.292 →

Feedback