{"version":"2.1.329","anchor":"hard-deny-auto-mode-rules-env-var-added","canonical_anchor":"hard-deny-auto-mode-rules-env-var-added","heading":"Auto mode gains a hard-deny rule list variable for remote and self-hosted sessions","tier":"internal","area":"Auto Mode","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/hard-deny-auto-mode-rules-env-var-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Auto mode gains a hard-deny rule list variable for remote and self-hosted sessions\n\nA new CCR_AUTO_MODE_HARD_DENY variable sits beside the allow, soft-deny and environment lists for auto mode in remote sessions\n\n**Unclear.** How hard_deny rules are applied, and how they differ from soft_deny rules, is not known.\n\n**What**\n\nAuto mode lets Claude act without asking you for each step, using lists of rules that say what is allowed and what is not. In remote sessions these lists are passed in through environment variables, which are named values a program reads when it starts. Until now there were three: `CCR_AUTO_MODE_ALLOW`, `CCR_AUTO_MODE_ENVIRONMENT` and `CCR_AUTO_MODE_SOFT_DENY`. This release adds a fourth.\n\n- `CCR_AUTO_MODE_HARD_DENY` is a new variable, mapped to a `hard_deny` entry next to `allow`, `environment` and `soft_deny`.\n\n- The environment of the self-hosted runner, a machine you manage that runs Claude Code sessions, now clears `CCR_AUTO_MODE_HARD_DENY` (sets it to nothing) when it starts a process, just as it already cleared the other `CCR_AUTO_MODE_*` variables.\n\n- Separately, a background process that the runner takes over can now be given a `scrubSandbox` callback, a piece of cleanup code that runs when the process is marked killed or completed.\n\n**Why**\n\nThe new name suggests a separate, stricter deny list for auto mode alongside the existing soft-deny list, though the members do not show how it is used. Clearing it on the self-hosted runner means a value left over from elsewhere is not passed on to the sessions it starts.\n\n- Area: Auto Mode\n- Names: `hard_deny`\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}