Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.4 ·

Environment Variable to Disable Background Tasks

Entry
JSON All of v2.1.4
EntryKind: in v2.1.4,
ChangesSection of the release
What

New CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable allows disabling the background task functionality.

Usage
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1
claude
Details
  • When set, the run_in_background parameter documentation is hidden from tool descriptions
  • The ctrl+b shortcut to background a task is disabled
  • Background agent execution via run_in_background parameter is disabled
  • Useful for environments where background task management is not desired or causes issues
Evidence

Go8() at line 280507 (background task doc generator, checks CLAUDE_CODE_DISABLE_BACKGROUND_TASKS); ifA at line 447674 (Task agent parameter schema, gated by same env var)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable to disable all background task functionality including auto-backgrounding…

See this entry in the whole of v2.1.4 →

Feedback