{"version":"2.1.333","anchor":"plugin-function-hook-subprocess-runs-in-its-own-process-grou","canonical_anchor":"plugin-function-hook-subprocess-runs-in-its-own-process-grou","heading":"Plugin programs now start through a separate launcher with their own cleanup","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-function-hook-subprocess-runs-in-its-own-process-grou","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin programs now start through a separate launcher with their own cleanup\n\nClaude Code starts plugin programs through a new launcher that moves risky environment variables aside and stops the program if Claude Code exits\n\n**What**\n\nClaude Code has a new way of starting programs that come from plugins. It runs them through the system shell, \/bin\/sh, in their own process group, which is a set of processes that can be stopped together.\n\n- Environment variables considered risky are moved out of the way and passed on under names starting with `CLAUDE_CODE_CHILD_ENV_`.\n\n- If Claude Code itself exits, the plugin program is stopped too.\n\n- If the program does not exist, Claude Code reports \"no such program\".\n\n**Why**\n\nPlugin programs are less likely to keep running after Claude Code has gone, and they start with a cleaner set of environment variables.\n\n- Area: Plugins\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}