What
New CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable allows disabling the background task functionality.
Usage
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1
claudeDetails
- When set, the
run_in_backgroundparameter documentation is hidden from tool descriptions - The
ctrl+bshortcut to background a task is disabled - Background agent execution via
run_in_backgroundparameter 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.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable to disable all background task functionality including auto-backgrounding…