Skip to content
Bkper Bkper

Let the LLM build the engine, not be it

Mael Caldas

Type a question about your Book. The report is there before you finish reading it.

That’s Report, a Bkper app I built in five days, recorded at real speed on our public template Book. One input, no submit button, in your own language.

Ask an AI agent to build the same report from scratch and it gets it right too. It just takes about two minutes.

The same question asked two ways: a System One report, Report App, answers in 1.4 seconds, an AI agent building the report itself, turn by turn, takes 2 minutes 21 seconds, both with the same right number

In the time an agent builds one report, you can ask Report a hundred questions.

Right is not enough

We gave an AI agent, our own Bkper Agent, ten real questions, three times each, and asked it to build every report from scratch. It got all thirty right, in about two minutes and a quarter of a million tokens each. And on four of the ten, it took a different road on different runs: Q1 revenue read from Revenue once, from Net Income the next.

Same number today. Different road tomorrow.

An agent that builds every report itself can show the right numbers 99 times and be wrong on the 100th, and you can’t test a path it invents every time. In accounting, you can’t afford to be almost correct.

The LLM built the engine

Here’s the twist: LLM coding agents wrote every line of Report. 108 commits in five days, about 20,000 lines of TypeScript, 77 test files. I described what I wanted, argued about the design, and let the agents build, test and verify.

The LLM is all over Report. It built the engine. It just isn’t the engine.

Two places to put the LLM: when an agent builds every report itself, each takes about two minutes on a new path; when it builds the engine once, each report takes about a second on the same path

Ask for the parts, not the answer

Each request still asks Jev, a small System One model, what your sentence means. How we ask made all the difference.

Our first design asked one coarse question: which of these 255 periods is it? A list we rebuilt every day, and it had no way to say revenue last year compared to 2023. That came back as 2025 vs 2024. It read 73% of our 561 period tests right.

So we broke it into atomic questions: how long, which year, which month, compared with what. Each is a short multiple choice with no dates in it, like January to December or last month, so nothing goes stale. Code puts the answers into a query, and Bkper does the math. Same tests: 100%.

Inside the engine: Jev judges the question is about Expenses, over a year, last year, three of the fifteen small questions it answers; code writes the query group:'Expenses' on:$y-1; Bkper returns 313,933.73 for 2025

As Allie Laabs puts it in Don’t Call It a Decision Model: Jev makes judgments, code makes decisions.

A miss you can fix

Report isn’t perfect. Our benchmark caught it reading How much did we spend last year? as Net Income, not Expenses. Every run, the same way, with the query right on the screen.

Because the meaning is split into parts, we could see which one was wrong: which group? We pinned it with a test, changed that one question, and it passed. One change, for every Book and every language.

An LLM’s 100th report fails somewhere new each time. An engine’s miss is a bug with an address.

Agents should call the engine

None of this keeps agents away from reports. In a Book with Report installed, ask Bkper Agent for a report and it makes one call to Report’s API, then shows you the same interactive report. Any agent can do the same. When Report can’t help, like a messy chart of accounts or a custom pack for your accountant, it hands you to the Agent with the request drafted.

If you’re building an app

  • Use the LLM to build. Code, tests, evaluations, translations.
  • Let agents call the engine instead of building every answer when it must be exact.
  • Ask the model for judgments only. Let code hold the facts, the rules and the math.
  • Turn every miss into a test before you fix it.

Report is open source, and System One models are available to every Bkper app. Building something similar? Find me on X at @maelcaldas.

← All posts