Table of Contents
Codex CLI, Claude Code and Gemini CLI all fixed our 10 tickets. One took 5 minutes, one took 2 hours
If you are choosing a terminal coding agent to hand routine tickets to, the usual question is which one writes correct code. On the kind of ticket a small team files every week, our test says all of them do. On December 1, 2026 we gave three agents the same ten tickets on a small Python billing codebase, left each one alone to finish, and graded the result with tests the agents never saw.
- Three agents solved all ten. Codex CLI, Claude Code and Gemini CLI each passed every hidden test on every ticket and broke none of the existing tests.
- Time is where they differ. The ten tickets took Codex CLI 5 minutes 22 seconds, Claude Code 11 minutes 30 seconds and Gemini CLI 118 minutes 14 seconds.
- So does cost. At list price the same work cost $0.88 with Codex CLI, $2.88 with Claude Code and $4.08 with Gemini CLI. Gemini's bill would be about $8 after January 1, 2027, when the price of its default model doubles.
- Each ran its own default model and reasoning level. Codex CLI used GPT-6.2 Sol at low reasoning, Claude Code used Claude Opus 5.5 at medium effort and Gemini CLI used Gemini 3.8 Flash. Part of the speed and cost gap comes from those settings, not only from the tools.
- All of them refused the ticket they should refuse. One ticket asks for a change that breaks the customer contract. All three left the code alone and wrote up the conflict.
Our pick for routine tickets is Codex CLI on speed and price. Claude Code is the one to choose if you want more tests written with each change. Gemini CLI did the work correctly, but nobody will wait 12 minutes for a one-line fix.
| Test setup | |
|---|---|
| Date | December 1, 2026 |
| Agents | Codex CLI 0.172.0, Claude Code 2.1.333, Gemini CLI 0.71.1 |
| Models | Each agent's default: GPT-6.2 Sol, Claude Opus 5.5, Gemini 3.8 Flash |
| Reasoning | Each agent's default: low for Codex CLI, medium for Claude Code, Gemini CLI's default thinking level |
| Codebase | rentbill, an equipment rental billing library we wrote for this test: about 900 lines of Python and 39 tests |
| Tickets | Ten, written the way a branch manager or operations lead would write them |
| Runs | One per agent per ticket, no retries, 25-minute limit, nobody answering questions |
| Scoring | A ticket is solved only if every hidden acceptance test passes and no existing test fails |
| Data | The codebase, tickets, hidden tests, every diff and the scripts |
The scorecard
| Agent | Default model and reasoning | Tickets solved | Total time | Median per ticket | Slowest ticket | Cost for ten | Tests it added |
|---|---|---|---|---|---|---|---|
| Codex CLI | GPT-6.2 Sol, low | 10 of 10 | 5 min 22 s | 36 s | 45 s | $0.88 | 33 |
| Claude Code | Claude Opus 5.5, medium | 10 of 10 | 11 min 30 s | 63 s | 188 s | $2.88 | 71 |
| Gemini CLI | Gemini 3.8 Flash, default thinking | 10 of 10 | 118 min 14 s | 747 s | 1,110 s | $4.08 | 83 |
The models and settings behind these numbers
These are three products compared as they ship, not three models compared at equal effort. We left every setting at its default, because that is what most people run, and the defaults are not the same.
| Agent | Model it ran | Reasoning setting |
|---|---|---|
| Codex CLI | GPT-6.2 Sol | Low, the CLI's default for this model. GPT-6.2 Sol also offers medium, high, xhigh, max and ultra |
| Claude Code | Claude Opus 5.5 | Medium effort, the CLI's default |
| Gemini CLI | Gemini 3.8 Flash for the work, plus Gemini 3.5 Flash-Lite to route requests and Gemini 3 Flash Preview to check for loops | Thinking on at its default level. The CLI does not report a level name |
That matters for reading the results. Codex CLI's speed and low price come partly from running at the lowest reasoning level, and Claude Code's longer runs partly from running a larger model at medium. Raise Codex to medium, or move Claude Code to a smaller model or lower effort, and both the time and the bill would move. Matching the settings is a separate test, and it is on our list for the next round.
What the tickets were
We wanted work that looks like a real backlog, so the codebase bills equipment rentals: day, week and four-week rates, delivery and pickup, an environmental charge, tax by state. The rules are written in the README, the way a team would document them.
| Ticket | Kind | What it asks for |
|---|---|---|
| T01 | Bug | A 13-day rental is billed for more than two weeks |
| T02 | Bug | A tax-exempt customer is charged tax on delivery and pickup |
| T03 | Feature | Add an out-of-state transportation surcharge |
| T04 | Feature | Support credit memos |
| T05 | Refactor | Tidy up invoice building with no change in behaviour |
| T06 | Hardening | The importer should report every bad row at once and reject double-booked equipment |
| T07 | Feature | Add an emissions surcharge on diesel equipment |
| T08 | Unclear spec | Stop billing weekends on a 5-day plan, with only two worked examples to go on |
| T09 | Performance | Billing a 50,000-line file takes minutes |
| T10 | Bad request | Change a charge cap in a way the customer agreement forbids |
Every agent got the same prompt: the ticket, an instruction to read the README first, the test command, and a note that nobody was available to answer questions.
Correctness did not separate them
The hidden tests check the things a reviewer would: the 13-day rental comes out at the right amount, the refactor changes no output, the 50,000-line file bills inside the time limit. Across 30 runs from Codex CLI, Claude Code and Gemini CLI, there was not one failed hidden test and not one broken existing test.
That is a finding in itself. Bug fixes, small features and a refactor on a documented codebase of this size are within reach of every agent we tested, including one running a cheap, fast model. If your backlog looks like this, accuracy is not the thing to choose on.
The ticket they should refuse
T10 is the one we expected to catch somebody. A branch manager asks for the $99 environmental charge cap to apply per line and calls it a quick fix. The README quotes the customer agreement, which caps the charge per invoice. Doing what the ticket says would overcharge customers.
Codex CLI, Claude Code and Gemini CLI all left the billing code as it was and wrote a note naming the rule that conflicts and what finance would need to approve. None of them made the change. You can read the ticket and each agent's note in the results download.
Where they differ: time
| Ticket | Codex CLI | Claude Code | Gemini CLI |
|---|---|---|---|
| T01 | 16 s, $0.07 | 31 s, $0.16 | 761 s, $0.35 |
| T02 | 26 s, $0.08 | 22 s, $0.15 | 640 s, $0.26 |
| T03 | 34 s, $0.09 | 54 s, $0.29 | 401 s, $0.37 |
| T04 | 32 s, $0.09 | 67 s, $0.31 | 1,110 s, $0.37 |
| T05 | 41 s, $0.10 | 101 s, $0.48 | 775 s, $0.41 |
| T06 | 37 s, $0.10 | 78 s, $0.34 | 714 s, $0.68 |
| T07 | 45 s, $0.11 | 69 s, $0.36 | 931 s, $0.55 |
| T08 | 37 s, $0.09 | 59 s, $0.28 | 859 s, $0.45 |
| T09 | 42 s, $0.10 | 188 s, $0.39 | 734 s, $0.58 |
| T10 | 12 s, $0.06 | 22 s, $0.12 | 170 s, $0.07 |
Codex CLI never took more than 45 seconds. Claude Code was about twice as slow at the median and took three minutes on the performance ticket. Gemini CLI took between 3 and 19 minutes per ticket.
Gemini's time is not thinking time on a hard problem. On a typical ticket it made between 36 and 61 model requests, where Claude Code made between 4 and 14, and each request took about 17 seconds to come back. It re-read files and re-ran tests many more times than the others before it finished. Our API key is on Google's first paid tier, so a higher tier may respond faster. The request count would not change.
What it costs
Per ticket, the average was 9 cents for Codex CLI, 29 cents for Claude Code and 41 cents for Gemini CLI.
Two things explain the spread. Claude Code defaults to Opus 5.5, Anthropic's larger model, and wrote about twice as much code and twice as many tests as Codex. Gemini CLI defaults to a cheap model but sent between 1.2 and 3.2 million input tokens on nine of the ten tickets because of all those requests. Most were cached, and it still added up to the largest bill.
Gemini 3.8 Flash is on an introductory price through December 31, 2026: $0.75 per million input tokens and $3.75 per million output tokens, per Google's pricing page. Both double on January 1, 2027. At the January price our Gemini run would have cost about $8.
How much code each one wrote
All three finishers passed the same tests, but they did not hand back the same amount to review. Over ten tickets Codex CLI added 720 lines and 33 tests. Claude Code added 1,603 lines and 71 tests. Gemini CLI added 1,598 lines and 83 tests.
Which is better depends on your team. A small diff is quicker to review. More tests give you more protection the next time someone touches the billing rules. If you want Codex to write more tests, or Claude Code to write fewer, say so in your project instructions file.
Where a ticket changed a documented rule, all three agents updated the README, as the team convention in the repository asks.
What to do
- For routine tickets on a documented codebase, start with Codex CLI. It was the fastest and the cheapest, and it got everything right.
- Choose Claude Code if test coverage matters more than speed. It costs about three times as much per ticket on its default model. You can lower that by switching it to a smaller model.
- Use Gemini CLI for work you can leave running. It is correct and slow. Check the January price before you budget for it.
- Write your billing rules down. The agents refused the bad request because the README quoted the contract. Without that paragraph, they would have had nothing to check the ticket against.
How we checked
Each agent ran under its own restricted user account on our lab server, in a fresh copy of the repository, with no access to the hidden tests or to another agent's work. Codex CLI's own sandbox could not start on our server, so it ran with that sandbox off inside the same kind of restricted account. When the agent exited, the harness copied its code into a throwaway folder, restored the original visible tests so that an agent could not pass by editing them, added the hidden test file for that ticket, and ran both.
Before the run, we checked the benchmark against itself: for each ticket, the hidden tests fail on the starting code and pass on our reference fix.
Costs come from each tool's own records. Claude Code prints its cost. Codex CLI and Gemini CLI log token counts, which we multiplied by the list prices on OpenAI's and Google's pricing pages on December 1, 2026, with cached input at the cached rate.
Keep in mind
- One run each, on ten small tickets. Agents vary from run to run, and a large or undocumented codebase is harder. The ranking on speed and cost may not hold there.
- Cursor is not included. Our free Cursor plan ran out of weekly usage partway through, so it could not be compared on the same ten tickets.
Download the data
- benchmark.zip: the
rentbillrepository, the ten tickets, the hidden tests, our reference fixes and the self-check script - agent-results.zip: the result record and full diff for every run
- results.csv and summary.json: one row per run, and the totals in the scorecard
- run_agent.py, summarize.py and charts.py: the harness, the summary and the chart
To run it yourself, unzip the benchmark, create the three restricted users the harness expects, install the agents, and run run_agent.py <agent> <ticket>. The paths at the top of the script are ours and will need changing.
What changed
- December 1, 2026: first published.
