Repository navigation
Description
- VS Code Version: 1.146.0
- OS Version: Windows 11 + Remote - WSL (Ubuntu, Linux x64)
Summary
When using an Agent Plugins 1.0.0 package that places portable components at the plugin root (skills/*/SKILL.md, mcp.json) and Copilot-specific components under the com.github.copilot/ client extension directory (com.github.copilot/rules/, com.github.copilot/agents/, com.github.copilot/hooks/hooks.json — the same layout produced by VS Code's own Create Plugin action):
- With the Local harness selected in Chat Customizations, all plugin components appear in their respective sections (Plugins, Skills, MCP Servers, Instructions, Agents, and Hooks).
- After switching to the new default Copilot harness, Skills and MCP Servers appear as expected, and the plugin card in Plugins still summarizes the plugin's contributions, but the Instructions, Agents, and Hooks tabs do not list any of the plugin's instructions, agents, or hooks (even though they are active at runtime during chat sessions).
Comparison Matrix (Local vs. Copilot Harness)
| Plugin Component | Location in Plugin | Local Harness (Customizations UI) | Copilot Harness (Customizations UI) | Copilot Harness (Session Runtime) |
|---|---|---|---|---|
| Skills | skills/<name>/SKILL.md |
Listed in Skills | Listed in Skills | Loaded & invocable |
| MCP Servers | mcp.json |
Listed in MCP Servers | Listed in MCP Servers | Loaded & connected |
| Instructions / Rules | com.github.copilot/rules/*.instructions.md (or *.mdc) |
Listed in Instructions | Missing from Instructions | Loaded in session context |
| Custom Agents | com.github.copilot/agents/*.agent.md |
Listed in Agents | Missing from Agents | Loaded (selectable / delegatable) |
| Hooks | com.github.copilot/hooks/hooks.json |
Listed in Hooks | Missing from Hooks | Executed (sessionStart, preToolUse, etc.) |
Steps to Reproduce
-
Create a minimal Agent Plugins 1.0.0 package (
sample-plugin) with the following structure:sample-plugin/ ├── plugin.json ├── mcp.json ├── skills/ │ └── sample-skill/ │ └── SKILL.md └── com.github.copilot/ ├── agents/ │ └── sample-helper.agent.md ├── hooks/ │ └── hooks.json └── rules/ └── sample-rule.instructions.mdplugin.json:{ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "sample-plugin", "version": "0.1.0", "description": "Minimal Agent Plugins 1.0 reproduction package." }mcp.json:{ "mcpServers": { "sample-mcp": { "command": "node", "args": ["-e", "setInterval(() => {}, 10000)"] } } }skills/sample-skill/SKILL.md:--- name: sample-skill description: Minimal sample skill from an Agent Plugin. --- Sample skill body.
com.github.copilot/rules/sample-rule.instructions.md:--- name: Sample Coding Rule description: Minimal rule contributed by an Agent Plugin. applyTo: "**" alwaysApply: true --- Always follow the sample coding rule.
com.github.copilot/agents/sample-helper.agent.md:--- name: sample-helper description: Minimal subagent contributed by an Agent Plugin. user-invocable: false --- You are a minimal helper subagent.
com.github.copilot/hooks/hooks.json:{ "version": 1, "hooks": { "preToolUse": [ { "type": "command", "bash": "cat >/dev/null", "powershell": "$input | Out-Null", "timeoutSec": 5 } ] } } -
Install the plugin from a marketplace (into
~/.copilot/installed-plugins/...) or register its directory viachat.pluginLocationswith"chat.plugins.enabled": true. -
Open Chat Customizations in VS Code.
-
Select the Local harness in the harness switcher and inspect Plugins, Skills, MCP Servers, Instructions, Agents, and Hooks: all components from
sample-pluginare visible. -
Switch the harness selector to Copilot and inspect the same sections.
Detailed Findings & Isolating Experiments
Testing different directory layouts and file extensions on the same plugin isolates three distinct issues in the Copilot harness Customizations view:
1. com.github.copilot/rules/ and com.github.copilot/agents/ are ignored in the Instructions and Agents tabs
- With the canonical Agent Plugins 1.0 layout above (
com.github.copilot/rules/andcom.github.copilot/agents/), neitherSample Coding Rulenorsample-helperappears in Chat Customizations > Instructions or Chat Customizations > Agents under the Copilot harness (this affects agents regardless of whetheruser-invocableistrue,false, or omitted). - Explicitly declaring paths under
extensions["com.github.copilot"]inplugin.json(e.g."rules": "rules","agents": "agents") does not make them appear either. - Workaround / proof: If we keep
plugin.jsonunchanged ("$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json") and additionally copy or symlink the files into top-level<plugin-root>/rules/*.instructions.mdand<plugin-root>/agents/*.agent.md, both Instructions and Agents immediately appear in Chat Customizations under the Copilot harness (without duplicating entries in the Local harness or in Copilot CLI, which both ignore rootrules/andagents/when the Agent Plugins 1.0$schemais present). - This indicates that under the Copilot harness, the Customizations view only scans top-level
agents/,skills/,commands/, andrules/directories at the plugin root rather than honoring the Agent Plugins 1.0com.github.copilot/namespace and manifest configuration.
2. .mdc rule files do not display frontmatter name and description in the Instructions tab
- When placing
.instructions.md(or.md) files in<plugin-root>/rules/, the Instructions tab under the Copilot harness displays thenameanddescriptionfrom YAML frontmatter. - When placing
.mdcfiles with identical YAML frontmatter (name,description,globs,alwaysApply) in<plugin-root>/rules/, the item is listed in Instructions, but its frontmatter metadata is not read: the UI falls back to the raw filename stem and shows an empty description. - Additionally, if a plugin contains both
foo.instructions.mdandfoo.mdcin the scannedrules/directory (for cross-compatibility with Copilot CLI), both files are listed as separate duplicate entries instead of deduplicating or reading frontmatter consistently.
3. Plugin-contributed hooks never appear in the Hooks tab under the Copilot harness
- During an actual Copilot harness chat session, hooks defined in
com.github.copilot/hooks/hooks.jsondo execute at runtime (for example, apreToolUsecommand hook returningpermissionDecision: "ask"withpermissionDecisionReasonproperly triggers a confirmation prompt in chat with the hook's message before executing the tool). - In Chat Customizations > Plugins, the installed plugin entry also reports its hook count in the contribution summary.
- However, in Chat Customizations > Hooks under the Copilot harness, no plugin hooks are ever displayed ("No hooks yet" if no user/workspace hooks exist), whereas workspace hooks (such as
.github/hooks/*.json) do appear. - Unlike Instructions and Agents, copying
hooks.jsonto<plugin-root>/hooks/hooks.jsonor<plugin-root>/hooks.jsondoes not make plugin hooks appear in the Hooks tab under the Copilot harness either.
Expected Behavior
When the Copilot harness is active in Chat Customizations:
- Agent Plugins 1.0 packages (
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json") should surface instructions, custom agents, and commands fromcom.github.copilot/rules/,com.github.copilot/agents/, andcom.github.copilot/commands/(including custom paths declared underextensions["com.github.copilot"]inplugin.json), without requiring duplicate top-levelrules/andagents/directories. .mdcrule files should have their YAML frontmatter (name,description,globs,alwaysApply) parsed and displayed in Instructions just like.instructions.mdfiles.- Hooks contributed by enabled plugins (including
com.github.copilot/hooks/hooks.json) should be listed in the Hooks section under their contributing plugin, matching both their runtime execution in the Copilot harness and the behavior of the Local harness.
Activity
no-identd commentedon Nov 20, 2026
Dear MSFT,
Please for the love of God fix this bloody mess by internally properly standardizing AND TESTING.
Thank you.
Best,
One of your most "devoted" SMEs
aeschli commentedon Nov 20, 2026
I tried this in VS Code Insiders 1.148.0 on Linux, with the
sample-pluginfrom the steps registered viachat.pluginLocations(chat.plugins.enabled: true), and it reproduces:.mdcunder the Copilot harness: withrules/mdc-rule.mdcandrules/md-rule.instructions.mdat the plugin root, both are listed. The.instructions.mdone shows its frontmatter name (MD Named Rule), but the.mdcone shows only its filename stem (mdc-rule).I didn't check whether the plugin's hooks and agents actually run in a Copilot session.
🤖 Authored with GitHub Copilot on behalf of Martin Aeschlimann (@aeschli).