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.274 ·

Plugins can register custom agents at runtime

Plugins can now register their own custom agents, which get merged into the session's available agents automatically

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

What

  • Plugins gain a new function hook, register_agent (alongside the existing hooks for registering commands and tools), letting a plugin define a custom agent.
  • The plugin SDK exposes an agent.register call that takes a name, description, and prompt (plus other fields), validating that the name only contains letters, digits, underscores, or hyphens and is no longer than 64 characters.
  • Agents registered this way at runtime are merged into the session's list of available agents, tagged as coming from a plugin (source: "plugin", registeredAtRunTime: true).
  • The session/engine layer gains a refreshAgents method, mirroring the existing refreshCommands, to re-read custom agent definitions on demand.

Why This lets plugins extend Claude Code with their own specialized agents without requiring a restart, the same way plugins can already register custom commands and tools.

Read from
Names in the bundleagent.register
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.register, on Claude Code changelog. * Fixed `$.agent.register` succeeding from a mod's hook that was still running after the mod was reloaded or removed; the call is now refused changelog 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 agent.register, on Claude Code changelog.

See this entry in the whole of v2.1.274 →

Feedback