Organization-level custom agents not visible in Copilot CLI when no GitHub-hosted repository is in the working directory
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
### 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.
Guia de contribuição
Direção de pesquisa
Comece reproduzindo o problema a partir de um diretório sem um repositório GitHub ou remote; em seguida, execute o comando /agent no gh copilot CLI e compare-o com um diretório de um repositório hospedado no GitHub. Rastreie como a CLI resolve agentes no nível da organização a partir da associação do usuário autenticado às organizações e verifique se os agentes no diretório .github-private/agents/ da organização aparecem sem depender do remote Git atual.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- github, shell
- Domínio
- authentication, cli
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 55/100