Support configurable user-level discovery paths for agents, skills, hooks, and instructions
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non è specificato alcun file sorgente o test. Inizia individuando il meccanismo di individuazione esistente a livello utente per %USERPROFILE%.agents e COPILOT_CUSTOM_INSTRUCTIONS_DIRS, quindi determina come debbano essere rappresentate le root configurabili e la precedenza. Il lavoro è completato quando le impostazioni documentate supportano i tipi di artefatto richiesti mantenendo il percorso predefinito esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100