Skip to content

Copilot instructions and agents.md files should not auto-load linked markdown files #286192

@digitarald

Description

@digitarald

When using copilot-instructions.md or AGENTS.md files in a workspace, markdown files that are linked within these instruction files are automatically being loaded and included as context. This behavior was meant for pre-agentic flows, and now can lead to unintended context bloat and unexpected behavior when these files simply reference other documentation without intending to include them as active context.

I suggest to disable it completely and leave extra file reads to the agent.

Metadata

Metadata

Assignees

Labels

chat-promptsPrompt and Instruction files related issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions