github / github/copilot-cli

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

Abierto
#4,410 1 comentario 0 reacciones 0 asignados Ver en GitHub
area:agents area:configuration
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### 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:

```text
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`.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza por el flujo de descubrimiento de agentes personalizados y validación del frontmatter del pop-up /agent, reproduciendo el informe con .github\agents\AGENTS.md en Windows. Se considera terminado cuando el archivo de instrucciones del repositorio se distingue de los agentes personalizados, no se analiza como uno de ellos y no aparece ningún error de frontmatter mal formado, mientras los agentes personalizados siguen siendo detectables.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
58/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.