You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea is make it affect to other md files as well. For example the skills.
And we can extract it out of the custom instructions block, because it ultimately affects how the workspace folders are passed to CLS. And CLS searches those md files based on the passed folder.
Scope for loading *.prompt.md and SKILL.md is always all (from all projects)
Scope for loading *.agent.md is always all (from all projects)
The scope settings also apply to the search (by limiting the set of workspace folders passed to CLS)
Questions
Which of the listed files need scoping and which should always be loaded? (E.g. always load all user-specific instructions/skills?)
Which scope settings do we need in copilot-for-eclipse?
Do we need a separate scope setting for the search feature (e.g. loading instructions from a limited scope, but search in all projects in the Eclipse workspace)? Is that even possible or would that require changes on LS-side?
Where should we place the new / adapted preferences (which preferences page)?
Does the CLS load user-specific and/or repository-wide instructions or should loading them be a client-side feature?
Considerations
As a user, I'd expect copilot to
always load all user-specific instructions --> no scoping here or only a switch for turning user-specific instructions on and off via Eclipse preferences
always load repository-wide instructions from the root directory, since they apply to whole git repository -> no scoping here or only a switch for turning repository-wide instructions on and off
In this case, we could stay with the two scopes all and derived from referenced files, I guess. Optionally, we could introduce two additional switches in the preferences for additionally loading or for not loading user-specific and repository-wide instructions.
In this case, we could stay with the two scopes all and derived from referenced files, I guess. Optionally, we could introduce two additional switches in the preferences for additionally loading or for not loading user-specific and repository-wide instructions.
Regarding user specific instructions: note, "workspace" instructions are also there:
Here is the list of scopes I'm aware of:
"User" scope: files from ~/.copilot etc
"Git repo" scope: files from git repository root
"Workspace" scope: settings as shown above (not sure why do we have them)
"Project" scope: projects from referenced files in context or all projects
IMO, ideally, the files should be always loaded based on current scope, from smallest to highest one, based on reachability.
My real SDK workspace has N projects from M repositories. Repositories I have are from different organizations, contain projects of fully different nature and with fiully diferent toolchains. Makes no sense to load maven related instructions or skills into fully unrelated bazel based project etc, or instructions from open source repo licensed under GPL into closed source repo licensed under proprietary license etc.
So let see the example. If I have foo.txt file in context from project "A" from repo "B", I expect following to be loaded:
Settings from "A" project
Git repo files from "B" git repository root
Workspace settings as shown above (not sure why do we have them)
My user files from ~/.copilot etc
If loading order is important, the "smallest" scope should always "win" and be more important as "wider" scopes.
This sounds OK and would be either/or choice (radio boxes).
What is about workspace / user instructions? They could be additionally enabled/disabled as checkboxes?
Activity
travkin79 commentedon May 13, 2026
I'm trying to collect all the details that we need to consider and some open questions to answer.
Files to consider
copilot-instructions.md*.instructions.md*.prompt.mdSKILL.md*.agent.mdAGENTS.mdCLAUDE.md,GEMINI.mdCopilot scopes according to documentation
.github/,.claude/, or.agents/folders)~/.copilot/,~/.claude/, or~/.agents/)Scopes in copilot-for-eclipse
Current state
copilot-instructions.mdcan now be set to all (from all projects) or from referenced files when using the chat view (see Add Copilot preference for a chat's custom instructions loading (from all projects or from referenced projects only) #136)*.prompt.mdandSKILL.mdis always all (from all projects)*.agent.mdis always all (from all projects)Questions
Considerations
As a user, I'd expect copilot to
copilot-instructions.mdfiles.In this case, we could stay with the two scopes all and derived from referenced files, I guess. Optionally, we could introduce two additional switches in the preferences for additionally loading or for not loading user-specific and repository-wide instructions.
What do you think, Sheng Chen (@jdneo) and Andrey Loskutov (@iloveeclipse)? Did I miss some file type, scope, special case?
References
iloveeclipse commentedon May 13, 2026
Regarding user specific instructions: note, "workspace" instructions are also there:
Here is the list of scopes I'm aware of:
IMO, ideally, the files should be always loaded based on current scope, from smallest to highest one, based on reachability.
My real SDK workspace has N projects from M repositories. Repositories I have are from different organizations, contain projects of fully different nature and with fiully diferent toolchains. Makes no sense to load maven related instructions or skills into fully unrelated bazel based project etc, or instructions from open source repo licensed under GPL into closed source repo licensed under proprietary license etc.
So let see the example. If I have foo.txt file in context from project "A" from repo "B", I expect following to be loaded:
If loading order is important, the "smallest" scope should always "win" and be more important as "wider" scopes.
From the preferences point of view it would be:
Custom files (skills, instructions, agents) loading
travkin79 commentedon May 13, 2026
Thank you Andrey Loskutov (@iloveeclipse) for your feedback. I agree with that, I'm just not sure about the suggested preferences.
How about the following preference options, i.e. either use all for project-specific and repository-wide instructions or derived for both?
[ ]Load workspace instructions (checkbox)[ ]Load user-specific instructions (checkbox)jdneo commentedon May 18, 2026
Hi all, I was busy with preparing the token based billing support, will discuss this topic after it's done.
jdneo commentedon May 20, 2026
I hope to take this into consideration: #24
The root cause of it is:
The CLS will spawn a new child process when doing search for each of the workspace folder, and the max number is 20.
But for a search tool, it is unnecessary to pass each submodule as a workspace folder. Just the top level project is enough.
The option
all projects in workspace and corresponding repositoriesstill breaks this case because it adds more items, not reduce the items.How about:
iloveeclipse commentedon May 20, 2026
This sounds OK and would be either/or choice (radio boxes).
What is about workspace / user instructions? They could be additionally enabled/disabled as checkboxes?
jdneo commentedon May 21, 2026
I need to check how CLS handle this...
travkin79 commentedon Jun 10, 2026
Hi Sheng Chen (@jdneo),
Did you have some time to check the CLS code?