github / github/copilot-cli

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

オープン
#4,410 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:agents area:configuration
主要言語
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
  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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

/agent ポップアップのカスタムエージェント検出および frontmatter 検証フローから着手し、Windows 上で .github\agents\AGENTS.md を使って報告された問題を再現します。完了条件は、リポジトリの指示ファイルがカスタムエージェントと区別され、それ自体がカスタムエージェントとして解析されず、カスタムエージェントが引き続き検出可能なまま、壊れた frontmatter のエラーが表示されないことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。