github / github/copilot-cli

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

未關閉
#3,572 2 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:agents area:enterprise
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。