Bug: /agent pop-up treats .github\agents\AGENTS.md as a custom agent
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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.mdfollowing theAGENTS.mddocumentation at https://agents.md/. - Start Copilot CLI in the repository.
- Open the
/agentpop-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
/agentpop-up. - Documentation referenced: https://agents.md/
- The path is displayed with Windows separators:
.github\agents\AGENTS.md.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne beim Ablauf zur Erkennung benutzerdefinierter Agents und zur Frontmatter-Validierung des /agent-Pop-ups und reproduziere den Bericht mit .github\agents\AGENTS.md unter Windows. Erledigt ist die Aufgabe, wenn die Repository-Anweisungsdatei von benutzerdefinierten Agents unterschieden, nicht als solcher geparst wird und kein Fehler wegen fehlerhaftem Frontmatter erscheint, während benutzerdefinierte Agents weiterhin auffindbar bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100