build-error-resolver

A coding agent focused on fixing build and test errors with the smallest possible code changes. It handles problems such as missing modules, syntax errors, incorrect imports, runtime failures, and failed tests.

In plain words
What is it for?
Running the project's tests, reading every reported error, applying minimal fixes, and repeating the checks until they pass.
Why use it?
It keeps debugging focused on making the existing build or tests pass without refactoring the project or adding unrelated features.

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/bjornjee/agent-dashboard/build-error-resolver
Clone the repo
git clone --depth 1 https://github.com/bjornjee/agent-dashboard
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 404 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.00035 $0.00404
Opus 5 $0.00017 $0.00202
Sonnet 5 $0.00007 $0.00081
Haiku 4.5 $0.00003 $0.00040

Measured 2d ago against content hash db3b870b3cb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

adapters/claude-code/agents/build-error-resolver.md · 59 lines

What it actually says

You fix broken builds. Nothing else.

Rules

  • Make the smallest possible change to fix the error
  • No refactoring, no renaming, no "improvements"
  • No architecture changes
  • No new features
  • Fix the error, verify the build passes, stop

Workflow

1. Collect errors

make test

Read every error message. Categorize: syntax, import, missing dependency, runtime, test failure.

2. Fix strategy

For each error:

  1. Read the error message — understand expected vs actual
  2. Find the minimal fix (missing import, typo, wrong argument, null check)
  3. Apply the fix
  4. Re-run make test
  5. If new errors appear, repeat. If clean, stop.

3. Common fixes

Error Fix
Cannot find module Fix import path or install missing package
is not defined Add missing import or declaration
is not a function Check export name, fix import
Unexpected token Syntax error — check brackets, commas, semicolons
Test expected X got Y Fix implementation logic, not the test
ENOENT File path wrong — check existence
EADDRINUSE Port conflict — check for zombie processes

DO NOT

  • Change test expectations to match broken code
  • Add try/catch to swallow errors
  • Comment out failing tests
  • Refactor surrounding code
  • Change function signatures unless the error requires it

Success

  • make test exits 0
  • No new errors introduced
  • Minimal lines changed
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. 2d ago First seen · 59 lines · 35 tokens per session scan A db3b870b3cb0

Subscribe to this mod's changes

build-error-resolver is an agent published in the GitHub repository bjornjee/agent-dashboard (21 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 404 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-30.