{"version":"2.1.327","anchor":"shell-head-start-before-first-bash-call","canonical_anchor":"shell-head-start-before-first-bash-call","heading":"Claude Code starts preparing a shell before the first Bash command arrives","tier":"soon","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/shell-head-start-before-first-bash-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Claude Code starts preparing a shell before the first Bash command arrives\n\nClaude Code now begins setting up a shell as soon as a Bash command starts arriving, unless `CLAUDE_CODE_DISABLE_SHELL_HEAD_START` is set\n\n**What**\n\nClaude Code now begins preparing a shell early, a \"head start\". A shell is the command-line program that runs Bash commands. The preparation starts as soon as the model begins sending a Bash command, before the full command has arrived.\n\nThe head start is only used when all of these hold:\n\n- No `PreToolUse` hooks are set up. Hooks are your own scripts that run before a tool is used and can block it.\n\n- You are not in plan mode, where Claude only plans and does not make changes.\n\n- No permission restrictions limit how the command may run.\n\nTo turn it off, set the environment variable `CLAUDE_CODE_DISABLE_SHELL_HEAD_START`. The feature is on unless it is switched off remotely. A separate PowerShell path on Windows depends on other remotely controlled settings.\n\n**Why**\n\nGetting the shell ready while the command is still arriving cuts the wait before the first Bash command runs.\n\n- Flag `tengu_amber_kettle`: Not enough to say (read for one account on one subscription tier against v2.1.327; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Shell\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}