{"version":"2.1.331","anchor":"sideload-flags-blocked-by-policy-now-exit-with-a-reason","canonical_anchor":"sideload-flags-blocked-by-policy-now-exit-with-a-reason","heading":"Plugin and agent flags blocked by policy now stop Claude Code with a reason","tier":"notice","area":"Plugins","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/sideload-flags-blocked-by-policy-now-exit-with-a-reason","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Plugin and agent flags blocked by policy now stop Claude Code with a reason\n\nWhen policy disables loading extra plugins or agents, --plugin-dir, --plugin-url and --agents now print an error and exit\n\n**Unclear.** Which policy turns off sideloading is not stated.\n\n**What**\n\nSideloading means loading plugins or subagents for one session from the command line. When sideloading is turned off by policy, these flags now print an error and stop Claude Code:\n\n- `--plugin-dir`\n\n- `--plugin-dir-no-mcp`\n\n- `--plugin-url`\n\n- `--agents`\n\nBefore, an error was only raised when `CLAUDE_CODE_PLUGIN_DIRS` was set. Startup also now waits on some stored settings and runs a check that can stop it early.\n\n**Why**\n\nIn managed setups, these flags are rejected the same way every time, with a reason, instead of being let through.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: yes"}