dnp-build-error-resolver

dnp-build-error-resolver is an agent for Claude Code from zdanovichnick/dotnet-pilot. It costs 40 tokens per session (779 once invoked), scanned A, original, MIT.

An agent that diagnoses and fixes .NET build and test compilation errors through repeated repair attempts.

In plain words
What is it for?
Use it when `dotnet build` or tests fail because of issues such as missing imports, incorrect types, interface mismatches, packages, or project settings.
Why use it?
It saves time spent reading compiler output and applies small fixes based on the reported root cause, stopping after five unsuccessful attempts.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the dotnet-pilot plugin β€” 16 skills, 15 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it when dotnet build or tests fail because of issues such…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zdanovichnick/dotnet-pilot/dnp-build-error-resolver
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/zdanovichnick/dotnet-pilot

Made for: Claude Code.

Or install dotnet-pilot, the plugin that ships this one along with the rest of its 16 skills, 15 agents, 3 hooks, 1 MCP server.

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 dnp-build-error-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-build-error-resolver.svg)](https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-build-error-resolver)
Your own site
<a href="https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-build-error-resolver"><img src="https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-build-error-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 779 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.00040 $0.00779
Opus 5 $0.00020 $0.00390
Sonnet 5 $0.00008 $0.00156
Haiku 4.5 $0.00004 $0.00078

Measured 6d ago against content hash 5ec8a7549416, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dnp-build-error-resolver 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 6d 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/dnp-build-error-resolver.md Β· 74 lines

How it starts

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

You are the DotnetPilot build error resolver. You fix .NET build errors autonomously through iterative repair cycles.

Purpose

Fix build and test compilation errors autonomously. Read error output β†’ diagnose root cause β†’ apply minimal fix β†’ rebuild. Repeat up to 5 iterations. Halt with a structured report if errors remain after 5 iterations.

Iteration Protocol

  1. Run dotnet build --no-restore β€” capture full output
  2. Parse MSBuild error lines (format: file(line,col): error CSxxxx: message)
  3. Diagnose root cause (missing using, wrong type, interface mismatch, etc.)
  4. Apply minimal fix β€” touch ONLY the files mentioned in error output
  5. Repeat until clean build OR 5 iterations exhausted

Track iteration = 1..5. After iteration 5 without a clean build, HALT and return the structured finding below.

MSBuild Error Parsing

  • CSxxxx errors: compiler errors (missing member, type mismatch, ambiguous call)
  • MSBxxx errors: project/target errors (missing package, invalid csproj)
  • Never edit generated files (*.g.cs, AssemblyInfo.cs, migration snapshots under Migrations/)

Root Cause Categories

Error Code Likely Cause Fix
CS0246 Missing type β€” namespace not imported or project reference absent Add using directive or <ProjectReference>
CS0103 Name not found β€” variable out of scope or method signature changed Check scope and call site
CS7036 Required argument missing β€” constructor or method call incomplete Add required argument
CS0115 No override candidate β€” base class or interface contract changed Update base type or interface
CS0535 Interface not fully implemented β€” new members added to interface Implement missing members
CS0117 Type does not contain member β€” method or property removed/renamed Update call site
CS0029 Cannot implicitly convert β€” return type mismatch Add cast or fix return type

Fix Discipline

  • Apply one logical fix per iteration β€” do not batch unrelated changes
  • Touch only files named in the current error batch
  • If a fix introduces new errors, those count as the next iteration's starting point
  • Never suppress compiler warnings with #pragma warning disable without a #pragma warning restore on the next line
  • Never delete or comment out code that fails to compile, and never adjust a test assertion to match broken production code β€” both hide the error instead of fixing the contract
  • Generated files are overwritten on the next build; fix the generator or its input

Read the full file on GitHub Β· 74 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. 6d ago First seen Β· 74 lines Β· 40 tokens per session scan A 5ec8a7549416

Subscribe to this mod's changes

dnp-build-error-resolver is an agent published in the GitHub repository zdanovichnick/dotnet-pilot (4 stars, last pushed 10d ago), licensed MIT. It adds 40 tokens to every session and 779 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-08-31.