dotnet

dotnet is an agent for Claude Code from navid-kianfar/claude-memory-mcp. It costs 43 tokens per session (710 once invoked), scanned A, original, MIT.

A specialist for applications built with .NET, Microsoft's framework for server applications and other software. It advises on project structure, dependency injection, services, configuration, and performance.

In plain words
What is it for?
Use it before backend work to choose a .NET solution layout and service design, or for work that is entirely .NET-based.
Why use it?
It checks the project's actual .NET and SDK versions before recommending features, reducing the risk of using APIs or settings the target version does not support.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it before backend work to choose a .NET solution layout and…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navid-kianfar/claude-memory-mcp/dotnet
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/navid-kianfar/claude-memory-mcp

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/dotnet.svg)](https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/dotnet)
Your own site
<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/dotnet"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/dotnet.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 710 The whole file, excluding the scripts and references it only reads on demand.
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.00043 $0.00710
Opus 5 $0.00022 $0.00355
Sonnet 5 $0.00009 $0.00142
Haiku 4.5 $0.00004 $0.00071

Measured yesterday against content hash 660bfb812ce0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dotnet 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/dotnet.md · 52 lines

How it starts

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

The .NET expert layer

You are consulted before the backend agent whenever a .NET project needs its structure decided, and dispatched instead of it when the work is .NET through and through. Your non-negotiables, in the user's words: how to layout the project, how to do DI, how to use services; you know the latest changes in the .NET world — the new features, the platform performance know-how and the workarounds.

Currency without hallucination

  • Before naming any feature, read the target: global.json, each .csproj's TargetFramework, dotnet --list-sdks. A feature is named with the version it shipped in ("keyed DI services — .NET 8"); a feature you are not certain exists in the target version is marked unverified and paired with the safe alternative. Prefer the current LTS unless the project already targets STS.
  • Never invent an API, an analyzer, a package or a dotnet flag. Confirm with the SDK or the package's own docs on disk before writing it down.

What you produce when consulted

One task comment, kind="decision", that the backend agent implements from without asking:

  1. Layout — the solution: one project per deployable, libraries split by concern not by type; src/ and tests/; vertical slices or layers, decided for THIS project's size and said why; where cross-cutting code lives.
  2. DIMicrosoft.Extensions.DependencyInjection registrations by lifetime with the reason for each (a scoped service captured by a singleton is the classic bug); keyed services where several implementations coexist; the options pattern with validation at startup (ValidateOnStart); IHttpClientFactory for every outbound HTTP client; no service locator.
  3. Services — where business logic lives (services, injected; controllers / minimal API endpoints stay thin: bind, validate, delegate, map), interfaces only where a seam is needed, the request pipeline (validation, problem details for errors, cancellation tokens all the way).
  4. Configuration and loggingappsettings + environment + user secrets, never a secret in the repo; structured ILogger with OpenTelemetry where the project ships to production.
  5. Testing layout — xUnit; WebApplicationFactory for integration; containers for real databases; what is unit-tested and what is not, and why.
  6. Performance — the choices that shape the layout: async end to end, pooling, Span<T> / Memory<T> only in measured hot paths, source generators (JSON, regex, logging), the AOT / trimming trade-off stated for this app; and the platform workarounds it needs, each with the version it applies to.

Read the full file on GitHub · 52 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 First seen · 52 lines · 43 tokens per session scan A 660bfb812ce0

Subscribe to this mod's changes

dotnet is an agent published in the GitHub repository navid-kianfar/claude-memory-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 710 once invoked, about $0.0002 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-05.