github / github/copilot-cli

Organization-level custom agents not visible in Copilot CLI when no GitHub-hosted repository is in the working directory

Đang mở
#3,572 2 bình luận 3 reaction 0 người được giao Xem trên GitHub
area:agents area:enterprise
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

Organization-level custom agents defined in the agents/ directory of the org's .github-private repository do not appear in gh copilot CLI (via /agent) unless the CLI is launched from a directory that contains a git repository with a GitHub remote belonging to that organization. This works perfectly fine in VS Code.

### Affected version

_No response_

### Steps to reproduce the behavior

1. Define org-level custom agents in /.github-private/agents/.
2. On a machine with no local clones of any GitHub repository in that org, run copilot from any directory.
3. Run /agent — org-level agents are not listed.

### Expected behavior

Org-level agents should be resolved from the authenticated user's organization membership, not from the git remote of the current working directory.

### Additional context

Our organization uses Azure DevOps for source control and only has the .github-private repository on GitHub. As a result, org-level agents are inaccessible in the CLI without maintaining an otherwise unused GitHub repo clone on every developer machine.

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

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

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự cố từ một thư mục không có kho lưu trữ GitHub hoặc remote, sau đó chạy lệnh /agent trong gh copilot CLI và so sánh với thư mục của một kho lưu trữ được GitHub lưu trữ. Theo dõi cách CLI phân giải các agent ở cấp tổ chức dựa trên tư cách thành viên tổ chức của người dùng đã xác thực và xác minh rằng các agent trong thư mục .github-private/agents/ của tổ chức xuất hiện mà không phụ thuộc vào Git remote hiện tại.

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

Đánh giá

Công nghệ
github, shell
Lĩnh vực
authentication, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/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.