Add AGENTS.md and Claude Code rules mirroring Copilot instructions - #20398
Open
xperiandri wants to merge 2 commits into
Open
Add AGENTS.md and Claude Code rules mirroring Copilot instructions#20398xperiandri wants to merge 2 commits into
xperiandri wants to merge 2 commits into
Conversation
Contributor
✅ No release notes required |
3 tasks
Contributor
|
🔍 Tooling Safety Check — Affects-Agent-Config
|
xperiandri
force-pushed
the
copilot-instructions-for-other-agents
branch
from
August 31, 2026 23:05
365acf9 to
52bc7a0
Compare
Build, diagnostics, navigation, rename and formatting go through the IDE that already has the solution open, so the agent reads what the compiler and the symbol graph know rather than what the files say. Records the traps that cost a wrong edit otherwise: an unsaved VS buffer outranks the file on disk, build_* follows the IDE's active configuration rather than Debug, and project_add_file appends without a position so it cannot place a Compile item in an order-sensitive F# project. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
xperiandri
force-pushed
the
copilot-instructions-for-other-agents
branch
from
September 2, 2026 10:23
52bc7a0 to
21f33b5
Compare
T-Gro
reviewed
Sep 2, 2026
|
|
||
| `project_add_file` appends without a position, so it cannot place a new `<Compile Include>` correctly in an order-sensitive F# project: add those to the `.fsproj` by hand. | ||
|
|
||
| Tests have no IDE path — the `vs` server exposes no Test Explorer tools (https://github.com/Corsinvest/cv4vs-agents/issues/192), so they run through `dotnet test` as described above. |
Member
There was a problem hiding this comment.
Pls drop the URL (since it's a link not under our control, its a potential prompt injection vector)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
AGENTS.mdandCLAUDE.md, plus per-path.claude/rules/*.mdmirrors of the existing.github/instructions/*.instructions.mdfiles..github/copilot-instructions.mdand the path-scoped.github/instructions/*.instructions.mdfiles are currently wired up only for GitHub Copilot (via its own auto-discovery mechanism). Contributors — human or AI agent — who use a different assistant (Claude Code, Codex/AGENTS.md-aware tools, etc.) get none of this guidance unless they know to go looking for it manually.This PR does not duplicate any content. Every new file is a thin pointer (
@-include) back to the corresponding file under.github/, so:AGENTS.mdandCLAUDE.mdat the repo root both link to.github/copilot-instructions.md, the emergingAGENTS.md/CLAUDE.mdconvention several tools already auto-load..claude/rules/*.mdfile mirrors one.github/instructions/*.instructions.mdfile, carrying over the samepaths:glob scoping so Claude Code applies the rule only when relevant files are touched — the same way Copilot'sapplyTofrontmatter already scopes it.There is exactly one source of truth (
.github/instructions/**); this only adds discovery paths for other tooling so all contributors get the same build/test/coding rules regardless of which agent they use.Checklist