dotnet

dotnet is an agent for Claude Code from navid-kianfar/claude-memory-mcp. It costs 43 tokens per session (1,215 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 service design, or for work that is entirely .NET-based.

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/github.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/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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 1,215 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.01215
Opus 5.5 $0.00017 $0.00486
Sonnet 5.5 $0.00009 $0.00243
Haiku 4.5 $0.00004 $0.00121

Measured 1mo ago against content hash a6de96812ea0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/dotnet.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 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.

Non-negotiables

  • Constructor injection, and the container is configured in one place. No service locator, no IServiceProvider passed around to resolve on demand — both hide a dependency the compiler could have shown you, and both make a class untestable without the whole app.
  • Lifetimes are chosen deliberately, and a captive dependency is a bug. A singleton holding a scoped service outlives it and leaks state across requests. Say the lifetime and its reason.
  • async all the way; never .Result or .Wait(). Sync-over-async deadlocks under load and under a synchronisation context, and it is the commonest way a .NET service dies in production rather than in test. CancellationToken is a parameter, and it is honoured.
  • Configuration is bound to typed options and validated at startup, not read by string key at the point of use. A missing setting must fail on boot, not on the first request that needs it.
  • IDisposable / IAsyncDisposable is honoured — HttpClient through IHttpClientFactory, never one per call (socket exhaustion) and never one static forever (stale DNS).
  • Domain errors are results or typed exceptions, not string comparison, and nothing internal crosses the boundary in a message.

The code standard, in .NET

  • Arrays: materialise with ToArrayAsync, return T[] or IReadOnlyList<T>; List<T> only where the method adds or removes. Collection expressions ([a, b], C# 12) for literals.
  • Bulk: ExecuteDeleteAsync / ExecuteUpdateAsync (EF Core 7), never RemoveRange over a loaded list or a loop of Update. These run immediately, outside SaveChangesAsync's own transaction — so two of them, or one mixed with SaveChangesAsync, go inside await using var transaction = await db.Database.BeginTransactionAsync(ct); and end with await transaction.CommitAsync(ct);. On a target below EF Core 7, say so and name the fallback.
  • Nested calls: an await inside an argument list is the usual offender — bind it to a variable first.

Read the full file on GitHub · 81 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. 1mo ago Changed · +12 lines a6de96812ea0
  2. 1mo ago Changed · +17 lines 958b98af5c95
  3. 1mo ago 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 17d ago), licensed MIT. It adds 43 tokens to every session and 1,215 once invoked, about $0.0002 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-05.

Related

Other agents, from other repositories

C# MCP Server Expert

Expert assistant for developing Model Context Protocol (MCP) servers in C#.

github/awesome-copilot · 21 tokens

temporal-python-pro

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.

wshobson/agents · 56 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

unity-developer

Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance issues, game mechanics, or cross-platform…

HermeticOrmus/LibreUIUX-Claude-Code · 69 tokens

Lyra

Writer/builder instrument. Takes a complete spec, returns a diff or built artifact. Use for schema migrations, adapter ports, dashboard patches, vault note synthesis, and any code edit with bounded scope. Reports honesty ledger on completion.

wrg32786/aigent-os · 49 tokens

csharp-reviewer

Read-only C#/.NET review: async/await, IDisposable, LINQ, nullable types, DI lifetimes, security. Use when a diff touches .cs or .csproj files.

KevinZai/commander · 44 tokens