github / github/copilot-cli

Custom instructions leak into repository analysis

Open
#3,946 0 comments 0 reactions 0 assignees View on GitHub
area:configuration area:context-memory
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

Whenever I ask copilot to analyze a repository and e.g. create an instruction file it seems that it is leaking local instructions into the context and taking them for facts for this particular repository.

This then can lead of general part in the instructions, e.g. I have

```
### Markdown

- Start each sentence on a new line to improve diff readability.
- Format tables with aligned spaces so they are readable as plain text.
```

that now suddenly is in-cooperated whenever I use e.g. `/init` or asking for an `AGENTS.md` file or enhance/create an inital readme for the project.

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior with /init or an AGENTS.md generation request, comparing the resulting repository instructions with the local custom instructions described in the report. Done means generic local Markdown guidance is no longer incorporated as repository-specific facts.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.