{"version":"2.1.326","anchor":"hooks-under-bare-plugin-hooks-that-managed-settings-enabl","canonical_anchor":"hooks-under-bare-plugin-hooks-that-managed-settings-enabl","heading":"Bare mode: managed plugin hooks still run and the API key shortcut is skipped","tier":"notice","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hooks-under-bare-plugin-hooks-that-managed-settings-enabl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Bare mode: managed plugin hooks still run and the API key shortcut is skipped\n\nUnder --bare or CLAUDE_CODE_SIMPLE, hooks from admin-managed plugins still run and the ANTHROPIC_API_KEY credential shortcut is skipped\n\n**What**\n\n`--bare` is a minimal mode for scripted runs that skips most automatic setup. It sets `CLAUDE_CODE_SIMPLE`. Two parts of it changed.\n\nHooks are scripts that run at set points. Under bare mode:\n\n- Your own plugins' hooks never fire, but session hooks and hooks of plugins that managed settings (settings set by your organization) enable still run. Before, settings-file, flag, policy and plugin hooks never fired there.\n\n- Help text now says `--bare` and `--safe-mode` leave hooks of managed plugins active, and that managed policy hooks and managed plugins' hooks still apply.\n\n- The skip message now reads `Skipping plugin hooks - safe mode disables a person's installed plugins and managed settings enable none`.\n\n- The explanation of why only managed and built-in plugins run now names `--safe-mode` alongside `allowManagedHooksOnly` and `disableAllHooks`.\n\n- Plugin hook registration was reworked to track decisions, narrowings and worktree refusals.\n\nSign-in:\n\n- The credential check no longer takes its `ANTHROPIC_API_KEY` shortcut when `--bare` or `CLAUDE_CODE_SIMPLE` is set.\n\n- The LLM gateway settings are now passed to background sessions through a new check rather than `ANTHROPIC_BASE_URL` alone. The message now reads `bg: this session's LLM gateway is not passed to a session in another folder`.\n\n**Why**\n\nPlugins your organization manages keep working in bare and safe mode, so admin controls are not lost in scripted runs. How sign-in is resolved under bare mode and for background sessions has also changed, which is worth checking if you rely on an API key or a gateway.\n\n- Area: Hooks\n- Names: `--bare`, `--safe-mode`, `CLAUDE_CODE_SIMPLE`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}