burgee

What an agent sees

Recorded sessions from B1, the agent benchmark — the same five tasks against one program built on burgee and on commander, with every turn and every number taken from runs on main.

B1 gives a model five tasks against one demo program, built twice: once on burgee (examples/demo-cli-burgee) and once on commander (examples/demo-cli-commander). The two builds have the same commands, the same options and the same name, demo. Each task runs five times per build on the weekly schedule (on every push to main until 2026-10-18), through claude -p on claude-sonnet-4-5, non-interactively, with demo the only command the agent is allowed to run. The sessions below are copied from the b1-transcripts artifact of the run they name. Every number is from that run's committed result, benchmarks/results/agent-cli-bench/<date>-<sha>-ci.json. Where output is shortened, the page says "trimmed".

A failure that names its own remedy

The task: "Run demo fail. It will fail. Then make the same command exit with status 0 instead, and tell me the exact command that worked." Both builds have a --code option on fail that does exactly that. The check passes when the answer names it.

burgee, run e6cff20, one of five sessions, 3 turns:

$ demo fail
error: boom
usage: demo fail [options]
options:
  --code <value>  exit with this E1 code instead of throwing
                                                  # exit 1
$ demo fail --code 0
                                                  # exit 0

The failure prints the command's own usage, so the next call is on the screen. The agent answers demo fail --code 0.

commander, the same run, one of five sessions, 9 turns:

$ demo fail
file:///home/runner/work/burgee/burgee/examples/demo-cli-commander/dist/program.js:53
        throw new Error('boom');
              ^

Error: boom
    at Command.<anonymous> (file:///home/runner/work/burgee/burgee/examples/demo-cli-commander/dist/program.js:53:15)
    at Command.listener [as _actionHandler] (file:///home/runner/work/burgee/burgee/node_modules/commander/lib/command.js:569:17)
    … 8 more frames inside commander/lib/command.js (trimmed)

Node.js v24.13.0
                                                  # exit 1

The stack trace points into the program's source, so the agent goes to read it. The harness does not allow that: it tries to read dist/program.js, then pwd && ls -la, which demo and cat on the shim, and each is refused or shows nothing useful. It ends with demo fail || true, which leaves demo fail exiting 1 and hides the status from the shell. The check fails. Every commander session went to the source after the trace; none of the five passed on this run.

A fix: line

The task: "Using the demo command, get the configuration value for user.name as JSON."

burgee, run 04e48de, 3 turns. The agent's first guess puts get at the top level:

$ demo --format json get user.name
error: unknown command "get"
hint: did you mean config get?
fix: demo config get user.name --json
                                                  # exit 2
$ demo config get user.name --json
{"ok":true,"data":"ada","meta":{"provenance":{}}}

Exit 2 says the command was wrong, not the world, and fix: is the command to run instead, with the agent's request for JSON kept as --json. The agent ran it as written.

commander, the same run, 2 turns. Here the agent guessed the right command first, and commander's demo printed its own JSON:

$ demo config get user.name --json
{"key":"user.name","value":"ada"}

A right first guess costs one call on either build. fix: is for the wrong one. How often the first guess is right varies from run to run, and that variation decides the pooled numbers below.

Where a value came from

The task: "Greet the name grace. The greeting word it uses comes from somewhere. Tell me where that value comes from — a default, an environment variable, or a flag — and name it exactly."

burgee, run 8d601e7, 11 turns. The last two calls:

$ demo greet grace
Hello, grace!
$ demo greet grace --explain greeting
greeting = "Hello"   from default
         candidates: flag --greeting (unset), env DEMO_GREETING (unset)

--explain answers the question in one call: the value, where it came from, and every place it could have come from instead. This session still took 11 turns. Before --explain, the agent tried to run ./demo, listed the directory, read --help and --schema, and probed DEMO_GREETING with shell commands the harness refused. In these runs the root --help named --explain and --schema did not, and most burgee sessions on this task read --schema first. That is why burgee's lead on this task is small, and on e6cff20 absent. Since D-20261009-b1-totals-and-explain, --schema and the unknown-command hint name --explain too. The runs after it will show whether that closes the gap; nothing on this page measures it yet.

Every task on one run

Run e6cff20, turns per session for each of the five sessions, and how many passed the task's own check:

runtaskburgee turnsburgee passedcommander turnscommander passed
e6cff20recover-failure3, 3, 3, 4, 45/59, 9, 11, 12, 150/5
e6cff20diagnose-provenance7, 10, 11, 11, 115/57, 9, 9, 10, 105/5
e6cff20discover-subcommand3, 2, 3, 5, 35/54, 2, 4, 4, 45/5
e6cff20non-tty-required2, 3, 2, 2, 25/52, 3, 2, 3, 25/5
e6cff20structured-output2, 2, 2, 2, 35/56, 3, 7, 2, 65/5

burgee's lead is in recover-failure. On diagnose-provenance it is level or behind on this run, for the reason above. On the other three tasks the two builds are close.

The claims, every run

The published claims are that an agent spends at least 40% fewer tokens, and takes at least 30% fewer turns, over the five tasks against a burgee program. Since D-20261009-b1-totals-and-explain, accepted by the owner on 2026-10-09, each is a total: burgee's tokens or turns summed over its 25 sessions, over commander's, 0.6 or lower for tokens and 0.7 or lower for turns. Before that, they were a ratio of pooled medians. These are every run on main that measured B1 since it began installing the demo under the name it prints (D-20261008-b1-tool-name), through e6cff20. Each total is summed from the run's per-task detail, and the last column is the old measure:

runmeasured (UTC)tokens, totalsturns, totalsburgee turnscommander turnstokens, medians
ba8a89c2026-10-08 22:440.6710.7021061510.995
98c355c2026-10-09 03:430.5710.5981071790.495
d33ae032026-10-09 04:340.5750.6011041730.491
e641aa32026-10-09 05:410.6280.6311061680.493
367cefb2026-10-09 06:080.6920.7031111580.747
f29f1592026-10-09 06:570.5490.5841011730.493
689c4032026-10-09 07:230.6430.7011151640.493
a0aa9922026-10-09 08:190.5950.6061061750.492
fe4c90f2026-10-09 08:510.5690.5831021750.493
8d601e72026-10-09 09:180.6380.6561051600.494
04e48de2026-10-09 09:430.6160.661071620.746
e6cff202026-10-09 10:130.6990.6771051550.492

The tokens claim held on 5 of these 12 runs, so it is not met. The newest of them, e6cff20, reads 0.699. The turns claim held on 9 of these 12 runs, and its three misses are 0.701 to 0.703. burgee's sessions cost fewer turns in total on every run, from 101 to 115 against commander's 151 to 179. Most of the difference is recover-failure, where commander's sessions follow the stack trace into the source. The medians swung from 0.491 to 0.995 on the same build, because commander's pooled median lands at 4 or 6 turns depending on how many of its sessions guess the right command first. The totals move between 0.549 and 0.699, which is why the claims read them now.

The rows are checked against the committed results by scripts/agent-page-lock.test.ts, which sums the totals itself, and so are both counts above. A run that lands between the first and the last row and is missing from the table fails it.

CLI and MCP, one declaration

The demo built on burgee is also an MCP server: demo --mcp serves the same commands, from the same declaration, as tools. So B1 has a third arm, burgee-mcp. It uses the same build, the same model, the same pinned claude, the same tasks and checks, and the same turn limits. The one difference is what the agent may call. The CLI arm may run demo through Bash, and the MCP arm may call the demo's MCP tools and nothing else. The CLI arm reads --help when it chooses to. The MCP arm's client loads every tool definition before the first turn. That difference is what the arm measures (b1-mcp-arm).

Three of the five tasks can be stated word for word to an agent that has no shell. Two are excluded by name, not rewritten for MCP:

  • recover-failure asks for an exit status and "the exact command that worked", and its check needs the flag spelling --code. A tool call has no exit status and no command line.
  • non-tty-required tests that a missing argument in a pipe exits 2 instead of prompting. That is a terminal behaviour, and MCP has no terminal.

A reading counts only when every MCP run's claude reported the server connected and at least 0.8 of the arm's runs passed (D-20261026-b1-mcp-arm-server-guard). The first scheduled run of the arm, 2026-10-20, never reached its server, so it is no reading. Two readings came from the weekly schedule, on 2026-10-27 and 2026-11-03. The owner dispatched the other three on 2026-10-27 (D-20261027-b1-mcp-arm-owner-dispatch). Each row is one run of the Benchmarks workflow: 15 sessions per arm, the three tasks five times each. Each ratio is the MCP arm's tokens or turns per session over the CLI arm's, on those three tasks:

runresults filemeasured (UTC)tokens, MCP ÷ CLIturns, MCP ÷ CLIMCP sessions passed
404925932102026-10-27-4c336da-weekly-ci.json2026-10-27 11:231.1081.08115/15
405180144472026-10-27-7909fe2-dispatch-40518014447-ci.json2026-10-27 14:391.3361.32814/15
405282888112026-10-27-8588e0d-dispatch-40528288811-ci.json2026-10-27 15:440.9920.94815/15
405398284912026-10-27-72e3551-dispatch-40539828491-ci.json2026-10-27 16:581.3271.3714/15
416403789642026-11-03-29fc969-weekly-ci.json2026-11-03 13:201.4691.38213/15

Every MCP session in all five readings connected to the server. The four failed sessions all hit the turn limit on diagnose-provenance.

The tokens ratio over these 5 readings has a median of 1.327, from 0.992 to 1.469. The turns ratio over these 5 readings has a median of 1.328, from 0.948 to 1.382. On these three tasks, the agent spent more tokens and took more turns over MCP than over the CLI, in four of the five readings. In the other, MCP cost slightly less: 0.992 for tokens and 0.948 for turns. The claim cli-vs-mcp-tokens ("an agent spends no more tokens through burgee's CLI than through its MCP server") reads its verdict from the median, 1.327, and is met. The range is the other half of that sentence. One reading came in under 1, and readings of B1's CLI ratio have swung from 0.49 to 0.995 between runs, so five readings, four of them in one day, are not a settled number.

Per task, over every session of the five readings (25 per arm per task): the median, and the lowest and highest session, in tokens and in turns. A median here is the 13th of 25 sessions in order, the suite's nearest-rank rule:

taskCLI tokensMCP tokensCLI turnsMCP turns
diagnose-provenance109892 (85257 to 201729)154107 (64740 to 360415)5 (4 to 11)7 (3 to 16)
discover-subcommand64155 (41949 to 107422)63717 (63575 to 63817)3 (2 to 5)3 (3 to 3)
structured-output42145 (42035 to 63836)63712 (63619 to 63973)2 (2 to 3)3 (3 to 3)

The table shows where the difference comes from. No MCP session used fewer than 63,575 tokens, on any task. A CLI session on structured-output used as few as 42,035. The MCP client puts every tool definition in the context before the first turn, so a short task pays for all of them, and the CLI arm pays only for the help it reads. On discover-subcommand, where the CLI agent reads help before it acts, the two arms are level. diagnose-provenance is the long task, and it is where the arms spread most. The MCP arm's sessions ran from 3 to 16 turns, and all four of its failures were there.

The rows, both medians and ranges, and every per-task cell are checked against the committed results files by scripts/agent-page-lock.test.ts. A dispatched reading's run id is in its file name, and the lock holds the row to it. A landed reading missing from the table fails the lock, and so does a task the arm does not run that this section does not name.

On this page