{"version":"2.1.333","anchor":"spawn-env-probe-and-shell-function-wrappers-gated-by-bot-pro","canonical_anchor":"spawn-env-probe-and-shell-function-wrappers-gated-by-bot-pro","heading":"Search commands and the shell environment get new, switched-off-by-default changes","tier":"soon","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/spawn-env-probe-and-shell-function-wrappers-gated-by-bot-pro","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Search commands and the shell environment get new, switched-off-by-default changes\n\nNew behind-a-switch changes add a zsh exit-code wrapper for searches, a warning for searches over other apps' Library data, and an environment check\n\n**Unclear.** It is not known whether any of the three switches is on when the server sends nothing.\n\n**What**\n\nClaude Code runs commands in a shell, the command-line program on your computer. This release adds three changes to how it sets that up, each behind its own switch that Anthropic's servers control:\n\n- Search commands: new shell functions for `grep` and `find` (the usual tools for searching files) include a wrapper, for the zsh shell only, that handles the code a command returns when it finishes.\n\n- Library warning: a check warns when a search would cover data that other apps keep under `~\/Library`.\n\n- Environment check: Claude Code can inspect the environment (the set of named values, called environment variables, that programs start with) that a started command would receive, once with Claude Code's own agent variables and once without.\n\nThe setting `CLAUDE_CODE_DONT_INHERIT_ENV` now also decides whether that environment check starts from an empty environment.\n\n**Why**\n\nThese change what happens in the shell where Claude runs commands, without any visible setting. The `~\/Library` warning in particular can stop a search from reading other apps' data.\n\n- Area: Bash Tool\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"}