Describe the bug
The /agent pop-up incorrectly attempts to load a repository guidance file at .github\agents\AGENTS.md as a custom agent definition. It then reports a malformed custom-agent frontmatter error, even though AGENTS.md is documented as repository instructions at https://agents.md/ and is not intended to be a custom agent file.
Observed output:
Custom Agents
The following agents failed to load:
✖ .github\agents\AGENTS.md: custom agent markdown frontmatter is malformed: missing or malformed YAML frontmatter
Affected version
Unknown; please determine from the report metadata.
Steps to reproduce the behavior
- Add or use a repository guidance file at
.github\agents\AGENTS.md following the AGENTS.md documentation at https://agents.md/.
- Start Copilot CLI in the repository.
- Open the
/agent pop-up.
- Observe that the file is discovered as a custom agent and fails frontmatter validation.
Expected behavior
The /agent pop-up should distinguish repository instruction files such as AGENTS.md from custom agent definitions. It should not try to parse a documented AGENTS.md file as a custom agent or report a frontmatter error for it.
Additional context
- Platform: Windows
- The error is shown in the
/agent pop-up.
- Documentation referenced: https://agents.md/
- The path is displayed with Windows separators:
.github\agents\AGENTS.md.
Describe the bug
The
/agentpop-up incorrectly attempts to load a repository guidance file at.github\agents\AGENTS.mdas a custom agent definition. It then reports a malformed custom-agent frontmatter error, even thoughAGENTS.mdis documented as repository instructions at https://agents.md/ and is not intended to be a custom agent file.Observed output:
Affected version
Unknown; please determine from the report metadata.
Steps to reproduce the behavior
.github\agents\AGENTS.mdfollowing theAGENTS.mddocumentation at https://agents.md/./agentpop-up.Expected behavior
The
/agentpop-up should distinguish repository instruction files such asAGENTS.mdfrom custom agent definitions. It should not try to parse a documentedAGENTS.mdfile as a custom agent or report a frontmatter error for it.Additional context
/agentpop-up..github\agents\AGENTS.md.