{"version":"2.1.335","anchor":"hosted-worker-launch-folder-plugin-trust-grant-new-env-var","canonical_anchor":"hosted-worker-launch-folder-plugin-trust-grant-new-env-var","heading":"Hosted sessions can be told to trust plugins in the launch folder","tier":"use","area":"Plugins","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/hosted-worker-launch-folder-plugin-trust-grant-new-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Hosted sessions can be told to trust plugins in the launch folder\n\nA new CLAUDE_CODE_LAUNCH_FOLDER_PLUGINS_TRUSTED variable lets a hosted session trust plugins in the folder it starts in\n\n**What**\n\nClaude Code reads a new environment variable, `CLAUDE_CODE_LAUNCH_FOLDER_PLUGINS_TRUSTED`, once at startup and removes it straight away so later processes don't see it. When it is set, Claude Code records trust for plugins in the folder it started in, but only if all of these hold:\n\n- it is running as a hosted worker\n\n- it is not a child session started by another session\n\n- the folder is the top of a git checkout\n\nIf a check fails, it logs that it was not a hosted worker or not a checkout root. If they pass, it records the grant along with the git program found on a filtered search path and the branches to use: `CLAUDE_CODE_BASE_REF` if set, otherwise main or master. When Claude Code launches sessions in a terminal other than iTerm2, it sets the variable to empty for them.\n\n**Why**\n\nA managed host can have plugins in the launch folder trusted without a trust prompt, while ordinary local sessions are not affected.\n\n- Area: Plugins\n- Names: `CLAUDE_CODE_LAUNCH_FOLDER_PLUGINS_TRUSTED`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}