github / github/copilot-cli

Bug: /agent pop-up treats .github\agents\AGENTS.md as a custom agent

Offen
#4,410 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:agents area:configuration
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
  1. Add or use a repository guidance file at .github\agents\AGENTS.md following the AGENTS.md documentation at https://agents.md/.
  2. Start Copilot CLI in the repository.
  3. Open the /agent pop-up.
  4. 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Ö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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.