github / github/copilot-cli

Add persistent per-user exclusion for duplicate Copilot instruction files

Offen
#4,603 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:configuration area:context-memory
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Describe the feature or problem you'd like to solve

Add persistent per-user exclusion for duplicate Copilot instruction files

Proposed solution

Summary:

GitHub Copilot CLI automatically loads supported instruction files such as  CLAUDE.md  and  AGENTS.md . When both contain duplicate or overlapping instructions, Copilot may load the same guidance twice.

The  /instructions  command can disable one file, but the change applies only to the current Copilot CLI session. There is currently no documented persistent, user-specific ignore list for excluding one repository instruction file without modifying the shared repository.

This would be useful for teams sharing repositories across multiple people and agents, including Copilot, CloudA, and Codex. A per-user configuration option to permanently exclude selected instruction files—without affecting other users or agents—would prevent duplicate instruction loading while preserving the repository structure.

Example prompts or workflows

My Claude.md file just mentions/loads Agents.md. All the instruction gets loaded twice and bloat the context..

Additional context

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Das Issue nennt keine Implementierungsdateien, Tests oder einen Einstiegspunkt für die Konfiguration. Ermittle daher zunächst, wie /instructions Sitzungsausschlüsse speichert und wo die Benutzerkonfiguration geladen wird. Erledigt ist die Aufgabe, wenn eine persistente Ignorierliste pro Benutzer ausgewählte Anweisungsdateien des Repositorys ausschließen kann, ohne das Repository zu ändern oder andere Benutzer zu beeinflussen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.