Skip to main content
build-fix parses your TypeScript or JavaScript build log and surgically patches source files to fix the errors. Zero config, zero dependencies.

GitHub

nometria/build-fix-agents

PyPI

build-fix on PyPI

Install

Usage

What it fixes

How it works

  1. Parse — reads the build log and extracts error locations (file, line, message)
  2. Read context — loads the relevant source file sections
  3. Patch — LLM generates the minimal fix for each error
  4. Verify — re-runs npm run build to confirm errors are resolved
  5. Repeat — iterates up to --max-passes times until the build is clean
Particularly useful for vibe-coded apps where the AI builder generated TypeScript with any types or missing imports that cause CI failures after migration.

Requirements

  • OPENAI_API_KEY or ANTHROPIC_API_KEY set in environment
  • Node.js project with a build script in package.json