github / github/copilot-cli

Global instructions.md AGENTS.md CLAUDE.md documentation clarification

Aberta
#3,983 1 comentário 2 reações 0 responsáveis Ver no GitHub
area:configuration area:context-memory
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the feature or problem you'd like to solve

Provide clear documentation about default behavior of Global instruction md files utilization

### Proposed solution

Provide clear documentation about default behavior of Global instruction md files utilization

This will avoid confusion for end users

There is currently some documentation around this (https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions#agent-instructions) although seems to be slightly unclear/inaccurate in comparison to observed behavior of CLI

example (running on Windows os, WSL Ubuntu):
running `/env`:

Image

however, I only have AGENTS.md in ~/.agents and CLAUDE.md in ~/.claude

_additionally for the above, a nice enhancement with respect to release notes of version 1.0.26 - 2026-04-14 "Avoid sending duplicate custom instruction files (e.g. copilot-instructions.md and CLAUDE.md with identical content) to reduce wasted tokens per turn", it would be nice here on the `/env` to demark as "(duplicate)" label suffix or something equivalent there to alleviate user concerns that these may bloat context/instructions sent and that they are properly being de-duplicated by copilot harness_

### Example prompts or workflows

_No response_

### Additional context

_No response_

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece comparando a saída observada de /env com a documentação vinculada sobre instruções de agente do GitHub Copilot CLI e determine o comportamento padrão de descoberta para arquivos de instruções globais. Considera-se concluído quando a documentação explica com precisão quais arquivos são usados e como as instruções duplicadas são tratadas, incluindo se /env indica desduplicação.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Domínio
cli, documentation
Tipo de issue
Documentação
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
52/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.