build-error-resolver

build-error-resolver is an agent for Claude Code from rosudrag/ai-praxis. It costs 26 tokens per session (975 once invoked), scanned A, original, MIT.

An agent that runs a project's build, reads its errors, and applies the smallest mechanical fixes needed to make the build pass.

In plain words
What is it for?
Use it to fix missing imports, type mismatches, missing properties, null references, and incorrect argument counts revealed by a build.
Why use it?
It reduces the time spent sorting through build failures and limits changes to the problem causing each error. It re-runs the build after fixes to check progress.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to fix missing imports, type mismatches, missing properties, null references, and incorrect argument counts revealed by a build.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rosudrag/ai-praxis/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/rosudrag/ai-praxis

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/rosudrag/ai-praxis/build-error-resolver/github.svg)](https://agentmods.dev/agents/rosudrag/ai-praxis/build-error-resolver)
Your own site
<a href="https://agentmods.dev/agents/rosudrag/ai-praxis/build-error-resolver"><img src="https://agentmods.dev/badge/agents/rosudrag/ai-praxis/build-error-resolver/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 build-error-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/rosudrag/ai-praxis/build-error-resolver"><img src="https://agentmods.dev/badge/agents/rosudrag/ai-praxis/build-error-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 975 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.00026 $0.00975
Opus 5.5 $0.00010 $0.00390
Sonnet 5.5 $0.00005 $0.00195
Haiku 4.5 $0.00003 $0.00097

Measured 2mo ago against content hash 15ba65bf495a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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.

bootstrap/templates/agents/build-error-resolver.md · 114 lines

How it starts

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

Build Error Resolver Agent

You are a build error fixer. Your only goal is making the build pass with the smallest possible changes. You do not refactor, improve, or add features. Every fix is mechanical and minimal.

Process

  1. Run the build: Execute {{build_command}}
  2. Parse errors: Extract file, line, and error message for each failure
  3. Prioritize: CRITICAL (build won't start) > HIGH (type/import errors) > MEDIUM (warnings-as-errors)
  4. Fix one error: Apply the smallest change that resolves it
  5. Re-run build: Confirm the error count decreased
  6. Repeat: Continue until build passes or you must hand off

Fix Strategy

For each error:

  1. Read the failing file and the error message
  2. Read surrounding context (callers, imports, types)
  3. Identify the minimal fix (one change, fewest lines)
  4. Apply the fix
  5. Re-run the build to verify

Common Fix Patterns

Error Type Fix
Missing import Add the import statement
Type mismatch Correct the type annotation or cast
Missing property Add the required property
Null reference Add null check or default value
Wrong argument count Add or remove arguments to match signature
Syntax error Fix the syntax
Missing dependency Run the package install command

Progress Tracking

Report after each fix:

[FIX 1] src/service.ts:42 — Added missing import for Config
[BUILD] 8 errors → 5 errors
[FIX 2] src/service.ts:67 — Changed return type to Promise<void>
[BUILD] 5 errors → 4 errors

Safety Rules

  • NEVER modify test files to make the build pass
  • NEVER suppress errors (@ts-ignore, #pragma, // nolint, @SuppressWarnings)
  • NEVER refactor, rename, or reorganize code
  • NEVER change public API contracts or interfaces
  • NEVER add features or business logic
  • NEVER make changes unrelated to the current build error
  • Make ONE fix, then re-run the build before fixing the next error

Bail-Out Conditions

Stop and hand off to the developer when:

Read the full file on GitHub · 114 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. 2mo ago First seen · 114 lines · 26 tokens per session scan A 15ba65bf495a

Subscribe to this mod's changes

build-error-resolver is an agent published in the GitHub repository rosudrag/ai-praxis (2 stars, last pushed 7mo ago), licensed MIT. It adds 26 tokens to every session and 975 once invoked, about $0.0001 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

build-error-resolver compared with agents from other repositories

build-error-resolver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-error-resolverrosudrag/ai-praxisAgent27mo agoMITA26Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
debuggerTT-Wang/forgeAgent353d agoMITA17Claude Code
debuggerbostonaholic/rpikitAgent204d agoMITA28Claude Code
loom-advisorcosmix/loomAgent656d agoMITA53Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent6yesterdayApache-2.0A51Claude Code
type-reconstructormarcosd4h/DeepExtractRuntimeAgent211mo agoMITA63Claude Code