GitHub Copilot and GitHub Packages Distribution
Status: canonical research
Last verified: 2026-11-25
This module is the single source of truth for GitHub Copilot native adapter locations and for the boundaries of GitHub Packages plugin distribution. Agent discovery paths and plugin formats are defined in Agent native ecosystem layouts; DCM-specific behavior is defined in Dynamic Context Manager.
Official sources
| # | URL | Accessed | Facts supported |
|---|---|---|---|
| 1 | https://opencode.ai/docs/plugins/ | 2026-11-25 | OpenCode plugin config supports published, versioned, scoped, local-directory, and file entries, but documented plugin add examples do not list custom npm registry specifications. |
| 2 | https://docs.claude.com/en/docs/claude-code/plugins | 2026-11-25 | Claude Code plugins bundle skills, agents, hooks, MCP servers, and commands. |
| 3 | https://docs.claude.com/en/docs/claude-code/plugin-marketplaces | 2026-11-25 | Claude Code marketplaces are catalogs with plugin entries and source information. |
| 4 | https://code.claude.com/docs/en/plugins/marketplace-reference.md | 2026-11-25 | Claude Code npm marketplace entries support package, version, and registry; custom registries must use HTTPS unless a user-configured default exists. |
| 5 | https://developers.openai.com/codex/plugins/ | 2026-11-25 | Codex uses the portable Agent Plugins model for skills, optional MCP servers, and optional lifecycle hooks. |
| 6 | https://developers.openai.com/plugins/build/plugins | 2026-11-25 | Codex marketplace npm sources support package, version, and HTTPS registry; registry values must not embed credentials, query strings, or fragments. |
| 7 | https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-plugin-reference | 2026-11-25 | Copilot CLI install specifications are plugin@marketplace, OWNER/REPO, OWNER/REPO:PATH/TO/PLUGIN, Git URL, or local path; npm registry specifications are not listed. |
| 8 | https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference | 2026-11-25 | Copilot CLI config lives under ~/.copilot or COPILOT_HOME; settings.json is JSONC; config.json is internal state; user agents/, skills/, hooks/, and instructions/ directories are documented. |
| 9 | https://docs.github.com/en/copilot/reference/plugin-and-marketplace-reference | 2026-11-25 | Copilot Agent Plugins use plugin.json, fixed skills/NAME/SKILL.md, root mcp.json, and com.github.copilot/ extension files. |
| 10 | https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry | 2026-11-25 | GitHub Packages npm registry is https://npm.pkg.github.com; package names are lowercase scoped @NAMESPACE/PACKAGE-NAME; authentication is required. |
| 11 | https://docs.npmjs.com/cli/v11/configuring-npm/npmrc | 2026-11-25 | npm supports .npmrc files, ${VARIABLE_NAME} substitution, and registry-scoped auth keys. |
| 12 | https://nodejs.org/api/os.html | 2026-11-25 | Node exposes portable host signals through built-in os APIs. |
GitHub Copilot native adapter
Copilot is a native sixth adapter. Its configuration home is ~/.copilot by default and may be relocated with COPILOT_HOME. Personal configuration takes precedence over repository-local configuration.
| Scope | Native location | Installer use |
|---|---|---|
| Global | COPILOT_HOME/settings.json | JSONC settings snippet, merged only as a fragment. |
| Global | COPILOT_HOME/agents/, skills/, hooks/, instructions/ | Portable canonical assets copied as native fragments. |
| Local | .github/copilot/settings.json | Project settings candidate. |
| Local | .github/copilot/settings.local.json | Personal local override candidate; never a credential store. |
| Plugin | plugin.json, skills/NAME/SKILL.md, mcp.json, com.github.copilot/ | Native Agent Plugin layout only; no fabricated component arrays. |
Copilot’s internal config.json and installed-plugin state are read-only sources and are never installer destinations. Copilot preCompact can notify and inject context, but it cannot replace native /compact or automatic CLI compaction.
Plugin agents and skills are first-found-wins; MCP servers are last-wins. Fragment generation must respect those discovery rules rather than attempting to merge unrelated plugin trees.
GitHub Packages support matrix
flowchart TD
Q[Custom HTTPS npm registry requested] --> A{Agent documents npm marketplace registry?}
A -->|Claude Code| C[Supported in marketplace npm source]
A -->|Codex| X[Supported in marketplace npm source]
A -->|OpenCode| O[Not claimed]
A -->|Copilot CLI| H[Not claimed]
A -->|Cursor| U[Not claimed]
A -->|Antigravity| G[Not claimed]
C --> R[Placeholder package metadata only]
X --> R
| Agent | GitHub Packages plugin distribution | Reason |
|---|---|---|
| Claude Code | Supported through marketplace npm source | registry, package, and version fields are documented. |
| Codex | Supported through marketplace npm source | HTTPS registry npm sources are documented for Agent Plugins. |
| OpenCode V2 | Not claimed | Documented plugin add examples do not include custom npm registry specifications. |
| GitHub Copilot CLI | Not claimed | Install specifications are marketplace, repository, Git URL, or local path. |
| Cursor | Not claimed | No documented GitHub Packages plugin installation specification. |
| Google Antigravity | Not claimed | No documented GitHub Packages plugin installation specification. |
Real package policy
Only packages/dynamic-context-manager/ is a publishable package. Its approved first version is 0.1.0 under @helix-origin-dev/dynamic-context-manager; marketplace catalogs remain catalog-only and are never published. Publication targets GitHub Package Registry only, as described in Publication automation. Tracked files and installer output must not contain:
- tokens, credentials, webhook URLs, cookies,
.envvalues, usernames, or passwords; - claims that unsupported agents can install from GitHub Packages;
- install scripts that perform network operations;
- unauthorized remote operations, tags, or release assignments.
Authentication belongs in runner-local npm configuration using variable substitution and registry-scoped auth keys; no secret value belongs in tracked files or installer output.
Publication automation
The repository publishes real plugin packages with .github/workflows/publish-packages.yml. The workflow runs on a published GitHub Release or manual dispatch; ordinary pushes never publish. It discovers only directories under packages/ that contain a non-private package.json, so marketplace catalogs and directories without a package manifest are skipped.
| Stage | Behavior | Boundary |
|---|---|---|
| Discover | Validate lowercase scoped name, concrete version, GitHub Packages publishConfig.registry, repository metadata, and package-lock.json. | No write and no network. |
| Prepare | Install from the lockfile, run tests when present, and verify package contents with npm pack --dry-run. | No publish. |
| Authenticate | Write a runner-local .npmrc from the repository-associated GITHUB_TOKEN. | No stored credential and no NODE_AUTH_TOKEN. |
| Publish | Run npm publish against GitHub Package Registry only. | No public npm registry publication. |
flowchart LR
T{Release published or manual dispatch} --> D[Discover eligible packages]
D --> V[Validate package metadata and lockfile]
V --> P[Install and dry-run pack]
P --> A[Write runner-local npm auth]
A --> G[Publish to GitHub Packages]
V -->|catalog or private package| S[Skip]
Authentication uses contents: read for discovery and packages: write only in the publish job. The workflow uses first-party actions, a non-cancelling concurrency group, and fail-fast: false. A published name/version pair is immutable on GitHub Packages, so republishing the same version fails rather than overwriting it.
DCM version 0.1.0 is the first package version. No GitHub Release, tag, or changelog release section is created by the workflow or this documentation change.
Verification
- Confirm every Copilot fragment uses a documented native location.
- Confirm Copilot
config.jsonis never an installer destination. - Confirm GitHub Packages is claimed only for Claude Code and Codex marketplace sources.
- Confirm package skeleton values are placeholders and contain no secrets or network commands.