You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Managed setting to disable --plugin-dir (or restrict it to approved paths) #5639
Describe the feature or problem you'd like to solve
We lock down Copilot customizations on managed devices with strictKnownMarketplacesand strictPluginOnlyCustomization (skills, agents, hooks, extensions), so only plugins from approved marketplaces load. In our tests, copilot --plugin-dir <dir> still loads the skills, agents and hooks of a local plugin under this full lockdown. None of the documented managed keys turns it off. allowManagedHooksOnly stops only the hooks, and it also blocks hooks of approved marketplace plugins that aren't force-enabled. So any user can bypass the policy with one command-line flag...
Proposed solution
A managed setting that disables --plugin-dir , for example "allowPluginDir": false , or makes it obey strictPluginOnlyCustomization / strictKnownMarketplaces
An optional allow-list of directories would also work. When the flag is blocked, Copilot should show a clear "blocked by managed policy" message, like it does for marketplaces.
Example prompts or workflows
Enterprises that distribute reviewed skills through an internal marketplace need the managed policy to be the only way customizations load. --plugin-dir is useful for authors testing plugins, but it should be under admin control.
Environment. Copilot CLI (current release), managed settings deployed through MDM.
Activity