dotnet-toolkit: Instructions file for Codex

AGENTS.md

dotnet-toolkit AGENTS.md is an instructions file for Codex, OpenCode from Attemainio/dotnet-toolkit. It costs 490 tokens per session, scanned A, original, MIT.

Repository instructions for working on the Attemainio .NET toolkit. They explain which guidance files to read, how to choose agents, and how to handle tool names when using different coding hosts.

In plain words
What is it for?
Use them when reading or editing C# in that repository, selecting role briefs, or adapting Claude Code plugin tools for Codex. They are project-specific instructions rather than a general coding tool.
Why use it?
They reduce confusion when contributors or coding agents work in the repository, especially where one host loads files automatically and another does not.

Instructions file for CodexOpenCode

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

This is Attemainio/dotnet-toolkit's own configuration. It tells Codex and OpenCode how to work on dotnet-toolkit 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 dotnet-toolkit configures →

Reuse

Borrowing it

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

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 dotnet-toolkit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/attemainio/dotnet-toolkit/agents-md/github.svg)](https://agentmods.dev/instructions/attemainio/dotnet-toolkit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/attemainio/dotnet-toolkit/agents-md"><img src="https://agentmods.dev/badge/instructions/attemainio/dotnet-toolkit/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 dotnet-toolkit AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/attemainio/dotnet-toolkit/agents-md"><img src="https://agentmods.dev/badge/instructions/attemainio/dotnet-toolkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 490 This file is loaded in full into every session.
When invoked 490 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.00490 $0.00490
Opus 5 $0.00245 $0.00245
Sonnet 5 $0.00098 $0.00098
Haiku 4.5 $0.00049 $0.00049

Measured 3d ago against content hash 71301deabd66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dotnet-toolkit 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 3d ago.

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 · 37 lines

How it starts

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

Codex guidance

CLAUDE.md is this repository's canonical operating contract. Read and follow it; this file intentionally does not duplicate those instructions.

Before the first C# read or edit, also read .claude/rules/dotnet-index.md. Claude Code loads that router automatically; Codex does not scan .claude/rules/.

The Markdown files under agents/ are the canonical role briefs, and the adapter below is the supported way to run them outside Claude Code — there are deliberately no generated .codex/agents/*.toml equivalents to drift from them. When a skill asks for a named agent and that custom agent is unavailable in the current host, launch the closest built-in subagent and tell it to read the matching agents/<name>.md before starting. Treat the YAML frontmatter fields that name Claude-specific tools, models, memory, or colors as host configuration; the Markdown body remains the shared role contract.

That frontmatter's tools: list is host configuration in one further respect: it spells every MCP tool with Claude Code's plugin-qualified prefix, mcp__plugin_dotnet-toolkit_dotnet__<tool>. Codex registers the same server under the bare name dotnet and namespaces by that instead. Resolve the prefix once by probing for one known tool rather than assuming either form, and apply what comes back to the rest — a qualified name that misses means the label differs, never that the tools are absent.

Checking the installation

codex mcp list --json reports configuration, not health: it launches nothing, so it shows the server enabled whether or not the command it names can run. To verify for real — executor, effective CODEX_HOME, whether each stored path is openable from this process, the SDK the workspace loads with, and a live handshake — run:

dotnet dist/DotnetToolkit.McpServer.dll doctor --repo .

It exits nonzero on any failure. doctor --no-probe additionally fails when dist/ has fallen behind src/, which is the pre-commit gate for the rule that dist/ is committed alongside the change that required it.

Read the full file on GitHub · 37 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. 3d ago First seen · 37 lines · 490 tokens per session scan A 71301deabd66

Subscribe to this mod's changes

dotnet-toolkit AGENTS.md is an instructions file published in the GitHub repository Attemainio/dotnet-toolkit (2 stars, last pushed 3d ago), licensed MIT. It adds 490 tokens to every session, about $0.0024 per session on Opus 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-09.