Custom agents not appearing in dropdown unless agent files are open in editor
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- swift
- Domínio
- desktop-dev, tooling
Direção de pesquisa
Reproduce the issue with a valid .github/agents/my-custom-agent.agent.md file, then compare the agent dropdown before and after opening the file in Xcode. Trace how custom agents are discovered and loaded when Copilot Chat opens, and consider the reported expected behavior complete when agents remain available after the file is closed.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Description
Custom agents defined in .github/agents/ are not appearing in the Copilot chat agent dropdown in Xcode unless the agent file itself is currently open in a window/editor tab.
Expected Behavior
Custom agents should be automatically discovered and loaded from the .github/agents/ directory when:
Opening Xcode with a project
Opening Copilot Chat
Creating a new custom agent file
This is how custom agents work in VS Code - they appear in the dropdown automatically without requiring the files to be open.
Actual Behavior
Custom agents only appear in the Copilot chat dropdown when their corresponding .agent.md files are open in the Xcode editor. Once the file is closed, the agent disappears from the dropdown.
Steps to Reproduce
Create a custom agent file in .github/agents/ (e.g., my-custom-agent.agent.md)
Add valid YAML frontmatter and agent content:
---
name: my-custom-agent
description: Test custom agent
---
You are a helpful assistant.
Save the file and close it
Open Copilot Chat in Xcode
Click the agent dropdown at the bottom of the chat view
Result: The custom agent does NOT appear in the list
Now open the my-custom-agent.agent.md file in Xcode (in any window/tab)
Check the agent dropdown again
Result: The custom agent NOW appears in the dropdown
Environment
Copilot for Xcode version: [latest as of January 2026] (0.46.159)
Xcode version: 26.2 (17C52)
macOS version: 26.2 (25C56)
GitHub Copilot subscription: [Pro/Business/Enterprise]
Additional Context
The custom agent files are in the correct location (.github/agents/)
Files use the correct .agent.md extension
The .github folder is NOT ignored by .gitignore
The same custom agents work perfectly in VS Code without needing to open the files
No target property is set (or it's set to allow all IDEs)
This behavior is consistent across multiple custom agents
Verification Checklist
I have verified the following:
✅ Agent files are in .github/agents/ directory
✅ Files use .agent.md extension
✅ YAML frontmatter is valid
✅ .github folder is not git-ignored
✅ Latest version of Copilot for Xcode is installed
✅ Same agents work in VS Code
✅ No target: vscode property restricting the agent to VS Code only
Impact
This bug requires developers to keep all custom agent files open in editor tabs to use them, which:
Clutters the workspace
Defeats the purpose of having reusable, discoverable agents
Creates inconsistent behavior compared to VS Code
Makes custom agents essentially unusable in Xcode workflows
Suggested Fix
Copilot for Xcode should implement proper file system watching/indexing to automatically discover and load custom agents from .github/agents/ without requiring the files to be open in the editor, matching the behavior in VS Code and other supported IDEs.
- Linguagem predominante
- Swift
- Estrelas
- 6.3k
- Forks
- 2k
- Merge médio
- 3d 21h
- PRs com merge (30d)
- 2
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/CopilotForXcode
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
github/CopilotForXcode#181 · 2 reações ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
github/CopilotForXcode#945 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
github/CopilotForXcode#943 ·
-
Luisgerardomartinezlara Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
github/CopilotForXcode#936 · 2 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
github/CopilotForXcode#934 ·
Todas as issues de github/CopilotForXcode
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
googleapis/google-cloud-swift#1036 · 1 comentário ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
wultra/mtoken-sdk-ios#253 ·
-
The correction-threshold rationale says 17 restraint cases collide; the current corpus has 16 Abertaarea:dictation documentation P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
uttrflow/uttrflow-swift#1180 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100