How we made a B2B SaaS client’s AI harness 2.5× faster, 22% cheaper and more accurate.
The client’s AI agent gave the right answers, and users waited for them. We worked on the harness around the models: the steps the agent takes, and which model does which job. Two changes, one at a time, each tested on the same 62 questions before it shipped.
- Client
- B2B SaaS data platform
- Industry
- B2B SaaS
- Asked by
- Engineering lead
- What we did
- Run
- Use cases
- AI product development
- How it shipped
- Three versions tested side by side on the same 62 questions, before release
- Published
- 4 December 2026
Results at a glance
One evaluation run on the same 62 questions, before and after.
2.5×
faster typical answer, on the same 62 questions.
Evaluation run, 30 Nov 202622%
lower model cost per answer, at public list prices.
Evaluation run, 30 Nov 20264.5
out of 5 for factual accuracy on the reference questions, up from 3.7.
Evaluation run, 30 Nov 20263
regressions caught before release, not by users.
Evaluation run, 30 Nov 2026The harness, after the two changes
A model for each job, and the turn ends when the final query returns data. The second draft nobody read now runs only when nothing comes back.
3.9×
faster reasoning loop, the step where most of the wait was.
Evaluation run, 30 Nov 2026 · median01 · The question
The answers were right. The wait was the complaint.
The client is a B2B SaaS company. Its customers work in its data platform every day, and its AI agent answers their questions from that data. We rebuilt the agent earlier this year.
Once the answers held up, users noticed the wait. Simple questions came back quickly. Harder ones took long enough to break the flow of work.
The ask was narrow: make it faster without making the answers worse. Users should notice nothing but the speed, and every change had to prove itself on the same questions before it shipped.
02 · What we found
The database wasn’t slow. The writing was.
We started from the production traces: every step of every answer, timed. Each database query came back in a fraction of a second.
The traces gave a simple model of the wait. It pointed at what the models wrote, and at two habits of this agent.
03 · What we did
Three levers. The free one first.
The model of the wait left three ways to shorten it. Only one of them trades against intelligence, so it went last.
The free lever went first and was measured on its own, on the same model: it halved the reasoning loop, and the answers didn’t change. Only then did we change models.
04 · A model for each job
We started from each step’s job, not from the model list.
Five kinds of step, each with its own need. The model follows the need.
A leaderboard is a proxy, not proof: it ranks general ability, not these questions. So the choice was a hypothesis, and the test decided.
Each step’s model is now a setting the team can change without touching code.
05 · How we tested it
Risks named before the run. Three versions side by side.
The bar was set before the run: ship only if it is faster and the answers hold.
All three answered the same 62 real questions from the platform’s test set, one after another from the same machine, so their timings compare. Each question says what the agent should do: answer, decline or greet. Fifteen also carry a reference answer, written as a checklist of facts.
Ten conversations ran three times, to see how much the answers vary: 276 runs, with no errors. Automated judges scored every answer for accuracy, completeness, staying within the data, format and usefulness. A separate check compared what the agent did with what it should have done.
Five risks, named before the run
Four came true in some form. None stopped the release.
06 · Results
2.5× faster, 22% cheaper, and more accurate on the reference questions.
Both changes together cut the typical wait by 59%. The first change alone did about half of that, by halving the agent’s reasoning. The model change shortened every step, the answer included. Model cost per answer fell 22% at public list prices.
On the 15 questions with a reference answer, factual accuracy rose from 3.7 to 4.5 out of 5. Most of that gain comes from three questions going from 2 to 5: a good sign, on a small sample.
Side by side · before release
Same 62 questions, same dataThe readout: two changes against the agent as it ran.
Both changes ship. Three regressions go to fixes before release. The fourth, answers that vary more, became the next loop.
What got worse, caught before release
The faster models drew some lines in a different place. One fair question was declined, one question the client wants declined was answered, and one search gave up after repeated errors. The test set caught all three, not the users, and they go to fixes before release. The fourth, answers that vary more from run to run, became the next loop.
07 · The improvement loop
One turn of the loop, and the next one it set up.
A live AI system gets better in turns: measure the gap, change one thing, test it side by side with the live version, ship what wins. This turn made the agent faster. Its price is the next turn’s question.
Two turns of the improvement loop
- Measure the gap.Every step of every answer, timed. The writing took the time, not the database.
- Change one thing.First the steps, then the models, so each gain could be measured.
- Test side by side.Three versions of the agent on the same 62 questions.
- Ship what wins.Both changes ship, once the three regressions are fixed.
- Measure the gap.Every test question, five runs: how often do the answers agree?
- Change one thing.Candidates: a model setting, a mid-size model, firmer rules where a question reads two ways.
- Test side by side.Against the agent now live, on the same questions.
- Ship what wins.A change ships only if it beats the live agent.
Why consistency next: people who compare answers week to week need the same question to give the same answer. Asked twice, the faster agent did that for 9 of 15 repeated questions, against 12 before. That matters as much as speed.
Who owns it: an engineer who works inside the client’s team on one live system and owns its improvement loop. Measuring where the time and the errors go, changing one thing, testing it against the live version, deciding, and starting again.
08 · What the team took from it
Measure first, change one thing, name the price.
One turn of the loop, and what it taught.
If this sounds like your company