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
- Parse — reads the build log and extracts error locations (file, line, message)
- Read context — loads the relevant source file sections
- Patch — LLM generates the minimal fix for each error
- Verify — re-runs
npm run buildto confirm errors are resolved - Repeat — iterates up to
--max-passestimes until the build is clean
Requirements
OPENAI_API_KEYorANTHROPIC_API_KEYset in environment- Node.js project with a
buildscript inpackage.json