copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Add persistent per-user exclusion for duplicate Copilot instruction files

Open nitinja opened this issue 3 months ago • 1 comments

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

nitinja avatar Aug 25 '26 21:08 nitinja

Big +1 on this. My issue is that i have git worktrees within my repo root, which is nice in order to keep the files available in my vscode file explorer. BUT then copilot discoveres a duplicate for all the instructions that I have in the repo itself, and in the copy in my .worktrees folder

DHB-at-Bouvet avatar Nov 13 '26 08:11 DHB-at-Bouvet