github / github/copilot-cli

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

Đang mở
#4,410 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:agents area:configuration
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu từ luồng phát hiện custom agent và xác thực frontmatter của cửa sổ bật lên /agent, tái hiện báo cáo với .github\agents\AGENTS.md trên Windows. Được xem là hoàn tất khi tệp hướng dẫn của repository được phân biệt với các custom agent, không bị phân tích như một custom agent và không xuất hiện lỗi frontmatter không hợp lệ, trong khi các custom agent vẫn có thể được phát hiện.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
58/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.