kleene@sql

Benchmarks

Three models, seven task packs, three modes. Every number is computed from the per-task rows under plots/, so a run that lands in the repository lands here. Pick a view below; the detail folds out underneath.

learningKleene with the playbook on. Against frozen it isolates the playbook.
frozenKleene with the playbook off, the control. Against plain it isolates the SQL abstraction.
plainA tool-calling agent, no SQL, same model, tools and budget. The baseline.
show metric
filter by model, mode and pack
model
mode
pack

Click a chip to toggle it, shift-click to show only that one. The view is in the address bar, so a filtered page can be linked.

What the numbers say
  • The four original packs are saturated at the top. Opus 5.5 solves every task of terminal, oolong-like, finance-synthetic and legal-synthetic in every mode, so they compare cost only, and the plain agent wins there: every context fits in one prompt, and the SQL abstraction pays for a catalog, a planner and rendered results on every turn.
  • The playbook cuts calls. Learning against frozen on Opus: terminal 2.2 to 1.3, oolong 4.9 to 3.9, finance 3.5 to 2.4, legal 12.7 to 10.6 calls a task. Only oolong and legal adopted entries; on terminal and finance the gate rejected every candidate, so their difference is run-to-run variance.
  • The gate is the cost. Each candidate is replayed on three earlier tasks in both arms. Those replays are recorded in playbook_evals, not here: about $34 of the Opus run's $44 on the original packs, and $9 on top of $7 for coding and memo-rubric.
  • The hard packs separate on accuracy. Coding: Opus 12/12 in every mode, Luna 10 to 11, Haiku 2 to 4. Memo-rubric is the one pack where Opus trails Luna, and learning made Opus worse there (10 to 4 solved) while it made Luna better (8 to 18). Logbook-hard is where frozen Kleene beats plain outright: Luna 7/10 against 3/10, Opus 10/10 against 5/10, and Opus does it for a tenth of what its own plain agent spends.
  • Caveats in full are in the write-up.
Pass rate against cost every visible cell on one chart

One mark per pack, mode and model: colour is the mode, shape is the model (circle is Claude Opus 5.5, diamond is Claude Haiku 4.5, triangle is GPT-6 Luna). Up and to the left is better; the dashed line joins the marks nothing visible beats on both axes. The chart follows the filters above, so narrow them to read it. Hover a mark for its numbers, click to pin, or expand it.

Calls per task by pack and mode, one chart per model

The playbook's effect shows in calls: learning takes fewer than frozen wherever entries were adopted. The plain agent answers the short packs in one call, because every context fits in one prompt.

Every cell the full table, click a header to sort
packmodemodel solved$ / tasktotal $ calls / tasktokens / tasks / task

The same table, as Markdown, is in plots/results/results.md; the rows behind it are the CSVs listed under each model below.

The packs what each one asks and how it is graded
packtaskswhat the model gets, what it must produceoraclestands in for
terminal6a workspace and an instruction (create a file, count lines, rename, sum a CSV column); files left behind and a one-row FINALshellTerminal-Bench
oolong-like20dated meeting notes naming projects and hours; one row per project with its totalexactOOLONG-style aggregation
finance-synthetic20a synthetic income statement over several years with distractor notes; one number (a sum, a growth rate, a ratio)numberFinanceBench
legal-synthetic20a synthetic contract with planted clause categories among near-misses; the set of categories presentexactCUAD, Harvey LAB
logbook-hard30about 1,650 log entries (30k tokens) in four phrasings with corrections; one of five aggregate questionsexactOOLONG at a size that cannot be read once
memo-rubric20a 40-section services agreement with planted terms, a rejected proposal and a superseding amendment; a short memojudgeHarvey LAB drafting
coding12a small Python project with visible tests; implement, extend, then fix a bug, in three-step episodesshell (hidden tests)SWE-bench

The synthetic packs are frozen generator output, so two people see the same tasks in the same order. The external datasets they imitate are not redistributed; OOLONG, Harvey LAB and contract redlining import on demand with bench import-*. The full description is in the benchmark doc.

The runs and their plots when and how each model ran, the five bench plot charts

Claude Opus 5.5

27 Sep, 6, 10 and 26 Oct 2026. root on Opus 5.5 at high effort, worker and judge on Sonnet 5.5, proxy on Haiku 4.5; the four original packs on 27 September, coding and memo-rubric on 6 October and logbook-hard (capped at ten tasks) on 10 October with the conversation cached and prompt functions batched; the four hard packs on 26 October with every task capped at $2.50. Rows: plots/evals.csv, plots/opus-2026-10-06/evals.csv, plots/opus-2026-10-26/evals.csv.

Learning curve, Claude Opus 5.5
Learning curve: task number against rolling-5 accuracy, one line per run; a learning line that rises while frozen stays flat is the playbook working
Cost parity, Claude Opus 5.5
Cost parity: cumulative dollars against cumulative accuracy; at equal spend, which mode is higher
Calls against difficulty, Claude Opus 5.5
Calls against difficulty: task rating against calls made, solved and failed as two series
Estimate accuracy, Claude Opus 5.5
Estimate accuracy: the planner's estimated calls against the calls a statement made; on the diagonal is exact
Plan space, Claude Opus 5.5
Plan space: relations joined against join orders considered, one point per statement

Claude Haiku 4.5

1, 6 and 13 Oct 2026. every solver alias on Haiku 4.5, judge on Sonnet 5.5; coding and memo-rubric on 1 October, the four original packs, coding plain and logbook-hard (capped at ten tasks) on 6 October with the conversation cached, and the four hard packs on 13 October. Rows: plots/haiku-2026-10-01/evals.csv, plots/haiku-2026-10-06/evals.csv, plots/haiku-2026-10-13/evals.csv.

Learning curve, Claude Haiku 4.5
Learning curve: task number against rolling-5 accuracy, one line per run; a learning line that rises while frozen stays flat is the playbook working
Cost parity, Claude Haiku 4.5
Cost parity: cumulative dollars against cumulative accuracy; at equal spend, which mode is higher
Calls against difficulty, Claude Haiku 4.5
Calls against difficulty: task rating against calls made, solved and failed as two series
Estimate accuracy, Claude Haiku 4.5
Estimate accuracy: the planner's estimated calls against the calls a statement made; on the diagonal is exact
Plan space, Claude Haiku 4.5
Plan space: relations joined against join orders considered, one point per statement

GPT-6 Luna

5 and 13 Oct 2026. every solver alias on GPT-6 Luna over OpenAI chat completions, judge on Sonnet 5.5, all seven packs on 5 October (logbook-hard capped at ten tasks and its learning run stopped after three); the four hard packs on 13 October with the root alias at reasoning effort none, which the API now requires for function tools. Rows: plots/luna-2026-10-05/evals.csv, plots/luna-2026-10-13/evals.csv.

Learning curve, GPT-6 Luna
Learning curve: task number against rolling-5 accuracy, one line per run; a learning line that rises while frozen stays flat is the playbook working
Cost parity, GPT-6 Luna
Cost parity: cumulative dollars against cumulative accuracy; at equal spend, which mode is higher
Calls against difficulty, GPT-6 Luna
Calls against difficulty: task rating against calls made, solved and failed as two series
Estimate accuracy, GPT-6 Luna
Estimate accuracy: the planner's estimated calls against the calls a statement made; on the diagonal is exact
Plan space, GPT-6 Luna
Plan space: relations joined against join orders considered, one point per statement
Reproduce run a pack, export the rows, rebuild the tables
sh
# a pack, one mode, with a fresh store per mode $ kleene bench run tasks/oolong-like --mode frozen $ kleene bench run tasks/oolong-like --mode learning $ kleene bench run tasks/oolong-like --mode plain # the table, the rows and the plots $ kleene bench report $ kleene bench csv > plots/<model-date>/evals.csv $ kleene bench plot plots/<model-date> # the README's results block and Pareto plots from every committed CSV $ kleene bench results plots/*/evals.csv plots/evals.csv --out plots/results --readme README.md

A learning run replays candidates against earlier tasks, so budget about $45 for a full sweep of the first four packs at replay_sample 3, and use bench run --resume <run-id> after an interruption. Every model call is memoised, so a second run of the same pack in the same store is free, which is also why a clean comparison wants a fresh store per mode. How the harness works is in the benchmark doc.