Skip to content

Managed setting to disable  --plugin-dir  (or restrict it to approved paths) #5639

Backlog

Description

@dsebastien

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.

Additional context

No response

Activity

  1. added
    area:enterprise
    area:plugins
    and removed on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:enterprisearea:plugins

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions