Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/copilot/customization/agent-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ Once installed, plugin-provided customizations appear alongside your locally def
> [!CAUTION]
> Plugins can include hooks and MCP servers that run code on your machine. Review the plugin contents and publisher before installing, especially for plugins from community marketplaces.

## Plugin Formats
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use sentence-style capitalization for headings to match the rest of this doc. For example, change ## Plugin Formats to ## Plugin formats (and keep a blank line after the heading for consistency with other sections).

Suggested change
## Plugin Formats
## Plugin formats

Copilot uses AI. Check for mistakes.
The plugin format is auto-selected based on the plugin file path (relative to the plugin root).
| Plugin format | Plugin file path(s) |
|---------------|------------------|
| Claude | `.claude-plugin/plugin.json` |
| Copilot | `plugin.json`, `.github/plugin/plugin.json` |
| OpenPlugin | `.plugin/plugin.json` |

### Plugin Environment Variables
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This heading should also use sentence-style capitalization (for example, ### Plugin environment variables) and include a blank line after the heading, consistent with other sections in this file.

Suggested change
### Plugin Environment Variables
### Plugin environment variables

Copilot uses AI. Check for mistakes.
| Plugin format | Plugin root |
|---------------|------------------|
| Claude | `${CLAUDE_PLUGIN_ROOT}` |
| Copilot | (Not Defined) |
Comment on lines +67 to +71
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table under "Plugin environment variables" lists values like ${CLAUDE_PLUGIN_ROOT} / ${PLUGIN_ROOT}, which reads like a configuration token, not an environment variable name. Consider either (1) listing the actual env var names (CLAUDE_PLUGIN_ROOT, PLUGIN_ROOT) or (2) renaming the column/section to explicitly describe tokens vs injected environment variables, so readers know what to use in JSON vs in a shell script.

Suggested change
### Plugin Environment Variables
| Plugin format | Plugin root |
|---------------|------------------|
| Claude | `${CLAUDE_PLUGIN_ROOT}` |
| Copilot | (Not Defined) |
### Plugin root tokens
| Plugin format | Plugin root token |
|---------------|-------------------|
| Claude | `${CLAUDE_PLUGIN_ROOT}` |
| Copilot | (Not defined) |

Copilot uses AI. Check for mistakes.
| OpenPlugin | `${PLUGIN_ROOT}` |
Comment on lines +61 to +72
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section introduces an OpenPlugin format and a ${PLUGIN_ROOT} root token, but later sections in this article only document Claude/Copilot paths and only describe ${CLAUDE_PLUGIN_ROOT} for hooks and MCP servers. Either add OpenPlugin-specific details in those later sections (hook file location, path tokens for hooks/MCP), or explicitly state here that OpenPlugin-format plugins are not supported for hooks/MCP in VS Code (if that's the case).

Copilot uses AI. Check for mistakes.

## Hooks in plugins

Plugins can include [hooks](/docs/copilot/customization/hooks.md) that run shell commands at agent lifecycle points. Plugin hooks work alongside your workspace and user-level hooks. When a plugin is enabled, its hooks fire in addition to any other hooks configured for the same event.
Expand Down
Loading