Skip to content

Copilot harness: Agent Plugins 1.0 instructions, custom agent, and plugin hooks are missing from Chat Customizations #347955

Description

@jdeboscker
  • 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

  1. 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.md
    

    plugin.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
          }
        ]
      }
    }
  2. Install the plugin from a marketplace (into ~/.copilot/installed-plugins/...) or register its directory via chat.pluginLocations with "chat.plugins.enabled": true.

  3. Open Chat Customizations in VS Code.

  4. Select the Local harness in the harness switcher and inspect Plugins, Skills, MCP Servers, Instructions, Agents, and Hooks: all components from sample-plugin are visible.

  5. 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/ and com.github.copilot/agents/), neither Sample Coding Rule nor sample-helper appears in Chat Customizations > Instructions or Chat Customizations > Agents under the Copilot harness (this affects agents regardless of whether user-invocable is true, false, or omitted).
  • Explicitly declaring paths under extensions["com.github.copilot"] in plugin.json (e.g. "rules": "rules", "agents": "agents") does not make them appear either.
  • Workaround / proof: If we keep plugin.json unchanged ("$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.md and <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 root rules/ and agents/ when the Agent Plugins 1.0 $schema is present).
  • This indicates that under the Copilot harness, the Customizations view only scans top-level agents/, skills/, commands/, and rules/ directories at the plugin root rather than honoring the Agent Plugins 1.0 com.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 the name and description from YAML frontmatter.
  • When placing .mdc files 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.md and foo.mdc in the scanned rules/ 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.json do execute at runtime (for example, a preToolUse command hook returning permissionDecision: "ask" with permissionDecisionReason properly 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.json to <plugin-root>/hooks/hooks.json or <plugin-root>/hooks.json does 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:

  1. Agent Plugins 1.0 packages ("$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json") should surface instructions, custom agents, and commands from com.github.copilot/rules/, com.github.copilot/agents/, and com.github.copilot/commands/ (including custom paths declared under extensions["com.github.copilot"] in plugin.json), without requiring duplicate top-level rules/ and agents/ directories.
  2. .mdc rule files should have their YAML frontmatter (name, description, globs, alwaysApply) parsed and displayed in Instructions just like .instructions.md files.
  3. 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

  1. no-identd commented on Nov 20, 2026

    @no-identd

    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

  2. aeschli commented on Nov 20, 2026

    @aeschli
    Contributor

    I tried this in VS Code Insiders 1.148.0 on Linux, with the sample-plugin from the steps registered via chat.pluginLocations (chat.plugins.enabled: true), and it reproduces:

    • Local: Instructions lists Sample Coding Rule, Agents lists sample-helper, and Hooks lists sample-plugin:pretooluse, each marked "Plugin: sample-plugin".
    • Copilot: Skills (sample-skill) and MCP Servers show up, but Instructions, Agents and Hooks list nothing from the plugin. The plugin card also only reads "1 agent • 1 skill".
    • .mdc under the Copilot harness: with rules/mdc-rule.mdc and rules/md-rule.instructions.md at the plugin root, both are listed. The .instructions.md one shows its frontmatter name (MD Named Rule), but the .mdc one shows only its filename stem (mdc-rule).

    I didn't check whether the plugin's hooks and agents actually run in a Copilot session.

    347955-copilot-agents-missing.png

    347955-local-agents-listed.png

    347955-copilot-hooks-missing.png

    347955-copilot-mdc-no-frontmatter.png

    🤖 Authored with GitHub Copilot on behalf of Martin Aeschlimann (@aeschli).

  3. added
    bug
    chat-customizations
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-pluginsbugchat-customizations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions