In short.
This GitHub Copilot SDK guide helps developers package reusable AI assistant extensions, but reliable loading requires choosing the right process, session or trusted startup configuration. It explains directory layouts, six SDK language interfaces, discovery controls and inspection APIs. Its most useful distinction is that launch arguments affect a CLI process, while session options and trusted startup registration reach external runtimes through JSON-RPC. Minimum supported versions, pricing and licensing are unspecified, and no examples or runtime behavior were tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the entire supplied Plugin directories page at the exact selected source address, including language examples, session and trusted startup options, discovery controls, managed-plugin retries and troubleshooting. Linked pages and the externally referenced manifest schema are excluded. Version compatibility, licensing, costs and undocumented interactions remain unknown. No examples, installations or runtime behavior were executed or tested.
The overview
Identity
Plugin directories is a GitHub Docs guide for developers embedding the GitHub Copilot SDK. The resource is documentation about an extension-loading feature, rather than a downloadable plugin. Its source address is [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/plugin-directories].
A plugin directory groups related extensions behind a manifest or a standalone root-level SKILL.md. The guide covers layout, loading, discovery, inspection and troubleshooting.
Assessment
The guide is useful for teams shipping several related extensions together or keeping a host application's plugin set reproducible. It gives concrete configuration examples and explains failures that could otherwise be confusing, including ignored launch arguments and unresolved directory paths logged and skipped without failing session creation.
It is not a complete plugin-authoring reference: the full manifest schema is delegated to runtime documentation accessible through the CLI's /plugin command. The page establishes documented behavior, not verified compatibility or operational reliability.
Users
The intended readers are SDK application developers, maintainers distributing capability packs, and teams configuring CI or headless deployments. Beginners get a folder layout and language examples; experienced developers get distinctions between runtime ownership, configuration scope and extension precedence.
The page recommends inline registration for a single MCP server, hook or custom agent, and describes directories as particularly useful when three or more related extensions ship together.
Capabilities
A bundle can contribute skills, custom agents, hooks, MCP servers and LSP configuration. Skills supply reusable instructions; hooks respond to runtime events; MCP exposes external tools and resources; LSP connects language-server functions. The page maps these contributions to session APIs and describes plugin agents as dispatchable sub-agents in Fleet mode.
The guide also documents listing active plugins, reloading skills and retrying plugins required by managed settings. The managed-plugin retry API is experimental and reports outcomes such as installed, updated, failed or deferred.
Using it
Requirements
The examples assume an application using the Copilot SDK and a CLI runtime that loads plugin directories. Examples cover TypeScript, Python, Go, .NET, Java and Rust, but the page specifies no minimum SDK or CLI versions, operating-system requirements or authentication prerequisites.
Each directory needs a supported plugin.json location or a root-level SKILL.md. Per-session relative paths resolve against workingDirectory, falling back to the runtime working directory. Trusted host-bundled directory paths must be absolute.
Mechanism
Repeated --plugin-dir arguments load ordinary plugin directories when the SDK launches the CLI. That set applies to the CLI process and its sessions. Extra launch arguments are not forwarded to an existing external runtime; process-level flags must be supplied when that server starts.
The session pluginDirectories option instead travels in session.create and session.resume JSON-RPC payloads, allowing sessions to request different sets and supporting external runtimes. Its explicit loading includes plugin agents and rules even when enableConfigDiscovery is false. The page places these assets between project sources and personal or home sources in precedence.
builtinPluginDirectories registers an ordered set of trusted, host-controlled bundles after protocol verification and before startup completes. It also uses JSON-RPC and supports external runtimes. The page explicitly identifies this option as a trust boundary.
Setup
Place plugin.json at the directory root, .github/plugin.json or .github/plugin/plugin.json, or use a root-level SKILL.md alone. Optional contributions include hooks.json, .mcp.json, .lsp.json, agents/*.md and skills/*/SKILL.md.
Choose process arguments for a shared CLI plugin set, session configuration for session-specific directories, or trusted startup registration for bundles controlled by the host application. The guide recommends absolute paths for session configuration.
For reproducible process-level loading, the page documents COPILOT_PLUGIN_DIR_ONLY=true as suppressing automatic discovery so only --plugin-dir directories load. It does not explain how that environment variable interacts with per-session or trusted startup registration.
Example
The guide proposes a TypeScript reviewer pack containing a skill, a preToolUse hook for lint enforcement and a reviewer agent. This illustrates packaging related capabilities together; implementations of the hook and reviewer are not supplied.
Its TypeScript session example starts a CopilotClient and calls createSession with pluginDirectories containing ./plugins/code-reviewer. A separate inspection example calls session.rpc.plugins.list() and reads each plugin's name and enabled state. These are documentation examples; no execution results are available.
Assessment & evidence
Limitations
Unresolved per-session paths are logged and skipped instead of causing session creation to fail. A created session therefore does not establish that all requested plugins loaded. Two different directories containing the same plugin can both load and cause duplicate hooks; documented deduplication depends on the same cache path.
Managed-plugin installation failures normally wait an hour, or until managed settings change, before another attempt. The experimental retry method is rejected by runtimes that do not prepare managed plugins for the session.
The page supplies no benchmarks, compatibility matrix or failure-rate measurements. Performance, version compatibility and behavior under concurrent sessions were not assessed.
Reasoning
The practical advantage is keeping related extensions under application control. Packaging them together reduces repeated configuration, while explicit directories reduce dependence on plugins installed in a machine's user configuration.
The assessment follows from the documented configuration scopes: process flags suit a shared runtime-wide set, session options suit different sets per session, and trusted startup registration suits host-owned bundles. Predictable results still depend on paths, discovery settings and the runtime supporting the relevant interfaces.
Alternatives
For a single extension, the page offers inline SDK configuration through mcpServers, hooks or customAgents. This avoids introducing a directory bundle when little needs to travel together.
Marketplace and direct-repository installations provide persistent plugins through the CLI's /plugin command or installedPlugins setting. They are ambient to sessions sharing that user configuration. Explicit --plugin-dir loading is temporary to the launched process and takes precedence over ambient discovery. Other products and their tradeoffs are outside the supplied evidence.
Evidence
This analysis covers the Plugin directories guide at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/plugin-directories].
The page supplies layouts, code examples, option tables and troubleshooting guidance. Linked documentation, runtime implementation and the full manifest schema were not included. No code was executed, and no resource behavior was tested.
Access & freshness
Costs
The page provides no prices, usage allowances, subscription requirements or billing rules. Costs for Copilot access, model usage, plugin services and hosting are unknown from this evidence.
Rights
The supplied page contains no explicit license or redistribution terms for its text, examples, the SDK or individual plugins. Permission to redistribute the captured documentation or third-party plugin bundles is not established by this evidence.
Freshness
The supplied page was captured on 24 November 2026 at 09:21:12 UTC. The text provides no publication date, last-update date or pinned SDK and CLI versions, so compatibility with a particular installed release is unknown.
The managed-plugin retry interface is explicitly experimental. The capture timestamp identifies the available snapshot; subsequent documentation or runtime changes are unknown.
Actions
Before adopting the feature, identify whether the application launches the CLI or connects to an existing runtime, then choose the corresponding loading scope. Confirm that the installed SDK and CLI support the documented options and consult the runtime's /plugin documentation for the full manifest schema.
Use absolute paths, inspect session.rpc.plugins.list() after creating a session, and check logs for skipped directories. If reproducibility matters, examine ambient discovery and duplicate directory references. Establish applicable access costs and plugin licenses separately; neither is specified here.
