Repository navigation
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
extraKnownMarketplacesandenabledPluginsentries in Copilot's documented settings surface. Prefer.github/copilot/settings.local.jsonfor 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/ormcp.jsonfor 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
- Add a single Copilot registration owner over canonical Agent Plugin IR; do not reparse
plugin.json. - Generate/update the APM marketplace transactionally after dependency materialization.
- Merge settings with explicit ownership, collision detection, rollback, and preservation of user-authored keys.
- Integrate install, restore/update, list/status, uninstall, and prune for project and global scopes.
- 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.
- Keep
apm compilenon-destructive for the native plugin and avoid double-loading through legacy integrators.
Acceptance criteria
- An exact Agent Plugins 1.0 package (
plugin.jsoncanonical$schema,skills/, rootmcp.json) completespack -> install -> plain copilotin project and global scope. - Project plugin is absent outside its repository; global plugin is available from another repository.
- Skill discovery and MCP
initialize/tools/listare proven through Copilot. - Copilot reports a live plugin;
installed-plugins/remains empty and noconfig.json:installedPluginsentry is created. apm updatechanges live bytes observed after Copilot restart/new session withoutcopilot 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.mdremain 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.
Activity
feat(install): register Agent Plugins natively with GitHub Copilot (m…