Skip to content

[FEATURE] Install Agent Plugins natively for GitHub Copilot #2703

Closed

Description

Is your feature request related to a problem? Please describe.

APM can produce a conformant Agent Plugins 1.0 package, but apm install still rejects that same package. Users therefore cannot complete the expected lifecycle:

apm pack --format agent-plugin -> apm install -> copilot

This leaves Agent Plugins support producer-only and forces users toward --plugin-dir, a second copilot plugin install command, or primitive decomposition. None matches APM's project/global install contract.

Describe the solution you'd like

Add a GitHub Copilot native registrar that keeps each verified plugin intact and lets Copilot load it directly from APM's existing materialization:

  • Project: plugin remains under <project>/apm_modules/<dependency>.
  • Global: plugin remains under ~/.apm/apm_modules/<dependency>.
  • APM generates one directory marketplace with .github/plugin/marketplace.json; each entry points to the real plugin directory.
  • APM merge-owns only its extraKnownMarketplaces and enabledPlugins entries in Copilot's documented settings surface. Prefer .github/copilot/settings.local.json for machine-local project activation; shared repository settings should be explicit. Global activation uses ~/.copilot/settings.json.
  • Copilot loads the whole Agent Plugin natively. APM must not translate its skills/ or mcp.json for this target.

Gate this behavior on Copilot CLI >=1.0.81-8 and fail precisely on older clients rather than accepting their copy-based behavior. Enable it experimentally while 1.0.81 is prerelease; make it the preferred Copilot path after the feature reaches stable distribution.

Implementation shape

  1. Add a single Copilot registration owner over canonical Agent Plugin IR; do not reparse plugin.json.
  2. Generate/update the APM marketplace transactionally after dependency materialization.
  3. Merge settings with explicit ownership, collision detection, rollback, and preservation of user-authored keys.
  4. Integrate install, restore/update, list/status, uninstall, and prune for project and global scopes.
  5. Replace the blanket deployment boundary only when the package is spec-valid, the target is Copilot, and the qualified client capability is present. Preserve current fail-closed behavior for other targets/versions.
  6. Keep apm compile non-destructive for the native plugin and avoid double-loading through legacy integrators.

Acceptance criteria

  • An exact Agent Plugins 1.0 package (plugin.json canonical $schema, skills/, root mcp.json) completes pack -> install -> plain copilot in project and global scope.
  • Project plugin is absent outside its repository; global plugin is available from another repository.
  • Skill discovery and MCP initialize/tools/list are proven through Copilot.
  • Copilot reports a live plugin; installed-plugins/ remains empty and no config.json:installedPlugins entry is created.
  • apm update changes live bytes observed after Copilot restart/new session without copilot plugin update.
  • apm uninstall/prune removes only APM-owned settings and materialization, with no orphaned Copilot state.
  • User settings collisions fail safely; unrelated settings survive byte-for-byte/semantically as appropriate.
  • Existing package installs, legacy pack formats, non-Copilot targets, and .github/workflows/shared/apm.md remain unchanged.
  • Lifecycle tests use the canonical spec fixtures already pinned by tests/integration/test_agent_plugin_spec_contract.py, plus an opt-in binary qualification test for the supported Copilot version.

Describe alternatives you've considered

  • --plugin-dir: works live but must be supplied on every invocation.
  • copilot plugin install: on stable 1.0.80 copies into global Copilot state and leaves APM without clean project lifecycle ownership.
  • Writing Copilot's config.json/installed-plugin cache: undocumented private-state mutation; reject.
  • Decomposing into loose skills/MCP: loses plugin identity and recreates the translation layer this standard should replace.

Additional context

Empirically verified on the official Copilot CLI v1.0.81-14 macOS ARM64 artifact (copilot-darwin-arm64.tar.gz, 84,657,857 bytes, SHA-256 faa3a6deae4cc6eda73c2ee72373cc45961ce0724158d492e8e466923b4e43fb). The exact portable fixture loaded live in project and global scope; its skill was discovered; root mcp.json completed initialize and tools/list; source edits propagated; project isolation held; list/update/uninstall behavior was verified; no plugin copy or private registration was created.

The live-directory behavior starts at v1.0.81-8. Stable v1.0.80 predates it and must not be treated as equivalent.

Foundation: #2522 and merged PR #2654.

Activity

  1. added
    type/feature
    on Aug 27, 2026
  2. added a commit that references this issue on Aug 30, 2026
    72861f0
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

    type/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions