Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.280 ·

Plugin $.session.messages and $.session.usage now accept an agentId/as parameter

Plugin session.messages and session.send can now target a specific agent via an agentId/as parameter

Use it now Improvements
JSON All of v2.1.280
Use it nowTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PluginsArea: what it touches
ImprovementsKind: in v2.1.280,
What probably matters to youSection of the release
What

The plugin host operations $.session.messages and $.session.send now accept an optional {agentId, as} argument, where as must be "api" if it's given at all. Passing this lets a caller scope the call to a particular agent within a session, instead of always operating on the whole session.

Why

This lets plugins and SDK integrations work with the messages or output of one specific agent rather than the entire session, which matters when a session involves multiple agents.

Read from
Names in the bundleagentId
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 agentId, on Agent SDK reference - TypeScript. | `parent_agent_id` | `string \| null` | For messages from a [nested subagent](/docs/en/sub-agents#let-subagents-spawn-their-own-subagents), the `agentId` of the subagent that spawned it. `null` for main-session messages, messages from top… agent-sdk/typescript see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up agentId, on Agent SDK reference - TypeScript.

See this entry in the whole of v2.1.280 →

Feedback