-
Notifications
You must be signed in to change notification settings - Fork 134
fix: Frontmatter formatter error using hve-core agents in Copilot CLI #785
Description
Component
VS Code Extension
Bug Description
After installing the plugin via copilot plugin install hve-core@hve-core, all 18 agent files under agents/ produce warnings on every Copilot CLI launch:
custom agent markdown frontmatter is malformed: missing or malformed YAML frontmatter
Each agent file in the installed plugin is a single-line relative path reference instead of the actual agent markdown:
../../../.github/agents/hve-core/doc-ops.agent.md
The Copilot CLI expects agent .md files to begin with valid YAML frontmatter (--- delimited block with at least a description field). The relative path string is not parseable as YAML frontmatter, and does not resolve to anything meaningful from the installed plugin directory (~/.copilot/installed-plugins/hve-core/).
All 18 agents are affected (17 hve-core + 1 ado).
Root Cause
The plugin packaging process stores relative path references in agent files rather than inlining the actual content from .github/agents/. Commands, instructions, and skills use the same path-reference pattern and are handled correctly by the CLI, but agents require parseable YAML frontmatter which the path stubs do not provide.
Proposed Fix
Update the plugin packaging to inline the full agent markdown content (YAML frontmatter + prompt body) from .github/agents/ into the corresponding agents/ files in the plugin package, matching how the CLI expects to consume them.
To prevent regressions, consider adding CI tests that validate core CLI workflows
Affected Files
hve-core/agents/doc-ops.mdhve-core/agents/implementation-validator.mdhve-core/agents/memory.mdhve-core/agents/phase-implementor.mdhve-core/agents/plan-validator.mdhve-core/agents/pr-review.mdhve-core/agents/prompt-builder.mdhve-core/agents/prompt-evaluator.mdhve-core/agents/prompt-tester.mdhve-core/agents/prompt-updater.mdhve-core/agents/researcher-subagent.mdhve-core/agents/rpi-agent.mdhve-core/agents/rpi-validator.mdhve-core/agents/task-implementor.mdhve-core/agents/task-planner.mdhve-core/agents/task-researcher.mdhve-core/agents/task-reviewer.mdado/agents/ado-prd-to-wit.md
Workaround
Manually copy the actual agent files from .github/agents/ in the source repo over the stub files in ~/.copilot/installed-plugins/hve-core/.
Expected Behavior
Expected to be able to use the agents in the Github CLI in a similar way to VS Code.
Steps to Reproduce
Using Copilot CLI version 0.0.4199-0 (current as of 2026-02-26):
plugin marketplace add microsoft/hve-core
copilot plugin install hve-core@hve-coreIn Copilot: /agent
Additional Context
No response