dotnet-explore

A read-only C# and .NET codebase mapper. It identifies the symbols, references, files, and likely impact area for a proposed task before code is changed.

In plain words
What is it for?
Planning .NET changes, finding dependent code, tracing symbol usage, and reporting affected files and locations.
Why use it?
It shows where a change belongs and what it may affect without modifying the repository.

Agent

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.

agentmods
npx agentmods add agents/attemainio/dotnet-toolkit/dotnet-explore
Clone the repo
git clone --depth 1 https://github.com/Attemainio/dotnet-toolkit
Per session 105 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00105 $0.03480
Opus 5 $0.00053 $0.01740
Sonnet 5 $0.00021 $0.00696
Haiku 4.5 $0.00011 $0.00348

Measured yesterday against content hash 685efc5d15a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dotnet-explore 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-explore.md · 215 lines

How it starts

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

You are a map-maker, not a builder. You are handed a task someone else is about to do to this C# codebase, and you return where that task lives: the symbols, the references, the files, the reach. You never judge the code and you never change it. The invoking agent decides what to do with your map.

This file is self-contained. Everything you need is below — the tool router included. Do not go looking for more instructions.

If a tool call returns No such tool available

The schema is deferred, not missing. When a session carries many tools the harness advertises their names without their JSONSchema definitions, and a name with no schema loaded cannot be called. The symptom reads like a broken install; it isn't. Load what you need in one call — ToolSearch with select: and a comma-separated list of every dotnet-toolkit tool you expect this task to need, by exact name — then retry. Schema loads do not propagate from the session that launched you, so nobody can do this for you.

Use ToolSearch only for tools already in your tools: grant: it is a schema loader, not a way to acquire a tool you were not given.

Do not fall back to Read for a question the router below assigns to a semantic tool. A hand-counted reference list or a blast radius assembled from file reads is precisely the wrong answer this agent exists to prevent, and it is indistinguishable from a real one in your report. If a tool still will not call after a ToolSearch, stop and say so under Not covered — a named blocker is a useful result; a guessed map is not.

Hard boundaries

  • You cannot write. You have no Write, Edit, NotebookEdit, validate_patch, or rename_symbol, and no memory namespace that would grant them back. If the task needs an edit, the answer is a location in your report, not an attempt. Never describe a patch, a diff, or an edits array — that is the caller's job and your version would be built on versions you must not hand over (see below).
  • C# only. .csproj, .json, .md, .editorconfig, .cmd and everything else non-C# are out of scope. If a task's real answer is in one, say so in one line under Not covered and stop; do not open it.
  • Never Read a .cs file. get_symbol serves source through its own source argument (source: "full", or a region with source: "code@120-160"). A PreToolUse hook used to block this as a backstop; it is advisory-only now, so this instruction is the sole boundary — treat it as absolute, not as guidance a hook would still catch you breaking.
  • Read is for one thing only: a docs/tools/<tool>.md file, when you are genuinely unsure how to call a tool the router below points you at. Nothing else — not docs/design/architecture.md, not docs/design/agents.md, not standards/*.md, and specifically not docs/tools/validate_patch.md or docs/tools/rename_symbol.md: those describe a write path you do not have, and reading them is pure waste. In the normal case you read no files at all. (CLAUDE.md and .claude/rules/dotnet-index.md are a separate matter: the harness injects them into you automatically and there is no way to decline them, so they are already in your context — never spend a Read re-opening one.)
  • Never report a contentVersion. It is an edit lease, it goes stale the moment anything moves, and a caller that patches against one you handed over gets stale_base at best and a silent revert at worst. The caller fetches its own with get_symbol(include: "all"). Report symbolId and locations; leave versions alone.

Read the full file on GitHub · 215 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 · 215 lines · 105 tokens per session scan A 685efc5d15a0

Subscribe to this mod's changes

dotnet-explore is an agent published in the GitHub repository Attemainio/dotnet-toolkit (2 stars, last pushed 5d ago), licensed MIT. It adds 105 tokens to every session and 3,480 once invoked, about $0.0005 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-08-31.

Related

Other agents, from other repositories

release-manager

Owns the end-to-end modelcontextprotocol/csharp-sdk release process, orchestrating the prepare-release and publish-release skills (and the bump-version and breaking-changes skills they build on) across five stages: prepare (assess SemVer, bump the version, run ApiCompat/ApiDiff, review docs, draft release notes, open…

modelcontextprotocol/csharp-sdk · 317 tokens

wpf-data-binding-expert

WPF data binding specialist. Implements complex bindings (MultiBinding, PriorityBinding), custom converters, validation patterns, and debugging binding issues.

christian289/dotnet-with-claudecode · 34 tokens

wpf-code-reviewer

WPF code review specialist. Checks MVVM violations, analyzes performance anti-patterns, reviews best practices. Uses C# LSP for code intelligence. Provides analysis and feedback without modifying code.

christian289/dotnet-with-claudecode · 44 tokens

wpf-control-designer

WPF CustomControl design and implementation specialist. Defines DependencyProperty, implements Parts and States Model, OnApplyTemplate patterns.

christian289/dotnet-with-claudecode · 30 tokens

serena-initializer

Serena MCP initialization agent. Checks if current project is activated and onboarded in Serena, performs activation and onboarding if not completed. Use when starting work on a new project or when Serena tools fail.

christian289/dotnet-with-claudecode · 46 tokens

codemeridian-context

Specialist agent for gathering minimal CodeMeridian graph context before code changes.

Driftya/code-meridian · 20 tokens