Most AI build tools start from zero every time. A run fails, someone retries it, and the next build hits the same wall, because the lesson stayed in a log nobody reads. A self-improving loop closes that gap. Every run leaves the process a little better than it found it, so later builds benefit from what went wrong in earlier ones. If you're building software with agents, this matters more than any single model. Models keep changing, and your process is what stays.
Decide what better means
A loop needs a target, or it just gets busier. Production-ready software has to work, it has to be pleasant to use, and it has to be affordable to make. Working software that looks thrown together won't keep users, and a beautiful app that cost far more than it should won't last either. Pick a measure for each one, so you can tell whether a change to your process actually helped.
Treat every failure as data
Go through your last few dozen stalled or failed runs and write down what unblocked each one. A plain retry? A config change? A real choice about the product? Those answers show you where the process is weak. Retries point at a process asking for attention it doesn't need, and config changes point at something you could have caught earlier. Keep each check's error word for word as you go, because a summary loses the detail that makes a failure fixable.
Fix the cause, then the whole class
When a run stops, diagnose it right then, while the logs are fresh. Then ask two questions: what clears this run, and what would stop this happening on any future run? The second answer is where the gains build up. A fix for one app helps one app. A better check, prompt or default helps every build after it, so make the fix at that level and prove it on more than the case that prompted it.
Keep the loop honest
Automated repair is safe when it goes back through the same checks as everything else. Let it retry with guidance, leave approvals alone, and limit the retries so a confused run can't burn money while nobody watches. Then decide in advance what really needs a person: a choice between genuinely different paths, or something nobody else can do.
Spend where it counts
Cost efficiency comes from the same loop. Look at where your runs spend money and you'll usually find work that didn't need your strongest model, or tests that reran when nothing around them changed. Give routine work a cheaper model, save the strongest one for the hard decisions, and scope checks to what changed, with a full run before you release.
How this works in 1904
When a build on 1904 pauses, a repair agent starts right away. It works out what failed and retries with what it learned, and the checks run again on the result, so it can't approve its way past them. When the way forward is a real choice, it sets out the options with one recommended, and a person picks. Each diagnosis also proposes what would stop the same problem returning, and those proposals feed the improvements we make to 1904 itself.
The same aim runs through the rest of a build. 1904 tests and reviews each app before merge so it works, holds it to the design you approved, and routes each job to a model that fits, so you aren't paying for more than the job needs.
If you've found a good measure for any of this in your own builds, we'd like to hear it.