Roslyn-Backed-MCP: Instructions file for Claude Code

AGENTS.md

Roslyn-Backed-MCP AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from darylmcd/Roslyn-Backed-MCP. It costs 2,502 tokens per session, scanned A, original, MIT.

Repository instructions for Roslyn-Backed-MCP. They act as a starting page that directs the coding agent to the project's authoritative rules and required session-start process.

In plain words
What is it for?
Use them when beginning work in Roslyn-Backed-MCP to load the required context and rule sources before making changes.
Why use it?
They prevent the agent from treating a short instruction file as the complete project guidance and help it follow the correct engineering rules.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is darylmcd/Roslyn-Backed-MCP's own configuration. It tells Claude Code, Codex and OpenCode how to work on Roslyn-Backed-MCP 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 Roslyn-Backed-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to darylmcd/Roslyn-Backed-MCP. 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/darylmcd/Roslyn-Backed-MCP/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/darylmcd/Roslyn-Backed-MCP

Made for: Claude Code, 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 Roslyn-Backed-MCP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/darylmcd/roslyn-backed-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/darylmcd/roslyn-backed-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/darylmcd/roslyn-backed-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/darylmcd/roslyn-backed-mcp/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 Roslyn-Backed-MCP AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/darylmcd/roslyn-backed-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/darylmcd/roslyn-backed-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,502 This file is loaded in full into every session.
When invoked 2,502 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.02502 $0.02502
Opus 5.5 $0.01001 $0.01001
Sonnet 5.5 $0.00500 $0.00500
Haiku 4.5 $0.00250 $0.00250

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

Security

Grade A, and why

Roslyn-Backed-MCP 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 · 83 lines

How it starts

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

Agent Guidelines

Roslyn-Backed-MCP is a local-first C# / .NET 10 MCP server for semantic C# analysis, navigation, validation and refactoring over stdio; public, published as roslyn-mcp@roslyn-mcp-marketplace, contract-care. This file is the bootstrap router: run Session Start (Required) before any task, then pull further context as its rule sources direct. Rules that hold in every repo live in the global layer (~/.claude/CLAUDE.md, mirrored to ~/.codex/AGENTS.md and ~/.grok/AGENTS.md); this file carries only this repo's facts.

Standing Engineering Directives

Restated verbatim from ~/.claude/CLAUDE.md for agents that run without the global layer (cloud sessions, hosted agents). Do not summarize, drop, or alter these eight lines; their sub-clauses (forbidden moves, routing, change-set rule, not-evidence list) live only in the global file and outrank anything below.

  1. Correct fix > quick or cheap fix. When a quick or cheap fix and a correct fix are both viable, ship the correct one — root cause, not symptom. Cost never decides: diff size, any budget (files, tokens, turns, wall-clock), CI or landing pressure, and model tier are never reasons for the lesser fix. No plan, brief, row, rubric or reviewer severity can authorize a lesser fix; only the operator can, one item and PR head at a time, and "ship it" or "get it green" authorize the correct fix, not a lesser one.
  2. Optimize for AI consumption by default. Nearly every document in these repos is AI-facing (AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, .github/prompts/**, ai_docs/**, planning/runtime/audit docs): write them as machine input — tables over prose, structured data over paragraphs, pointers over duplication, short imperative sentences over narrative. Human-facing files (README.md landing pages, docs/**) get human prose. The density rules are doc-audit STANDARD.md §Quality Rules.
  3. Bad code is never silent. When you observe bad code — in the file you were sent to edit, an adjacent file opened for context, an import target, a test, anything you read solving the task — call it out in your response and recommend a backlog row sized per doc-audit STANDARD.md. Editing a bad section does not absolve flagging it.
  4. Private repos accept breaking changes. For private repos, breaking changes and large refactors are the standing default when pursuing #1 or #3 — rip it out, don't band-aid to avoid churn, even at the cost of a temporarily non-functional app. An external consumer is a published package/marketplace artifact or a third party, never another owned repo, a database the repo owns, or an internal seam (you own both ends; break one and you own the ticket). Which repos are public or in contract-care (ADR + migration note) is the Repo posture table in ~/.claude/CLAUDE.md; only publication, or an operator decision recorded there, flips a repo.
  5. Never assume prior agent work is correct — re-derive, don't inherit. Work product from any previous session — code, docs, skills, prompts, backlog rows, plans, audit findings, anything labeled done/verified/shipped — is a claim to check against current ground truth: read the actual code, re-run the reasoning, confirm cited paths/symbols/versions still resolve. Never take a commit message, comment, or doc's say-so as proof.
  6. Smallest complete change wins. Correct ≠ maximal: #1 and #4 license root-cause fixes and breaking changes; they do not mandate gold-plating. Complete = the root cause + every instance of the same defect mechanism (same function, shared helper, or copy — found by probing the construct with references/grep and listed with file:line) + every defect your own diff introduces or exposes (duplication, weak or missing test, untested new branch, stale comment, suppression, shim, a new test that fails on a real bug). Measure against the root cause — not diff size, and not acceptance text that may encode the symptom.
  7. Verify your own work before declaring done. Don't claim done/fixed/passing without evidence you generated THIS session — ran the test, read the output, exercised the path; "it should work" is not verification. Calibrate depth to blast radius. Can't verify (no runner, can't drive the UI)? Say so explicitly — never imply success you didn't observe.
  8. No secrets in code. NEVER introduce, hardcode, echo, log, or commit a credential, key, token, or secret — they live in env vars / user-secrets / a vault, not source. Intentionally committed dev-only non-secrets (e.g. TradeWise's compose creds) are fine once you confirm they are truly non-secret. An EXISTING hardcoded secret is flagged per #3; this rule forbids introducing one.

Read the full file on GitHub · 83 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 · -8 lines · +140 tokens per session aaad8fc055ed
  2. 7d ago Changed · +8 lines · +200 tokens per session 6aa5f06ba348
  3. 11d ago Changed · +9 tokens per session 0bf14c707ba0
  4. 24d ago Changed · -5 lines · -176 tokens per session bb9b65938328
  5. 25d ago Changed · +20 tokens per session b1e0606168a4
  6. 27d ago Changed · -4 tokens per session 93d98f335d61
  7. 28d ago Changed · +7 tokens per session 8b45843bbc95
  8. 1mo ago Changed · +54 tokens per session 42a38d77ae3a
  9. 1mo ago Changed · +8 lines · +263 tokens per session f5527d6df556
  10. 1mo ago First seen · 80 lines · 1,989 tokens per session scan A 63429b4e96ea

Subscribe to this mod's changes

Roslyn-Backed-MCP AGENTS.md is an instructions file published in the GitHub repository darylmcd/Roslyn-Backed-MCP (1 stars, last pushed today), licensed MIT. It adds 2,502 tokens to every session, about $0.0100 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-08-31.

Related

Other instructions, from other repositories