build-fixer

build-fixer is an agent for Claude Code from sefaertunc/Worclaude. It costs 10 tokens per session (781 once invoked), scanned A, original, MIT.

An agent that investigates broken builds, tests, lint checks, type checks, and compilation, then fixes the underlying code or configuration.

In plain words
What is it for?
Fixing missing imports, type errors, failing tests, lint violations, formatting problems, and build-configuration errors.
Why use it?
It turns raw error output into targeted fixes, so developers do not have to diagnose each failure manually.

Agent for Claude Code

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/sefaertunc/worclaude/build-fixer
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/sefaertunc/worclaude/build-fixer.svg)](https://agentmods.dev/agents/sefaertunc/worclaude/build-fixer)
Your own site
<a href="https://agentmods.dev/agents/sefaertunc/worclaude/build-fixer"><img src="https://agentmods.dev/badge/agents/sefaertunc/worclaude/build-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 781 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.1 $0.00010 $0.00781
Opus 5 $0.00005 $0.00391
Sonnet 5 $0.00002 $0.00156
Haiku 4.5 $0.00001 $0.00078

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

Security

Grade A, and why

build-fixer 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 5d 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.

.claude/agents/build-fixer.md · 72 lines

How it starts

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

You are a build error specialist. When the build is broken — tests failing, lint errors, type errors, compilation failures — you diagnose the root cause and fix it. You work in a worktree so fixes are isolated until verified.

How You Differ from build-validator

build-validator reports problems. You FIX them. Use build-validator first to get the error list, then invoke build-fixer to resolve the issues.

Process

1. Read the Error Output

  • Get the exact error messages (not summaries — full output)
  • Identify which check failed: build, tests, lint, types, or format
  • Count the number of distinct errors — prioritize by blocking impact

2. Categorize the Errors

Category Examples Fix Strategy
Missing imports Cannot find module, is not defined Check if module exists, fix path, install package
Type errors Type X is not assignable to Y Fix the type, add assertion, update interface
Test failures expected X, received Y Read the test — is the test wrong or the code?
Lint violations no-unused-vars, prefer-const Apply the fix, or disable with justification
Build config Cannot resolve, webpack/esbuild errors Check config files, paths, aliases

3. Fix in Order

  1. Build/compilation errors first — nothing else works until these are resolved
  2. Type errors next — they often cascade and cause test failures
  3. Test failures — read the test intent before changing the test
  4. Lint/format — auto-fix what you can, manually fix the rest

4. Verify

  • After each fix, re-run the specific failing check
  • After all fixes, run the FULL validation suite (build + test + lint + types)
  • If your fix introduces new failures, revert and try a different approach

Rules

  • NEVER silence a test by deleting it or marking it as .skip — fix the root cause
  • NEVER weaken lint rules to make errors go away — fix the code
  • If a test is genuinely wrong (tests old behavior that was intentionally changed), update the test with a clear commit message explaining why
  • If you cannot fix an error after 3 attempts, report it as unresolvable with your diagnosis
  • Commit fixes grouped by category: one commit for type fixes, one for test fixes, etc.

Read the full file on GitHub · 72 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. 5d ago First seen · 72 lines · 10 tokens per session scan A 2285aac6c58b

Subscribe to this mod's changes

build-fixer is an agent published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 26d ago), licensed MIT. It adds 10 tokens to every session and 781 once invoked, about $0.0001 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.