Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.287 ·

Background agents and background commands can now be refused

Background agents and background Bash commands gain new refusal paths, new wording for the model, and per-agent ownership on remote hosts

Group of 5 You'll notice Improvements
JSON All of v2.1.287
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
ImprovementsKind: in v2.1.287,
What probably matters to youSection of the release

Unclear It is not settled that this only affects remote sessions, or what the limit is.

What

A background agent or command keeps running while Claude carries on with other work. Claude asks for this with run_in_background. This release adds several ways such a request can be turned down, and new wording about it:

  • Bash: for a run_in_background command, Claude Code now asks for a background shell reservation (remoteCall.backgroundShells.reserve()). If that returns a message, the call is blocked with error code 12.
  • Agent tool parameter: the run_in_background parameter of the Agent tool, which starts a subagent (a helper Claude that works on a side task), now takes its description from a setting (parameterDescription). It is left out when background tasks are disabled. The agent launcher also has a new check on background launches.
  • Agent tool wording: a new version of the Agent tool description says a subagent runs in the background only if run_in_background: true is passed, and that even then it may run in the foreground or be refused. A matching "Background agents" usage note was added. The Agent tool description captured under this release is unchanged at 7,081 characters, so this wording was not seen in use.
  • Launch refusals: a new rule can refuse background agents with "Background agents cannot be started in this session right now. Run the agent without run_in_background." Resuming an agent in the background can fail with "This agent cannot be resumed in the background in this session. Start a new agent instead."
  • Comment agents: a background agent working on an artifact comment is denied starting subagents, monitors, background commands or scheduled work, with a message saying "This comment thread is your only job". If it finishes after launching refused work, it is engaged again.
  • Remote hosts: background commands started on a remote host are now tracked per agent. Using a task or shell id that this agent did not start on that host fails with "No background command with that ID was started on".
  • Fleet view: typing /stop in the fleet-view peek now stops the session.

Why

Background work can now be limited per session and per agent. If Claude reports that a background agent or command was refused, running it in the foreground is the way forward, as the messages themselves suggest.

Read from
Names in the bundlerun_in_background
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.

Added since A small documentation edit on Orchestrate teams of Claude Code sessions touched a line naming run_in_background after this was published. * **No background subagents from in-process teammates**: an in-process teammate's own subagents run in the foreground, because a teammate's background work can't outlive the lead's process. Claude Code returns an error when a teammate spaw… agent-teams see the edit
Confirmed since Anthropic's documentation has since written up run_in_background, on Agent SDK reference - TypeScript. Notification when a background task completes, fails, or is stopped. Background tasks include `run_in_background` Bash commands, [Monitor](#monitor) watches, and background subagents. For the `run_id` and `ambient` fields, see [`SDKTaskSta… agent-sdk/typescript 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 doubtIt is not settled that this only affects remote sessions, or what the limit is.
Anthropic's documentation agreesAnthropic's documentation has since written up run_in_background, on Agent SDK reference - TypeScript.

See this entry in the whole of v2.1.287 →

Feedback