Bug: /agent pop-up treats .github\agents\AGENTS.md as a custom agent
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
/agent ポップアップのカスタムエージェント検出および frontmatter 検証フローから着手し、Windows 上で .github\agents\AGENTS.md を使って報告された問題を再現します。完了条件は、リポジトリの指示ファイルがカスタムエージェントと区別され、それ自体がカスタムエージェントとして解析されず、カスタムエージェントが引き続き検出可能なまま、壊れた frontmatter のエラーが表示されないことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100