RoslynMcpServer: Instructions file for Codex

AGENTS.md

RoslynMcpServer AGENTS.md is an instructions file for Codex, OpenCode from VuDZ/RoslynMcpServer. It costs 1,059 tokens per session, scanned A, original, MIT.

Repository instructions for a C# project using Roslyn, Microsoft's platform for analysing and compiling C# code. They require reading the project's coding rules before creating, changing, or reviewing C# code.

In plain words
What is it for?
They are for guiding C# implementation and review work in the RoslynMcpServer repository.
Why use it?
They help keep code changes consistent with the repository's documented style.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is VuDZ/RoslynMcpServer's own configuration. It tells Codex and OpenCode how to work on RoslynMcpServer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything RoslynMcpServer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to VuDZ/RoslynMcpServer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/VuDZ/RoslynMcpServer/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/VuDZ/RoslynMcpServer

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for RoslynMcpServer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vudz/roslynmcpserver/agents-md/github.svg)](https://agentmods.dev/instructions/vudz/roslynmcpserver/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/vudz/roslynmcpserver/agents-md"><img src="https://agentmods.dev/badge/instructions/vudz/roslynmcpserver/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for RoslynMcpServer AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vudz/roslynmcpserver/agents-md"><img src="https://agentmods.dev/badge/instructions/vudz/roslynmcpserver/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,059 This file is loaded in full into every session.
When invoked 1,059 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01059 $0.01059
Opus 5.5 $0.00424 $0.00424
Sonnet 5.5 $0.00212 $0.00212
Haiku 4.5 $0.00106 $0.00106

Measured yesterday against content hash 1e289673f4fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

RoslynMcpServer AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 32 lines

How it starts

The opening of the file, as written. The whole thing — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code style for agents

C# style for this repository is in docs/code-style.md, relative to the repository root.

  • Read that file in full once before the first creation or edit of C# code in the current task, including tests.
  • Read it in full when reviewing style or discussing changes to these rules.
  • Planning, research, and discussion that do not change code do not require reading the file, unless the task is about the style itself.
  • If the task moves from discussion to implementation, read the file before the first code change.
  • If docs/code-style.md changes on disk during the task, read it again in full before the next code change.
  • Apply the rules to new code and to lines this task already changes. That includes the section "Applying the rules to existing code": leave the rest of a file as it is, including member order in types this task does not edit.
  • If you launch a subagent that will create, edit, or review the style of C# code, its prompt must require it to read docs/code-style.md in full before the first edit or before style comments, and to apply those rules only to new code and to lines that subagent changes.
  • Text that lives in code is English: comments, XML docs, log and diagnostic messages, exception messages, test failure text, and asserted fragments. Localized external output kept as test data stays verbatim; project documentation keeps its current language.
  • Exception: code under forks/ is a copy of an upstream project. It follows that project's style and its .editorconfig (for forks/roslyn-buildhost, Roslyn's), not docs/code-style.md, so a change can go upstream as a pull request with a minimal diff. Keep upstream files verbatim except for deliberate changes, and match the surrounding upstream code in naming, layout and comments.

Test selection and final validation

  • Use focused tests during implementation for quick feedback. Tests named by a plan or epoch are a minimum, not the complete validation scope.
  • After changing production C# code, run all tests in RoslynMcpServer.Tests/SourceStructure. They analyze the entire production source tree, including transitive calls and registered lambdas, so searching for references to changed symbols is not enough to select them.
  • Before final acceptance or committing code or test changes, build the solution and run the complete main CI suite (Category!=AnalyzerLifecycle&Category!=RequiresPinnedSdk; on Linux also &Category!=RequiresWindows, as in the workflow) in the RoslynMcpServer.Tests project against the final code, in Release configuration as specified in .github/workflows/test-suite.yml. After a fix, rerun affected tests during development and the complete main suite before acceptance or commit.
  • Comments are not production code. A change that only edits comments (// and XML doc comments in C#, comments in project and build files) needs neither the SourceStructure run nor the main suite, and it does not raise the version or need a release. Any change to code, attributes, or project and build settings, even in the same commit, brings back the full rules.
  • Run AnalyzerLifecycle additionally when changes can affect analyzer/shadow-copy lifecycle, the workspace load/prepare/publication paths used by that lifecycle, the lifecycle host, or its test/build configuration. Enable ROSLYN_MCP_ANALYZER_LIFECYCLE=1 for that run. Unrelated changes do not require this specialized suite.
  • With Roslyn MCP available, prefer run_dotnet_build, run_specific_test, and run_dotnet_test. If a specialized tool cannot express the required integration environment, use an available runner that can. With another harness, use its supported build/test runner for the same checks. A zero-test run is not a pass; report failures, skips, timeouts, and unavailable integration environments instead of claiming full validation.
  • In subagent workflows, the coordinator owns final build/test validation. Independent review and specification acceptance do not replace running the tests.
  • Preserve exact inventories of known structural-analysis limits. When production changes legitimately add a limit, explain it and update the expected identity and kind; do not merely loosen the count or ignore unexpected limits.

Read the full file on GitHub · 32 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +2 lines · +188 tokens per session 1e289673f4fe
  2. 23d ago Changed · +7 lines · +180 tokens per session e3c13c45354f
  3. 28d ago Changed · +10 lines · +387 tokens per session d23a6b9c355b
  4. 1mo ago Changed · +126 tokens per session ee1e1c5fc63c
  5. 1mo ago First seen · 13 lines · 178 tokens per session scan A 47f1a37ce303

Subscribe to this mod's changes

RoslynMcpServer AGENTS.md is an instructions file published in the GitHub repository VuDZ/RoslynMcpServer (8 stars, last pushed today), licensed MIT. It adds 1,059 tokens to every session, about $0.0042 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

Other instructions, from other repositories

plan-forge api-patterns.instructions.md

API patterns for .NET — REST conventions, ProblemDetails, pagination, versioning, error responses.

srnichols/plan-forge · 2,049 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens