---
title: "Multi-File Refactor Shootout: 7 AI Models | Straitly"
description: "Seven AI models refactor the same 13-module billing library to integer money. 47 hidden tests, with 400 fuzzed orders."
url: https://straitly.ai/shootouts/multi-file-refactor
updated: 2026-11-26
publisher: Straitly (https://straitly.ai)
---

# A multi-file refactor with hidden tests: 7 AI models

7 of 10 tries passed. GPT-6.2 Astra, Claude Fable 5.2, Claude Opus 5.5, Gemini 4 Neon and Gemini 4 Carbon passed every try. Cheapest per pass at the maker's list price: DeepSeek V4.1 Flash 1017\. Who failed and why is below, with the model's diff.

Updated 26 November 2026

[Who failed and why](#failed) [Next to the public boards ](#boards)

The task

Asked

Move every money amount in a 13-module Python billing library from float dollars to integer minor units, by 13 written rules: JPY and KWD decimals, VAT-inclusive regions, refunds, FX and prorating.

Tries

7 of 10 passed, 1 to 3 tries a model

## Who failed, and why?

Each model's closest failed try: how far it got, the grader's own words and the start of its change to the library.

1. ### DeepSeek V4.1 Flash 1017
1 of 3 tries passed. Closest failed try: 42 of 47 tests.
Passed 1 of 3\. Try 1 finished the Money migration and said it was done, but subscription proration came out wrong and 4 random order checks disagreed with the reference. Try 3 used its whole 16,000-token reply on thinking at step 6 and never wrote the Money module.
**Grader, try 1:** AssertionError: assert Money(cents=0, currency='USD') == Money(cents=1, currency='USD')
```
tabby/__init__.py
+
+from .money import CurrencyMismatch, Money  # noqa: E402,F401
```
2. ### Kimi K3.1 Pro
1 of 2 tries passed. Failed try: 46 of 47 tests.
Passed try 1\. Try 2 stopped after 15 steps with one random order off by a cent: a plan change prorated to -$2.15 where the reference gives -$2.16.
**Grader, try 2:** AssertionError: order \["US-WA", "USD", \[\["S0", 74, "food", 8\], \["S1", 50, "standard", 8\], \["S2", 56, "food", 7\], \["S3", 59, "exempt", 2\], \["S4", 4363, "standard", 3\]\], \[\], \[\["S0", 5\], \["S0", 2\], \["S1", 6\], \["S2", 4\], \["S2", 2\], \["S3", 1\], \["S4", 1\]\], 6, \[0\], \[
```
tabby/cart.py
+from .money import CurrencyMismatch, Money
```

Passed every try: Claude Opus 5.5, GPT-6.2 Astra, Gemini 4 Neon, Gemini 4 Carbon and Claude Fable 5.2.

### Every model, every try

| Model                             | Tries passed | Best try       | Median time | Median steps | List cost | Straitly price                                                 |
| --------------------------------- | ------------ | -------------- | ----------- | ------------ | --------- | -------------------------------------------------------------- |
| Claude Opus 5.5 Anthropic         | 1 of 1       | 47 of 47 tests | 5.8 min     | 13           | $0.95     | [$0.57](https://straitly.ai/models/claude-opus-5-5)            |
| GPT-6.2 Astra OpenAI              | 1 of 1       | 47 of 47 tests | 99.3 s      | 9            | $0.49     | [$0.30](https://straitly.ai/models/gpt-6.2-astra)              |
| Gemini 4 Neon Google              | 1 of 1       | 47 of 47 tests | 6.6 min     | 42           | $0.83     | [See model page](https://straitly.ai/models/gemini-4-neon)     |
| Gemini 4 Carbon Google            | 1 of 1       | 47 of 47 tests | 11.3 min    | 35           | $0.57     | $0.57                                                          |
| Claude Fable 5.2 Anthropic        | 1 of 1       | 47 of 47 tests | 4.0 min     | 8            | $1.54     | [$0.92](https://straitly.ai/models/claude-fable-5.2)           |
| DeepSeek V4.1 Flash 1017 DeepSeek | 1 of 3       | 47 of 47 tests | 3.5 min     | 18           | $0.0616   | [$0.0227](https://straitly.ai/models/deepseek-v4-1-flash-1017) |
| Kimi K3.1 Pro Moonshot            | 1 of 2       | 47 of 47 tests | 14.9 min    | 16           | $0.48     | [$0.27](https://straitly.ai/models/kimi-k3.1-pro)              |

26 November 2026, 7:25 PM to 9:52 PM PT. Time is wall time for a whole try on our machine, tool runs included: one dated run, not a speed claim for any API. Both costs are for one try, the mean over a model's tries, at the maker's list price and at the Straitly catalog price that day. Gemini 4 Neon: see its model page.

## Do the public boards agree?

The Artificial Analysis Index, Terminal-Bench and ARC-AGI 2 run many tasks once each. This is one hard task, tried again and again.

Where we agree

Claude Fable 5.2, first on the AA Index (65), also passed the most here: 1 of 1\. DeepSeek V4.1 Flash 1017, last on the AA Index (32), also passed the fewest here: 1 of 3.

Where we differ

Claude Opus 5.5 is 5th of 7 on the AA Index (59) but 1st here, with 1 of 1 tries passed. Gemini 4 Carbon is 4th of 7 on the AA Index (60) but 1st here, with 1 of 1 tries passed.

### Our run next to the public boards

| Model                             | Our tries passed | AA Index                                                                                                                                                                 | Terminal-Bench 4.1                                                                                                               | ARC-AGI 2                                                                                                                                                |
| --------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Claude Fable 5.2 Anthropic        | 1 of 1           | [65](https://artificialanalysis.ai/models/claude-fable-5-2 "Artificial Analysis Intelligence Index, max, default fallback reasoning effort, published 26 November 2026") | [65.8%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, max effort, Claude Code agent, published 25 November 2026")       | [93.8%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 9 November 2026")   |
| GPT-6.2 Astra OpenAI              | 1 of 1           | [62](https://artificialanalysis.ai/models/gpt-6-2-astra "Artificial Analysis Intelligence Index, max reasoning effort, published 26 November 2026")                      | [62.1%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, max effort, Codex agent, published 25 November 2026")             | [95.8%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 17 November 2026")  |
| Gemini 4 Neon Google              | 1 of 1           | [61](https://artificialanalysis.ai/models/gemini-4-neon "Artificial Analysis Intelligence Index, xhigh reasoning effort, published 26 November 2026")                    | [61.2%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, xhigh effort, Antigravity CLI agent, published 25 November 2026") | [93.8%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 18 November 2026")  |
| Gemini 4 Carbon Google            | 1 of 1           | [60](https://artificialanalysis.ai/models/gemini-4-carbon "Artificial Analysis Intelligence Index, high reasoning effort, published 26 November 2026")                   | [64.5%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, high effort, Antigravity CLI agent, published 25 November 2026")  | [94.2%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 10 November 2026")  |
| Claude Opus 5.5 Anthropic         | 1 of 1           | [59](https://artificialanalysis.ai/models/claude-opus-5-5 "Artificial Analysis Intelligence Index, max, default fallback reasoning effort, published 26 November 2026")  | [65.8%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, max effort, Claude Code agent, published 25 November 2026")       | [93.3%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 22 September 2026") |
| Kimi K3.1 Pro Moonshot            | 1 of 2           | [47](https://artificialanalysis.ai/models/kimi-k3-1-pro "Artificial Analysis Intelligence Index, model page default, published 26 November 2026")                        | [59.7%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, max effort, Claude Code agent, published 25 November 2026")       | Not listed                                                                                                                                               |
| DeepSeek V4.1 Flash 1017 DeepSeek | 1 of 3           | [32](https://artificialanalysis.ai/models/deepseek-v4-1-flash-1017 "Artificial Analysis Intelligence Index, max reasoning effort, published 26 November 2026")           | [38.5%](https://www.tbench.ai/leaderboard "Terminal-Bench 4.1, max effort, Claude Code agent, published 25 November 2026")       | [78.1%](https://arcprize.org/leaderboard "ARC-AGI 2, ARC Prize verified; default leaderboard view (best reasoning effort), published 17 October 2026")   |

Sorted by the AA Index. Scores are the boards' own independent runs, not ours: AA Index as of 26 November 2026; Terminal-Bench 4.1 as of 26 November 2026; ARC-AGI 2 as of 26 November 2026\. Each score links to its board.

## What did each model say it did?

The prompt, the file it points to, and every try's closing message, exactly as it came back.

**The prompt Sent word for word to every model, every try**

**System:** You are a senior software engineer working in a git repository on a Linux-like machine. You have one tool, \`bash\`, which runs a shell command in the repository root and returns its output. There is no network access. Python is \`python\` (3.12) with pytest installed; run the tests with \`python -m pytest -q\`. Work step by step: read the code, make the change, run the tests. Edit files with shell tools (cat with a heredoc, sed, or python). When you are completely done, reply with a short summary and no tool call.

This repository is \`tabby\`, a small shop billing library. Read REFACTOR.md and do the refactor it describes across the whole package, then update tests/test\_tabby.py to the new API. Hidden acceptance tests check every rule in REFACTOR.md.

**REFACTOR.md The file in the repo the prompt points to**

```
# Refactor: money as integer minor units

We lost real money to float rounding (an invoice split three ways came to one cent short, and old
invoices reload a cent off, and refunding a line in parts gives back more than the customer paid).
Move every money amount in `tabby` to a `Money` type that stores an integer count of the currency's
minor unit. Keep module and function names; callers will update for the new return types.

Rules. Hidden acceptance tests check every one of them.

1. Add `tabby/money.py` with a frozen `Money(cents, currency="USD")` and `class CurrencyMismatch(ValueError)`.
   - `cents` must be an `int` (not `bool`, `float` or `Decimal`), else `TypeError`.
   - `cents` counts the currency's minor unit: USD, CAD and EUR have 2 decimals, JPY has 0, KWD has 3.
     So `Money(500, "JPY")` is 500 yen and `Money(1500, "KWD")` is 1.500 KWD. Any other currency code
     raises `ValueError`. `m.amount()` returns the value in major units as an exact `Decimal`.
   - `Money.of(amount, currency="USD")` takes major units as `str`, `int` or `Decimal` and rounds half up
     to the minor unit (`Money.of("0.005") == Money(1)`, `Money.of("12.5", "JPY") == Money(13, "JPY")`).
     A `float` raises `TypeError`. Half up means away from zero for negatives.
   - `+` and `-` between two `Money` of the same currency; different currencies raise `CurrencyMismatch`.
     `0 + m` returns `m`, so `sum()` of a list of `Money` works.
   - `m * k` and `k * m` for an `int` or `Decimal` `k`, rounded half up to the cent. Unary `-m`.
   - `==` is `False` across currencies; `<`, `<=`, `>`, `>=` across currencies raise `CurrencyMismatch`.
   - `m.allocate(ratios)`: split into parts in proportion to a list of non-negative ints (at least one
     above zero). Each part gets the floor of its share; the cents left over go one each to the parts in
     list order, from the first. The parts always add up to `m` exactly.
2. `Product.price` is a `Money`. `Product.currency` is read from the price (it is no longer a field).
3. `Cart(region="CA-BC", currency="USD")`. `add()` of a product priced in another currency raises
   `CurrencyMismatch`. `Line.amount()` and `Cart.subtotal()` return `Money` (an empty cart gives
   `Money(0, cart.currency)`).
4. `PercentOff(percent)` takes an `int` or a `Decimal`/`str` such as `"12.5"`; its amount is rounded half up
   to the cent. `FixedOff(amount_off)` takes a `Money`. Coupons still apply in order, each on what is left,
   and the total discount never exceeds the subtotal.
5. Tax rates are exact decimals. The order discount is spread over the lines with `Money.allocate`, using
   each line's amount in cents as the ratio. Each line is taxed on its amount less its share, rounded half
   up to the cent; the order tax is the sum of the line taxes.
   In tax-inclusive regions (`EU-DE`, `JP-13`) a line's price already holds the tax: its tax is
   `net * rate / (1 + rate)` rounded half up, and the invoice total does not add it again.
6. `invoice.build` keeps its keys. Every money value in it (`unit`, line `amount`, `subtotal`, `discount`,
   line `discount` and line `tax`, `subtotal`, `discount`, `tax`, `total`) is a `Money`, and `currency` is
   the cart's currency. The line discounts add up to the order discount and the line taxes to the order
   tax, exactly. `split(invoice, n)` returns `n` `Money` parts that add up to the total exactly (bigger
   parts first).
7. `storage.save` writes `"version": 2` and every money value as `{"cents": <int>, "currency": <str>}`.
   `storage.load` reads version 2, and still reads the old files (no `"version"` key, money as float
   dollars, currency in the top-level `"currency"` key). Old values are converted exactly as written in the
   file, e.g. `0.285` becomes 29 cents. Old files may lack `"currency"` (then it is USD), `"tax_included"`
   (then it follows the region) and the line `discount`/`tax` keys (leave them out). Loaded money values
   are `Money`.
8. `report.format_money(m)` gives `$1,234.50` for USD and CAD, `-$5.00` when negative, and
   `1,234.50 EUR` style for any other currency, with that currency's decimals (`1,500 JPY`,
   `1.500 KWD`). `render` keeps its layout.
9. `refunds.refund(invoice, sku, qty, refunded=())` returns a credit note whose `amount`, `tax` and `total`
   are `Money`. A line may be refunded in several notes; whatever the split, the notes for a line must add
   up exactly to that line's net (`amount - discount`) and its tax once all its units are refunded, and each
   note is the cumulative share up to its last unit (round half up) less what earlier notes took.
10. `ledger.totals` and `ledger.tax_by_region` return `Money` values per currency (or region and
    currency); never add two currencies. `ledger.net_after_refunds` raises `ValueError` for a credit note
    of another invoice.
11. `fx.convert(m, to, rate=None)` takes a `Money` and returns a `Money` in `to`; `rate` (str, int or
    Decimal, never float) overrides the table. Conversion rounds half to even at the target's minor unit.
12. `giftcards`, `subscriptions` and `loyalty` move to `Money` too and keep their current behaviour exactly,
    except that results are now exact: where the old code rounded, round half up (away from zero) on the
    exact value. `GiftCard(code, balance)` takes a `Money` balance and reads its currency from it;
    `loyalty.points_for(m)` takes a `Money`.
13. No float arithmetic on money anywhere in `tabby`.

Update `tests/test_tabby.py` to the new API. Run the tests with `python -m pytest -q`.

```

**Claude Opus 5.5, try 1 Pass, 47 of 47 tests, 5.8 min, 13 steps**

I've moved every money amount in \`tabby\` to a new integer-based \`Money\` type, following the 13 rules in REFACTOR.md, and rewritten \`tests/test\_tabby.py\` for the new API. All 26 tests pass (\`python -m pytest -q\`). The hidden acceptance tests haven't been run, so some edge cases below are my reading of the spec and could differ from what they expect.

\*\*What changed\*\* - \*\*New \`tabby/money.py\`:\*\* \`Money\` and \`CurrencyMismatch\`. All rounding goes through exact fractions, half up by default and half to even only in \`fx.convert\`. \`allocate\` hands out leftover cents one each in list order, skipping parts with a zero ratio. - \*\*Products, cart, coupons:\*\* prices are \`Money\`, and \`Product.currency\` no

Cut at 700 characters.

**GPT-6.2 Astra, try 1 Pass, 47 of 47 tests, 99.3 s, 9 steps**

Refactored \`tabby\` to use immutable \`Money\` values backed by integer minor units throughout the package. Invoice splits and partial refunds now reconcile exactly, and storage writes version 2 invoices while still reading legacy files.

Updated \`tests/test\_tabby.py\` for the new API and added regression tests for rounding, allocation, refunds, and currency handling. \`python -m pytest -q\`: \*\*15 passed\*\*.

**Gemini 4 Neon, try 1 Pass, 47 of 47 tests, 6.6 min, 42 steps**

Refactored \`tabby\` to represent all monetary amounts using an exact integer minor-unit \`Money\` type per \`REFACTOR.md\`, with no float arithmetic on money anywhere in the package.

Summary of changes: - \*\*\`tabby/money.py\`\*\*: Added frozen \`Money(cents, currency="USD")\` and \`CurrencyMismatch(ValueError)\` supporting USD/CAD/EUR (2 decimals), JPY (0 decimals), and KWD (3 decimals), exact \`amount()\`, \`Money.of()\` with round-half-up (away from zero), currency-checked arithmetic/ordering, \`0 + m\` for \`sum()\`, \`int\`/\`Decimal\` multiplication, and \`allocate(ratios)\`. - \*\*\`tabby/catalog.py\` & \`tabby/cart.py\`\*\*: Changed \`Product.price\` to \`Money\` with \`Product.currency\` as a property; \`Cart.add()\` enforce

Cut at 700 characters.

**Gemini 4 Carbon, try 1 Pass, 47 of 47 tests, 11.3 min, 35 steps**

Refactored \`tabby\` to represent all money amounts as exact integer minor units via \`Money\`:

\- \*\*\`tabby/money.py\`\*\*: Added frozen \`Money(cents, currency="USD")\` and \`CurrencyMismatch(ValueError)\` supporting \`USD\`/\`CAD\`/\`EUR\` (2 decimals), \`JPY\` (0), and \`KWD\` (3), strict \`int\` checking on \`cents\`, \`Money.of()\` with half-up (away from zero) rounding, exact \`Decimal\` \`amount()\`, same-currency \`+\`/\`-\`/ordering, \`sum()\` compatibility (\`0 + m\`), \`int\`/\`Decimal\` multiplication, unary \`-m\`, and exact proportional \`allocate(ratios)\`. - \*\*Catalog, Cart, Discounts, Tax & Invoice\*\*: Updated \`Product\` (\`price: Money\`, \`currency\` property), \`Cart\` (currency validation, \`Money\` line/subtotal amounts), \`Pe

Cut at 700 characters.

**Claude Fable 5.2, try 1 Pass, 47 of 47 tests, 4.0 min, 8 steps**

The refactor is done across the whole package: every money amount in \`tabby\` is now a \`Money\` holding integer minor units, and \`tests/test\_tabby.py\` is rewritten for the new API (38 tests pass). Nothing is committed; the changes are in the working tree.

All 13 rules in REFACTOR.md are implemented, with a new \`tabby/money.py\` and every other module moved over. There is no float arithmetic left; the only place a float could enter is an old JSON file, and those numbers are parsed as \`Decimal\` so \`0.285\` becomes 29 cents.

Places where the spec was silent or its literal reading has a consequence you might not expect:

\- \*\*Leftover cents in \`allocate\`\*\*: they go to the first parts in list order

Cut at 700 characters.

**DeepSeek V4.1 Flash 1017, try 1 Fail, 42 of 47 tests, 8.6 min, 34 steps**

Implemented the money refactor across the package:

\- Added \`tabby/money.py\` with frozen \`Money\`, \`CurrencyMismatch\`, exact Decimal amounts, half-up rounding, arithmetic/comparisons, and proportional allocation. - Migrated carts, products, coupons, tax, invoices, refunds, ledger, FX, gift cards, subscriptions, loyalty, reporting, and storage to \`Money\`. - Added version-2 JSON persistence plus backward-compatible loading of legacy float-dollar invoices. - Updated \`tests/test\_tabby.py\` to the new API and added coverage for money rules, allocation, inclusive tax, refund splitting, and legacy storage.

All tests pass: \`20 passed\`.

**DeepSeek V4.1 Flash 1017, try 2 Pass, 47 of 47 tests, 3.5 min, 18 steps**

The refactor is complete. Here's a summary of what I did:

\## New module: \`tabby/money.py\` - Frozen \`Money(cents: int, currency="USD")\` and \`CurrencyMismatch(ValueError)\`. - Validates \`cents\` is a real \`int\` (rejects \`bool\`/\`float\`/\`Decimal\`), validates currency against a decimals table (USD/CAD/EUR→2, JPY→0, KWD→3). - \`Money.of(amount, currency)\` accepts \`str\`/\`int\`/\`Decimal\` (float → \`TypeError\`), rounding half up (away from zero for negatives), implemented with \`Fraction\` for exactness. - \`amount()\` returns exact \`Decimal\`; \`+\`/\`-\`/comparisons raise \`CurrencyMismatch\` across currencies; \`0 + m\` supports \`sum()\`; \`\*\` with \`int\`/\`Decimal\` and unary \`-\`; \`\_\_eq\_\_\` is \`False\` across currencies

Cut at 700 characters.

**DeepSeek V4.1 Flash 1017, try 3 Fail, 0 of 2 tests, 105 s, 6 steps**

No closing message. One reply ran past the 16,000-token output limit, which ended the try.

**Kimi K3.1 Pro, try 1 Pass, 47 of 47 tests, 15.8 min, 17 steps**

Implemented the full integer-minor-unit money refactor:

\- Added frozen \`Money\` and \`CurrencyMismatch\`, with exact conversion, rounding, arithmetic, comparison, and allocation. - Migrated products, carts, discounts, taxes, invoices, refunds, ledgers, FX, gift cards, subscriptions, loyalty, and reports to \`Money\`. - Added versioned JSON storage with exact legacy-file conversion. - Ensured exact discount/tax allocation, invoice splitting, and cumulative partial refunds. - Updated \`tests/test\_tabby.py\` to the new API. - Removed float-based monetary arithmetic throughout the package.

Validation: \`python -m pytest -q\` — \*\*6 passed\*\*.

**Kimi K3.1 Pro, try 2 Fail, 46 of 47 tests, 14.1 min, 15 steps**

Implemented the full minor-unit money refactor:

\- Added frozen \`Money\` and \`CurrencyMismatch\` with exact arithmetic, allocation, validation, and currency-aware comparisons. - Migrated carts, products, discounts, taxes, invoices, refunds, ledgers, FX, gift cards, subscriptions, loyalty, and reporting. - Added versioned JSON storage with exact legacy float-dollar conversion and backward-compatible defaults. - Ensured discounts, taxes, splits, and cumulative refunds conserve totals exactly. - Updated \`tests/test\_tabby.py\` to cover the new API and edge cases.

Validation: \`python -m pytest -q\` — \*\*17 passed\*\*.

## How was this run?

The same way for every model and every try, graded by tests the model never saw.

- **Run** 26 November 2026, 7:25 PM to 9:52 PM PT. Every model got the same system prompt and the same task prompt, word for word, in a fresh copy of the repo for every try.
- **Tries** Up to 3 per model per task; each row says how many. The run had a $25 spend cap, so tries went in rounds, cheapest models first, and stopped at the cap. Claude Fable 5.2 got no try on the cachetools bug hunt. Every try is shown, passed or not.
- **Agent** Through the Straitly API (OpenAI chat completions format) with our own test key. One tool, bash, run in a macOS sandbox with no network. Up to 50 tool steps and 16,000 output tokens a reply; tool output cut to 6,000 characters. Each model's default temperature and reasoning.
- **Grading** 47 hidden tests: one or more per rule in REFACTOR.md, plus 400 seeded random orders checked to the cent against a reference solution. The model never saw the hidden tests. Pass means every test passed.
- **Time** Wall time for a whole try, timed on our own machine, tool runs and network included. It is one dated run per model, so it says how long each model took on these tasks, not how fast any API is, Straitly's included.
- **Slow first replies** Gemini 4 Carbon took 10 s on average before their first reply. That wait is the model's own thinking before it acts, and it showed on every task.
- **List cost** Every call's input, cached input and output tokens at the maker's list price, read on the run day. DeepSeek uses the peak or off-peak rate in force when each try started. Gemini 4 Carbon's rate is the one in force until 30 November 2026.
- **Straitly price** The same tokens at the Straitly catalog price on the run day. Gemini 4 Neon shows a link to its model page instead.
- **Reruns** Two bug-hunt tries stopped part way when our own shell closed, before any grading, and were started again from scratch. One DeepSeek bug-hunt try read a stock copy of cachetools that our sandbox had left readable; we closed that hole, threw the try away and ran it again. Two Kimi K3.1 Pro bug-hunt tries were cut off part way by an API error (HTTP 502, upstream provider not answering) before grading; both were thrown away and the try run again with longer retries. The same error ended its third refactor try; that one is left out and was not run again. Nothing was rerun for a better answer.

### Rates used

| Model                             | List           | Cache read | Straitly price                                                        |
| --------------------------------- | -------------- | ---------- | --------------------------------------------------------------------- |
| Claude Opus 5.5 Anthropic         | $4.00 / $20.00 | $0.2       | [$2.40 / $12.00](https://straitly.ai/models/claude-opus-5-5)          |
| GPT-6.2 Astra OpenAI              | $8.00 / $40.00 | $0.4       | [$4.80 / $24.00](https://straitly.ai/models/gpt-6.2-astra)            |
| Gemini 4 Neon Google              | $3.00 / $15.00 | $0.15      | [See model page](https://straitly.ai/models/gemini-4-neon)            |
| Gemini 4 Carbon Google            | $2.00 / $10.00 | $0.1       | $2.00 / $10.00                                                        |
| Claude Fable 5.2 Anthropic        | $8.00 / $40.00 | $0.2       | [$4.80 / $24.00](https://straitly.ai/models/claude-fable-5.2)         |
| DeepSeek V4.1 Flash 1017 DeepSeek | $0.15 / $0.60  | $0.003     | [$0.090 / $0.36](https://straitly.ai/models/deepseek-v4-1-flash-1017) |
| Kimi K3.1 Pro Moonshot            | $2.00 / $10.00 | $0.2       | [$1.14 / $5.70](https://straitly.ai/models/kimi-k3.1-pro)             |

List prices from each maker's pricing page, read on the run day. Each call is priced on its own, cache reads at the cache rate. DeepSeek's rate is the one in force when each try started (peak hours cost double); its off-peak rate is shown.

## What else do people ask?

[Ask a question](https://straitly.ai/contact)

- ### Which AI model is best at this task?
GPT-6.2 Astra, Claude Fable 5.2, Claude Opus 5.5, Gemini 4 Neon and Gemini 4 Carbon passed every try. 2 of 7 models failed at least once.
- ### How was it graded?
By running it, never by reading it: 47 hidden tests: one or more per rule in REFACTOR.md, plus 400 seeded random orders checked to the cent against a reference solution. The model never saw the hidden tests.
- ### Could a model have memorized the answer?
No. The library and the reference solution were written for this test, so no model has seen them.
- ### Why more than one try?
An agent does not take the same path twice. Repeat tries show whether a pass repeats or was luck. Here each model got 1 to 3 tries; every try is on the page, passed or not.

## Sources

The task's upstream sources, the public boards and each maker's pricing page, read on the run day. Spot something out of date? Tell us at [straitly.ai/contact](https://straitly.ai/contact).

1. \[1\] [Artificial Analysis Intelligence Index](https://artificialanalysis.ai/) artificialanalysis.ai, checked 26 November 2026
2. \[2\] [Terminal-Bench leaderboard](https://www.tbench.ai/leaderboard) tbench.ai, checked 26 November 2026
3. \[3\] [ARC Prize leaderboard](https://arcprize.org/leaderboard) arcprize.org, checked 26 November 2026
4. \[4\] [Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing) platform.claude.com, checked 26 November 2026
5. \[5\] [OpenAI pricing](https://developers.openai.com/api/docs/pricing) developers.openai.com, checked 26 November 2026
6. \[6\] [Gemini API pricing](https://ai.google.dev/gemini-api/docs/pricing) ai.google.dev, checked 26 November 2026
7. \[7\] [DeepSeek pricing](https://api-docs.deepseek.com/quick%5Fstart/pricing) api-docs.deepseek.com, checked 26 November 2026
8. \[8\] [Kimi API pricing](https://platform.kimi.ai/docs/pricing/chat) platform.kimi.ai, checked 26 November 2026
9. \[9\] [Straitly model catalog](https://straitly.ai/models) straitly.ai/models, checked 26 November 2026

**What each source says**

Artificial Analysis Intelligence Index

Intelligence Index 5.0.2, one score per model from Artificial Analysis' own runs of its evaluation suite.

Terminal-Bench leaderboard

Terminal-Bench 4.1 resolution rate, the best verified agent run per model.

ARC Prize leaderboard

ARC-AGI 2 scores verified by ARC Prize, default leaderboard view.

Anthropic pricing

Claude Opus 5.5 $4 / $20 and Claude Fable 5.2 $8 / $40 per 1M input / output tokens, base rate; cache reads $0.20.

OpenAI pricing

gpt-6.2-astra $8 / $40 per 1M input / output tokens, Standard, prompts up to 272K tokens; cached input $0.40.

Gemini API pricing

Gemini 4 Neon $3 / $15 per 1M input / output tokens, paid tier. Gemini 4 Carbon $2 / $10 through 30 November 2026 and $4 / $20 from 1 December 2026.

DeepSeek pricing

V4.1 Flash $0.15 / $0.60 per 1M input (cache miss) / output tokens off-peak; double that in peak hours, 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays.

Kimi API pricing

kimi-k3.1-pro $2 / $10 per 1M input (cache miss) / output tokens; cache hits $0.20.

Straitly model catalog

The per-model price list /models prints, read on the run day.

Read next: [Fix a real sqlglot bug](https://straitly.ai/shootouts/real-bug-fix) , [Hunt 16 bugs in cachetools](https://straitly.ai/shootouts/agent-bug-hunt) , [All shootouts](https://straitly.ai/shootouts) , [All comparisons](https://straitly.ai/compare).

## Start with one request.

Run the same task on every model with one key. [See pricing](https://straitly.ai/pricing).

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/shootouts/multi-file-refactor.
