Path-specific custom instructions not working in Agent mode
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- swift
- Domain
- desktop, developer-experience
Research direction
Reproduce the issue in a new project using Copilot for Xcode 0.45.0, Xcode 26.1, and an instruction with applyTo set to '/*.swift'. Compare Agent mode behavior with applyTo '', then check whether the Xcode custom-instructions documentation covers path-specific instructions; done means the Swift-file filter is honored in Agent mode and the documentation matches the supported behavior.
Written by the indexing model from the issue text.
Description
When using Agent mode, the applyTo filter that can be setup for Path-specific custom copilot instructions doesn't work.
As far as I can tell, the only applyTo value that worked for me was **.
This doesn't seem to work, for example:
---
applyTo: '**/*.swift'
---
Instruction here
From what I can see, Path-specific custom instructions don't even appear in the documentation, under the Xcode tab, but they appear as a feature in the app.
Versions
- Copilot for Xcode: 0.45.0
- Xcode: 26.1
- macOS: 26.1
Steps to reproduce
- Create a new project
- In Github Copilot settings, go to Advanced -> Under Custom Instructions -> Create
- Enter a file name
- In the prompted file, under the
applyTofield, type something like'**/*.swift' - Add some test instructions
- Open chat in a
swiftfile, select agent mode. - See the agent not considering the instructions given at step 5.
- Dominant language
- Swift
- Stars
- 6.3k
- Forks
- 2k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/CopilotForXcode
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
github/CopilotForXcode#181 · 2 reactions ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
github/CopilotForXcode#945 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
github/CopilotForXcode#943 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#936 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#934 ·
All issues in github/CopilotForXcode
Similar issues
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
OneBusAway/onebusaway-ios#1451 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100