Research · March to June 2026

Ship only what beats the baseline.

BrainstormLLM tries to predict which phases of a software-development pipeline a task actually needs, from specification through documentation, so AI agents can skip the rest. It was trained on 2,203 real Claude Code session turns and had to clear kill gates set before any training began.

2,203Training turns
9Task types
0.61Phase F1, cross-validated
0.75Gate it had to clear
400K+RouterBench rows
93%Tier accuracy
/ Accuracy by phase(01)

Better. Not good enough.

A one-shot model reached a mean F1 of 0.52 under five-fold cross-validation. Conditioning each phase on the phases before it lifted that to 0.61, and above 0.8 on whether a task needs a specification or an implementation at all. Review, verify and deploy stayed below 0.45: whether a task needs them depends on what happened during implementation, which the request alone cannot show.

Even 0.61 is generous. It gives each phase the true outcome of the phases before it, which a live pipeline only knows after the fact.

Sequential predictor · F1 by phase, 5-fold CVn = 2,203
Mean0.605
Specify0.943
Implement0.836
Review0.395
Verify0.361
Deploy0.432
Document0.665

Kill gate: mean F1 of at least 0.75

/ Kill gates(02)

Set in advance. Held to.

The thresholds were written down before the first model was trained, and missing any one of them keeps the model out of the request path. The accuracy gate failed, so it stayed there.

GateThresholdResultStatus
Enough data200+ examples, 3+ task types2,203 / 9Pass
Phase-skip accuracyMean F1 of at least 0.75, five-fold cross-validated0.61Fail
Cost and qualityAt least 25% cheaper than running every phase, with no more than a 5% quality dropNot measuredOpen
/ What I built(03)

Sequential predictors

Gradient-boosted models, one per pipeline phase, each conditioned on the phases before it.

Model-tier classifier

Trained separately on 400,000+ RouterBench data points; 93% cross-validated accuracy.

Inline inference

Both models export to ONNX, small enough for BrainstormRouter to call inline once a model clears its gates.

Part of one loop.

The control plane records full pipeline runs, build and test results included. That is the data the open quality gate needs, and the next training set.