CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS
Updated by Alex Sorokoletov
CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS is a Claude Code environment variable: Sets how often, in seconds, a dispatched background worker reports progress ("still running", last tool call, minutes elapsed). Applies when CLAUDE_AUTO_BACKGROUND_TASKS is on; the coordinator path uses its own CLAUDE_CODE_COORDINATOR_WORKER_CHECKIN_SECONDS. Removed between v2.1.269 and v2.1.283, so current releases ignore it. It is listed in the official reference.
| Status | Removed between v2.1.269 and v2.1.283 |
|---|---|
| Added | Added between v2.1.247 and v2.1.252 |
| Category | Sessions |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS": "<value>"
}
}Release notes that mention it
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
- claude-code-env-vars-v2-1-252
Related variables
CLAUDE_AUTO_BACKGROUND_TASKS: Enable automatic background task execution.CLAUDE_CODE_BRIDGE_CHILD_AUTO_DEFAULT: Makes a bridge child default to auto mode (a pending auto decision resolves to auto); ignored when auto mode is disabled on an unattended remote session.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: Disable background tasks entirely.CLAUDE_CODE_DISABLE_QUIET_BACKGROUND_WAIT: When set, disables the quiet long background wait, so the session returns instead of entering a long sleep while background work is idle.CLAUDE_CODE_BRIDGE_CHILD_HELD_TO_AUTOCLAUDE_TEST_BACKGROUNDCLAUDE_BG_BACKEND: Set to "daemon" to route background work through a daemon backend.CLAUDE_BG_DISPATCH_ENTRYPOINT: In a background session (session kind bg), supplies the entrypoint identifier used in place of the normal one, when it passes a validity check.
Frequently asked questions
What does CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS do?
Sets how often, in seconds, a dispatched background worker reports progress ("still running", last tool call, minutes elapsed). Applies when CLAUDE_AUTO_BACKGROUND_TASKS is on; the coordinator path uses its own CLAUDE_CODE_COORDINATOR_WORKER_CHECKIN_SECONDS.
Which Claude Code version has CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS?
Removed between v2.1.269 and v2.1.283, so current releases ignore it.
How do I set CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS?
Export it before starting Claude Code (export CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.