Support configurable user-level discovery paths for agents, skills, hooks, and instructions
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
Copilot CLI currently discovers shared user-level artifacts from fixed locations such as:
%USERPROFILE%\.agents
This is useful as a cross-tool default, but there is no supported way to relocate that discovery root for managed or XDG-style profile layouts.
COPILOT_CUSTOM_INSTRUCTIONS_DIRS only adds instruction directories. It does not provide equivalent discovery overrides for:
- Agents
- Skills
- Hooks
- Shared manifests or related metadata
COPILOT_HOME is not an appropriate substitute because it relocates broader Copilot application state, including sessions, databases, packages, caches, and lock files.
Requested behavior
Provide one or more documented environment variables or configuration settings for additional user-level discovery roots.
For example:
COPILOT_AGENT_DIRS
COPILOT_SKILL_DIRS
COPILOT_HOOK_DIRS
COPILOT_CUSTOM_INSTRUCTIONS_DIRS
Alternatively, support a unified root:
COPILOT_USER_CONFIG_DIR=C:\Users\<user>\.config\agents
with documented subdirectories:
agents\
skills\
hooks\
instructions\
Compatibility
The existing %USERPROFILE%\.agents location should remain a default discovery path. Configured paths should augment or override it through clearly documented precedence rules.
This would preserve the .agents interoperability convention while allowing:
- Enterprise-managed profile layouts
- XDG-style configuration separation
- Portable development environments
- Machines where the profile root should remain free of tool-owned directories
Related issues
- #1954 —
XDG_CONFIG_HOMEignored; no equivalent available - #4204 — Add
.agentsdiscovery for instructions, agents, and hooks
This request is complementary to #4204: that issue proposes broader .agents discovery, while this issue requests a supported way to configure where that user-level discovery tree lives.
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.
Research direction
No source file or test is named. Start by locating the existing user-level discovery for %USERPROFILE%.agents and COPILOT_CUSTOM_INSTRUCTIONS_DIRS, then determine how configurable roots and precedence should be represented. Done means documented settings support the requested artifact types while retaining the existing default path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100