dotnet-explore

dotnet-explore is an agent for Claude Code from Attemainio/dotnet-toolkit. It costs 105 tokens per session (3,333 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; mentions CLAUDE.md; names the NotebookEdit tool.

Part of the dotnet-toolkit plugin — 8 skills, 5 agents, 4 hooks shipped together

Good fit Planning .NET changes, finding dependent code, tracing symbol usage, and reporting affected files and locations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/attemainio/dotnet-toolkit/dotnet-explore
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/Attemainio/dotnet-toolkit

Made for: Claude Code.

Or install dotnet-toolkit, the plugin that ships this one along with the rest of its 8 skills, 5 agents, 4 hooks.

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-explore

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/attemainio/dotnet-toolkit/dotnet-explore"><img src="https://agentmods.dev/badge/agents/attemainio/dotnet-toolkit/dotnet-explore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,333 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.00105 $0.03333
Opus 5.5 $0.00042 $0.01333
Sonnet 5.5 $0.00021 $0.00667
Haiku 4.5 $0.00011 $0.00333

Measured 25d ago against content hash f02a14614f13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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-explore.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 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 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 or a diff — that is the caller's job, and the caller will read the text itself before writing it.
  • 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. You are locating, not reading: get_symbol gives the exact declarationSites range, and the caller reads that range when it is ready to act. A body read here is paid twice. get_symbol(include: "bodyOutline") maps a long member when a location inside it is the answer. A PreToolUse hook notes a whole-file read but does not block it, so this instruction is the sole boundary — treat it as absolute.
  • 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/rename_symbol.md: it describes a write path you do not have, and reading it 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.)

Read the full file on GitHub · 206 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. 25d ago Changed · -9 lines f02a14614f13
  2. 1mo ago 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 26d ago), licensed MIT. It adds 105 tokens to every session and 3,333 once invoked, about $0.0004 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 agents, from other repositories

MAF Migration Agent

Use when migrating a .NET codebase to Microsoft Agent Framework (MAF) 1.3.0. Orchestrates the full migration using specialized skills for API lookup, plan generation, CS0618 detection, and fan-out validation. Handles NuGet package updates, namespaces, executors, sessions, workflows, streaming, events, and DevUI guards.

joslat/maf-doctor · 78 tokens

unity-simplifier

Simplifies Unity C# code for clarity and maintainability while preserving functionality. Focuses on Unity-specific patterns and conventions.

DmitriyYukhanov/claude-plugins · 29 tokens

Backend Developer

Specialist for C# backend code within a vertical slice. Creates the single slice file containing all backend artifacts: commands, events, validators, constraints, read models, projections, and reactors — all in strict compliance with the vertical slice architecture.

Cratis/AI · 51 tokens

MAF Cross-Framework Migration Agent

Use when migrating an app FROM Semantic Kernel (C#) TO Microsoft Agent Framework (MAF) — a cross-framework port, NOT a MAF version upgrade. Inventories SK usage, classifies every construct (🌉 bridge / 🔁 rewrite / 🏗 re-architect), writes a plan, scaffolds a NEW MAF project beside the original (non-destructive), and…

joslat/maf-doctor · 116 tokens

dependency-auditor

Dependency audit specialist — manifest-graph axis covering outdated versions, transitive bloat, and Python ecosystems. Invoke when you want a focused supply-chain hygiene report.

lugassawan/swe-workbench · 36 tokens

dnp-ef-migration-planner

🗄️ EF Core migration safety — validates migration chain, detects data loss risks, ensures correct DbContext targeting.

zdanovichnick/dotnet-pilot · 33 tokens