Skip to content

Add agent instructions for MSBuild repository#13198

Merged
YuliiaKovalova merged 8 commits intomainfrom
dev/ykovalova/add_agents.md
Feb 6, 2026
Merged

Add agent instructions for MSBuild repository#13198
YuliiaKovalova merged 8 commits intomainfrom
dev/ykovalova/add_agents.md

Conversation

@YuliiaKovalova
Copy link
Copy Markdown
Member

Added comprehensive instructions for GitHub Copilot and AI agents, covering repository overview, performance considerations, code review instructions, formatting guidelines, testing procedures, and development workflow.

Added comprehensive instructions for GitHub Copilot and AI agents, covering repository overview, performance considerations, code review instructions, formatting guidelines, testing procedures, and development workflow.
Copilot AI review requested due to automatic review settings February 4, 2026 15:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a comprehensive AGENTS.md file to provide instructions for GitHub Copilot and other AI coding agents working with the MSBuild repository. The document serves as a centralized guide for AI assistants to understand the repository structure, coding conventions, build processes, and development workflow specific to MSBuild.

Changes:

  • Added AGENTS.md with detailed instructions covering repository overview, performance best practices, build/test procedures, code formatting guidelines, and development workflow
  • Includes critical warnings about build processes (e.g., never canceling builds, using bootstrap scripts)
  • Documents performance-critical patterns like FrozenDictionary, ImmutableArray, collection expressions, and span-based APIs
  • Provides project structure overview and validation checklist for changes

Copy link
Copy Markdown
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a section about making this document auto-updated as agents use it to do additional work.

Copy link
Copy Markdown
Member

@JanProvaznik JanProvaznik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have https://github.com/dotnet/msbuild/blob/main/.github/copilot-instructions.md and e.g. copilot CLI looks there and I have a suspicion claude and others too

which instructions are consumed by which agents? how is the updated content better?

I think having both is counterproductive (context pollution) unless there is a good reason

Co-authored-by: Chet Husk <baronfel@users.noreply.github.com>
@YuliiaKovalova
Copy link
Copy Markdown
Member Author

we already have https://github.com/dotnet/msbuild/blob/main/.github/copilot-instructions.md and e.g. copilot CLI looks there and I have a suspicion claude and others too

which instructions are consumed by which agents? how is the updated content better?

I think having both is counterproductive (context pollution) unless there is a good reason

based on documentation: https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions

copilot-instructions.md -> Copilot Chat/CLI
AGENTS.md -> Copilot coding agent + Claude, Cursor, Gemini, etc.

@baronfel
Copy link
Copy Markdown
Member

baronfel commented Feb 4, 2026

AGENTS.md is in more widespread use - if we need .github/copilot-instructions.md we should just make it a symlink to AGENTS.md.

@YuliiaKovalova YuliiaKovalova requested a review from a team as a code owner February 4, 2026 17:25
@YuliiaKovalova
Copy link
Copy Markdown
Member Author

AGENTS.md is in more widespread use - if we need .github/copilot-instructions.md we should just make it a symlink to AGENTS.md.

done

@JanProvaznik ptal

@JanProvaznik JanProvaznik dismissed their stale review February 4, 2026 17:40

the important concern was addressed

@YuliiaKovalova YuliiaKovalova merged commit ee7b4d3 into main Feb 6, 2026
9 checks passed
@YuliiaKovalova YuliiaKovalova deleted the dev/ykovalova/add_agents.md branch February 6, 2026 18:32
@YuliiaKovalova YuliiaKovalova self-assigned this Feb 11, 2026
JanProvaznik pushed a commit to JanProvaznik/msbuild that referenced this pull request Feb 25, 2026
Added comprehensive instructions for GitHub Copilot and AI agents,
covering repository overview, performance considerations, code review
instructions, formatting guidelines, testing procedures, and development
workflow.

---------

Co-authored-by: Chet Husk <baronfel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants