Token benchmark
Athar used 49% fewer tokens than Claude Code on 12 coding tasks.
Tested on 16 Nov 2026.
We gave Athar and Claude Code the same 12 coding tasks on the same model, Claude Sonnet 5.5. Hidden tests passed on all 72 runs. Athar used 3.3 million tokens. Claude Code used 6.4 million. Athar cost $1.19. Claude Code cost $2.15. This is a small test that we wrote. It is not a public benchmark. The data for every run is open. We also ran Athar against Codex on gpt-6-luna; see the results below.
Why we measure this. The model alone does not decide how many tokens a task uses. On every model call, the agent sends its instructions and the work so far. A smaller context on each call lowers the cost of every task. It also uses less of a team's rate limit.
Tokens are all the tokens the model handled: new input, cached input and output. Each figure is the total of 36 runs per agent. Cost uses Anthropic's list prices.
How we tested
- Same model. Both agents used Claude Sonnet 5.5 (
claude-sonnet-5-5) at medium effort. - 12 tasks in two small Python projects. Eight short tasks use a text-tools package. Four long tasks use a small shop library.
- Three runs per task. Each agent ran every task 3 times. That gives 36 runs per agent and 72 in all. Each run started on a fresh copy of the project.
- Hidden tests grade each result. The agent never saw them. The question task is graded on its answer and on leaving every file unchanged.
- Date. We ran everything on 16 Nov 2026.
- Athar ran with a Claude API key and its own agent loop. Claude Code ran with clean settings and the tools Bash, Read, Edit, Write, Glob and Grep.
| Task | Size | What the agent had to do |
|---|---|---|
| t1-fix-bug | Short | Fix bugs in a small text-tools package until the visible tests pass. The tests may not change. |
| t2-slugify | Short | Add a function that turns text into a URL-safe slug, with accents made plain. |
| t3-intervals | Short | Add a function that merges number intervals that overlap or touch. |
| t4-csv-report | Short | Total revenue per region from a CSV file and write it to a JSON file. |
| t5-cli-flag | Short | Add an --upper flag to a command-line tool. |
| t6-rename | Short | Rename one function everywhere in the package, including every caller. |
| t7-question | Short | Name the function that appends lines to a log file. No file may change. |
| t8-top-words | Short | Add a function that returns the n most frequent words with their counts. |
| l1-discount-codes | Long | Add discount codes to a small shop library: storage, validation, pricing, ordering, cancelling and a --code option. |
| l2-regressions | Long | Find and fix the root cause of several reported bugs in the shop library, guided by a failing test file. |
| l3-dataclasses | Long | Replace the plain dictionary records in the shop library with frozen dataclasses, with no change in behaviour. |
| l4-restock-plan | Long | Add a restock-plan command that reads product and stock files and writes a JSON plan, with four checked error cases. |
All 12 tasks
Over all 72 runs, Athar used 49% fewer tokens, cost 45% less and took 17% less time. The time figure is provisional (see the limits). Each bar is the total of 36 runs. The chart shows tokens, cost and time for both agents.
| Measure | Athar | Claude Code | Athar difference |
|---|---|---|---|
| Total tokens | 3,256,236 | 6,445,358 | 49% less |
| Cost | $1.185 | $2.154 | 45% less |
| Time | 556 s | 669 s | 17% less (provisional) |
| Model calls | 153 | 192 | 20% less |
| Output tokens | 48,581 | 63,662 | 24% less |
Short tasks and long tasks
The saving is larger on short tasks. On the 8 short tasks Athar used 60% fewer tokens and cost 64% less. On the 4 long tasks it used 37% fewer tokens and cost 32% less. Athar sends less context on every call. This points to a smaller fixed prompt. A short task has few model calls and little work of its own, so the fixed prompt is a large share of its cost. A long task adds work that both agents must do, so that share shrinks.
The first chart below shows the 8 short tasks. The second shows the 4 long tasks.
Time follows the same pattern. Athar was 26% faster on short tasks and 10% faster on long tasks. The long-task time figure is provisional. Some long-task runs shared the machine with another process. See the limits below.
| Measure | Athar | Claude Code | Athar difference |
|---|---|---|---|
| Total tokens | 1,437,000 | 3,562,492 | 60% less |
| Cost | $0.313 | $0.864 | 64% less |
| Time | 208 s | 282 s | 26% less |
| Model calls | 79 | 110 | 28% less |
| Output tokens | 11,746 | 19,823 | 41% less |
| Measure | Athar | Claude Code | Athar difference |
|---|---|---|---|
| Total tokens | 1,819,236 | 2,882,866 | 37% less |
| Cost | $0.872 | $1.290 | 32% less |
| Time | 348 s | 387 s | 10% less (provisional) |
| Model calls | 74 | 82 | 10% less |
| Output tokens | 36,835 | 43,839 | 16% less |
Task by task
Athar was cheaper on all 12 tasks. Its saving per task ranged from 23% to 68%. Athar was faster on 9 of 12 tasks. It was slower on 3: t6 rename, t7 question, l3 dataclasses. All figures here are the median of the 3 runs. The chart below shows the median cost of each task. Time figures for long tasks are provisional.
| Task | Median tokens | Median cost | Median time | Cost saving | |||
|---|---|---|---|---|---|---|---|
| Athar | Claude Code | Athar | Claude Code | Athar | Claude Code | ||
| Short tasks | |||||||
| t1 fix-bug | 77,037 | 164,022 | $0.024 | $0.049 | 17.3 s | 17.4 s | 51% |
| t2 slugify | 54,449 | 161,010 | $0.012 | $0.036 | 8.3 s | 12.2 s | 67% |
| t3 intervals | 54,040 | 161,748 | $0.013 | $0.040 | 8.2 s | 14.6 s | 68% |
| t4 csv-report | 53,789 | 120,398 | $0.010 | $0.027 | 6.6 s | 8.9 s | 62% |
| t5 cli-flag | 53,592 | 120,329 | $0.009 | $0.027 | 6.2 s | 7.1 s | 67% |
| t6 rename | 72,199 | 160,505 | $0.014 | $0.034 | 10.5 s | 10.0 s | 59% |
| t7 question | 53,155 | 79,881 | $0.008 | $0.021 | 5.2 s | 4.7 s | 64% |
| t8 top-words | 54,488 | 161,173 | $0.012 | $0.038 | 7.5 s | 14.2 s | 68% |
| Long tasks | |||||||
| l1 discount-codes | 142,291 | 232,675 | $0.080 | $0.115 | 31.7 s | 36.5 s | 30% |
| l2 regressions | 133,564 | 173,146 | $0.046 | $0.060 | 17.6 s | 18.5 s | 23% |
| l3 dataclasses | 230,244 | 305,545 | $0.104 | $0.148 | 41.0 s | 37.8 s | 30% |
| l4 restock-plan | 109,294 | 220,742 | $0.054 | $0.096 | 23.3 s | 35.5 s | 43% |
Median of 3 runs per task and agent. The cost saving is one minus the Athar median cost divided by the Claude Code median cost. Time in coral marks a task where Athar was slower.
Where the saving comes from
A model call sends the whole context again. The model reads its instructions and the work so far on every call. A smaller fixed prompt therefore saves tokens on every call, and Athar also made fewer calls and wrote less output. The three charts below show each effect.
- Context per call. Athar sent 20,965 tokens per model call on average. Claude Code sent 33,238. This is input, cache writes and cache reads, divided by model calls.
- Model calls. Athar made 153 calls over 36 runs. Claude Code made 192.
- Output tokens. Athar wrote 48,581 output tokens. Claude Code wrote 63,662.
Output tokens cost the most per token. They were 41% of Athar's cost and 30% of Claude Code's. Cached input makes up most of the rest. We priced each token type at Anthropic's list prices per million tokens: input $2.00, output $10.00, cache read $0.10. A cache write costs $2.50 for Athar, which uses a 5-minute cache. It costs $4.00 for Claude Code, which uses a 1-hour cache.
Part of the cost gap comes from the cache price. Athar uses the 5-minute cache: a cache write costs $2.50 per million tokens. Claude Code uses the 1-hour cache: a cache write costs $4.00. If both agents paid $2.50, Claude Code would cost about $1.82, and Athar's saving would be about 35%. The token counts do not depend on this. The 5-minute cache has a cost: after more than 5 minutes idle, Athar writes its context to the cache again, about $0.05 at these sizes.
The chart below shows how each agent's cost splits by token type.
Share of each agent's cost by token type. Output is 41% of Athar's cost and 30% of Claude Code's.
| Type (first swatch Athar, second Claude Code) | Athar | Claude Code |
|---|---|---|
| Output | $0.486 (41.0%) | $0.637 (29.6%) |
| Cache writes | $0.394 (33.2%) | $0.901 (41.8%) |
| Cache reads | $0.305 (25.7%) | $0.616 (28.6%) |
| Uncached input | $0.001 (0.1%) | $0.001 (0.0%) |
Run-to-run consistency
We repeated each task 3 times. For each task we took the standard deviation of the 3 costs (dividing by 3) and divided it by their mean. This is the coefficient of variation. The median over the 12 tasks is 6.7% for Athar and 5.3% for Claude Code. Across tasks it ranged from 2.1% to 30.3% for Athar and from 1.5% to 41.9% for Claude Code.
The typical task varies by only a few percent between runs. The gap between the agents is much larger: the median of the per-task cost savings was 60%. On 11 of 12 tasks, every one of the 3 Athar runs cost less than every one of the 3 Claude Code runs. Chance variation between runs is unlikely to explain a gap of that size. A few tasks vary more between runs, so single runs can differ widely.
Athar against Codex on gpt-6-luna
We ran the same 12 tasks and hidden tests with Athar and Codex. Both used gpt-6-luna at medium effort, through one ChatGPT subscription. Each agent ran every task 3 times, on 16 Nov 2026. Athar used its ChatGPT route and its own agent loop. Codex 0.167 ran with no user config or rules, in its workspace-write sandbox. Athar's ChatGPT route does not accept gpt-6.1-terra, the default model of Codex, so both agents used gpt-6-luna.
The chart shows the totals for each agent over 36 runs, on gpt-6-luna.
| Measure | Athar | Codex | Athar difference |
|---|---|---|---|
| Passed | 35 of 36 | 34 of 36 | 1 more run passed |
| Tokens | 4,261,735 | 5,149,874 | 17% less |
| Cost (estimate) | $0.1293 | $0.1351 | 4% less |
| Time | 1,618.8 s | 1,143.9 s | 42% longer |
| Output tokens | 49,607 | 39,860 | 24% more |
The table below shows the median of the 3 runs for each task. Numbers in coral mark a result where Athar was worse: more tokens, more time or fewer runs passed.
| Task | Median tokens | Median time | Runs passed | |||
|---|---|---|---|---|---|---|
| Athar | Codex | Athar | Codex | Athar | Codex | |
| Short tasks | ||||||
| t1 fix-bug | 80,574 | 128,766 | 39.8 s | 26.9 s | 3 of 3 | 3 of 3 |
| t2 slugify | 82,167 | 84,134 | 37.2 s | 17.2 s | 3 of 3 | 3 of 3 |
| t3 intervals | 77,817 | 84,588 | 28.7 s | 17.7 s | 3 of 3 | 3 of 3 |
| t4 csv-report | 31,546 | 62,968 | 12.1 s | 11.8 s | 3 of 3 | 2 of 3 |
| t5 cli-flag | 69,030 | 85,676 | 25.1 s | 16.8 s | 3 of 3 | 3 of 3 |
| t6 rename | 66,494 | 107,552 | 26.1 s | 19.4 s | 3 of 3 | 3 of 3 |
| t7 question | 41,219 | 83,313 | 10.9 s | 9.9 s | 3 of 3 | 3 of 3 |
| t8 top-words | 57,374 | 84,562 | 28.7 s | 20.1 s | 3 of 3 | 2 of 3 |
| Long tasks | ||||||
| l1 discount-codes | 296,077 | 239,904 | 100.4 s | 64.8 s | 2 of 3 | 3 of 3 |
| l2 regressions | 216,735 | 188,696 | 66.4 s | 35.4 s | 3 of 3 | 3 of 3 |
| l3 dataclasses | 246,965 | 366,369 | 101.0 s | 84.2 s | 3 of 3 | 3 of 3 |
| l4 restock-plan | 124,056 | 144,441 | 59.0 s | 52.6 s | 3 of 3 | 3 of 3 |
What this shows
- Correctness is close. Athar passed 35 of 36 runs and Codex passed 34 of 36. Athar failed l1 discount-codes, run 3. Codex failed t4 csv-report, run 2, and t8 top-words, run 3.
- Athar used fewer tokens, and the cost gap is small. Athar used 17% fewer tokens in total. Its median was lower on 10 of 12 tasks. The cost was only 4% lower, because cached input on gpt-6-luna costs a tenth of new input. Most tokens in both agents are cached input, so they add little to the cost.
- Codex was faster on all 12 tasks. Athar took 42% longer in total (1,619 s against 1,144 s). The next part gives the reason. We did not take the gpt-6-luna timings on an idle machine (see the limits).
Why Athar is slower here
Time follows output on this model. A straight-line fit of run time against output tokens gives about 45 output tokens per second for Codex and 40 for Athar. In separate timed runs of four small tasks, a single Athar reply also streamed at about 45 output tokens per second.
- More output. Athar wrote 24% more output than Codex in total. The median small-task run had 709 output tokens for Athar and 498 for Codex. The median long-task run had 2,932 against 2,342.
- Longer messages to the user. In the run logs, Athar's text to the user was about 2.5 times as long as Codex's: a median of 1,074 against 435 characters per small-task run. Most of that text is Athar's progress notes, a short sentence before each step so the user can follow the work. We keep the notes on purpose.
- More model calls. Athar makes 3 to 7 model calls on a small task (median per task), and each call waits for the server before the reply starts. Codex reports turns, not calls, so we cannot compare call counts directly.
- Start-up. On t7 question, where both agents wrote about the same output, Athar took 1.0 s longer.
Limits and next steps
- Our own tasks. This is a small test we wrote. It is not a public benchmark. Other tasks may give other results.
- Only 4 long tasks. The long-task numbers rest on 12 runs per agent.
- Time is provisional. Some long-task runs shared the machine with another heavy process. That changes time more than it changes tokens or cost. Short-task runs did not overlap.
- Cache lifetime. Athar's 5-minute cache costs less per write, but it expires after 5 minutes without use. A pause longer than that costs one rewrite of the context. At Athar's average context of 20,965 tokens, one rewrite adds about $0.05 compared with reading the same context from the cache.
- Fixed prompt size. The data holds the context sent per call, not the size of each agent's fixed prompt. We infer the smaller prompt from the smaller context per call.
- Prices. Cost uses Anthropic's list prices at the time of the test. Other plans or discounts change the cost, not the token counts.
- gpt-6-luna cost is an estimate. A subscription reports no cost. We priced the tokens at list prices from third-party price lists: input $0.10, cached input $0.01, cache write $0.125 and output $0.50 per million tokens.
- gpt-6-luna timings. We did not take them on an idle machine. They may differ on a quiet machine.
What we will do next:
- Run the long tasks again on a machine with no other heavy process, and replace the time figures.
- Add more long tasks. Four is too few to rely on the long-task result.
We will date each update on this page.
The raw data for all 72 runs is open: token-benchmark.v1.json. The raw data for the 72 gpt-6-luna runs is open too: token-benchmark-gpt.v1.json.