Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Plugins can declare optional dependencies

Plugin manifests accept optionalDependencies, declined ones are remembered, manifests are validated, and a new agent_note field is added

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

What

A plugin's manifest is the file that describes it. Manifests can now list optionalDependencies next to dependencies. These are other plugins that are installed and enabled with the plugin by default.

  • You can disable or uninstall an optional dependency, and one that cannot be installed is skipped
  • Claude Code keeps a declinedPlugins list in a settings-like file. When automatic dependency cleanup disables a plugin, it is written to that list so it is not installed again. If that save may have failed, Claude Code warns "Could not save as declined"
  • Manifest checks now report an optionalDependencies value that is not a list ("'optionalDependencies' must be a list of plugin names"), a malformed entry, a name also listed in dependencies, and a version range that will be ignored
  • The field is open to all plugin authors, with no switch controlling it

Separately, the system message format in stream-json output, where each event is written as a line of JSON for another program, gains an optional agent_note field. It carries a note a plugin left for an agent about another agent's work.

Why

Plugin authors can offer helpful companion plugins without forcing them on you, and turning one off should stay turned off. Programs that read stream-json output may see the new agent_note field.

Read from
Names in the bundleoptionalDependencies

See this entry in the whole of v2.1.331 →

Feedback