Unclear It is not clear what marking the install as background changes about when plugins become usable in a headless session.
A headless session is one where Claude Code runs without its interactive screen, for example from a script. When such a session installs plugins (add-ons that give Claude Code extra features), the install is now marked as a background install. It is not marked that way if you set the environment variable CLAUDE_CODE_SYNC_PLUGIN_INSTALL, a named value set in your shell before starting Claude Code.
Two related changes:
- When Claude Code refreshes the MCP servers that plugins provide (MCP servers connect Claude Code to outside tools and data), it now records which servers were denied by name and which were left out because of a lock.
- After Claude Code finishes waiting for plugin installs, it records the plugins for the next start.
This changes when plugins get installed in headless sessions and how their MCP servers are reported. Set CLAUDE_CODE_SYNC_PLUGIN_INSTALL if you need the install not to run as a background install.
tengu_dapper_platypus Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.333: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.333. It isn't a statement about your account. What a flag value here can and cannot tell you
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.
* **Keep `CLAUDE_CODE_SYNC_PLUGIN_INSTALL`.** It makes a session's first message wait until Claude Code has cloned the marketplace and installed the plugin. Without it, Claude Code installs from a git marketplace in the background, for a l…third-party/claude-desktop/extensions see the edit
It is not clear what marking the install as background changes about when plugins become usable in a headless session.
Anthropic's documentation has since written up CLAUDE_CODE_SYNC_PLUGIN_INSTALL, on MCP, plugins, skills, and hooks.