Environment Variable to Disable Background Tasks #
New CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable allows disabling the background task functionality.
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1
claude
- 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
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)