Context, cache and cost.

We ran Dulus’s context engine on six synthetic coding sessions, from an eight-turn fix to a 120-turn audit. We modelled six other agents’ context policies and a control using the same transcripts, tokenizer and price table. The cost estimates vary with how often a turn follows a pause.

Arena
1.0.0
Run
2026-11-16 21:01 UTC
Commit
8a75324a2a
Wall clock
15.4 s
  • 0

    context overflows

    Its largest prompt was 698.4k tokens of a 1M window, in sessions up to 120 turns long. The only harness that never overflowed: Claude Code, Codex CLI, Cursor and Cline each did once, GitHub Copilot on 26 turns.

  • 1 in 11

    turns after a pause to lead on estimated cost

    Dulus keeps its prompt cache for an hour; the others are modelled with five minutes. With no pauses at all, four harnesses cost less: Cline, the cheapest, $53.83 against $72.19.

  • 4 of 5

    weightings put Dulus first

    Cost-first, the profile for whoever pays the bill, puts Cline first and Dulus fifth.

How to read every number on this page

  • Measured

    Dulus. The arena runs Dulus’s own context code on the transcript, in the order the app runs it, priced at the one-hour cache it ships with.

  • Modelled

    The other six. Each product’s context policy is replayed as a behaviour — grow, window, or summarise at a threshold — on the byte-identical transcript, with a five-minute cache. It is not their source code.

  • Same instrument

    Everyone. One tokenizer and one price table: cache reads at their discount, writes at the price of each cache’s lifetime. The scenarios are synthetic, calibrated to real agent work.

01 · The bill

Same six sessions. Two honest bills.

What all six sessions cost each harness, priced from one table: cache reads at their discount, cache writes at the price of the cache each harness asks for. With no pauses at all, four harnesses cost less than Dulus. With one turn in ten coming back after a pause, Dulus costs the least.

Fig. 01 No pauses: every turn comes back within five minutes. Session cost and billed prompt tokens, summed over the six scenarios
Harness Session cost Billed prompt tokens
ClineModelled $53.83 89.97M tokens
CursorModelled $57.42 103.96M tokens
Codex CLIModelled $58.73 107.20M tokens
Claude CodeModelled $58.88 107.71M tokens
DulusMeasured $72.19 97.00M tokens
AiderModelled $97.68 245.36M tokens
GitHub Copilot agent modeModelled $234.70 72.10M tokens
Naive loopControl $723.32 245.36M tokens
  • The scale stops at $100. The two longer bars are cut, and their value is printed.
  • Dulus is priced at the one-hour cache it ships with: 2× input for every write, against 1.25× for the five-minute cache the other six are modelled with.
  • Aider’s figure is an upper bound: its real repo map is token-budgeted, which the modelled shape doesn’t credit.
  • The naive loop is the control: the full transcript on every turn, no cache, no trimming.
Fig. 02 One turn in ten after a pause longer than five minutes: 26 of the 288 turns. The same sessions, the same tokens
Harness Session cost Caches that expired
DulusMeasured $72.19 0 expired
ClineModelled $79.53 25 expired
Claude CodeModelled $88.91 25 expired
Codex CLIModelled $89.09 25 expired
CursorModelled $89.22 25 expired
AiderModelled $170.88 25 expired
GitHub Copilot agent modeModelled $239.78 25 expired
Naive loopControl $723.32 — no cache to lose
  • A pause between five minutes and an hour expires a five-minute cache and leaves an hour-long one alone. The pauses fall on the same turns for every harness.
  • Billed tokens don’t change: a pause changes what each token costs, not how many are sent.

02 · The window

Under the line. Every turn.

A prompt bigger than the model’s window doesn’t run slowly: it fails. Across all six scenarios Dulus never sent one, and it is the only harness in the field that didn’t. Its largest prompt was 698.4k tokens, of a 1M window.

Fig. 03 Prompt size on every turn of the Marathon audit: 120 turns on claude-sonnet-4-6, with its 1M window
  • Dulus
  • Claude Code
  • GitHub Copilot
  • Naive loop and Aider
  • 1M model window

The Marathon audit, per harness
HarnessLargest promptCutsTurns over the window
Dulus691,21040
Claude Code902,97520
GitHub Copilot290,8981080
Naive loop and Aider2,372,077071

The gold dots mark Dulus’s 4 cuts: each time its prompt passed 70% of the window, Dulus trimmed old tool results, so the head of the prompt was rewritten and written to the cache again. Trimming was always enough here, so it never compacted and Lookback stayed off. Claude Code cut 2 times, at the two sharp drops in its line, and GitHub Copilot’s 12-turn window cuts on every turn from the 13th. The naive loop never cuts: it crosses the window at turn 50 and leaves the chart at turn 57, and Aider’s modelled curve is the same line.

Fig. 04 All six scenarios: the largest prompt each harness sent, and how many of the 288 turns went over the window
Harness Largest prompt, against a 1M window Turns over the window
Dulus698,4070 over the window
Claude Code902,9751 over the window
Codex CLI898,3041 over the window
Cursor848,9771 over the window
Cline749,6031 over the window
GitHub Copilot606,49926 over the window
Aider2,372,077135 over the window
Naive loop2,372,077135 over the window

Claude Code, Codex CLI, Cursor and Cline each overflowed once, and GitHub Copilot 26 times, all in the cheap-model session, where deepseek-chat has a 64k window: the four crossed it at turn 20, GitHub Copilot from turn 5. Dulus compacted before the line and peaked there at 43,850 tokens. Aider and the naive loop also overflow the 1M window: 109 turns across the deep refactor, the marathon and retrieval-heavy.

03 · The cache

A cache that waits an hour.

A provider bills the cached part of a prompt at a tenth of the price, but only for as long as it was asked to keep it. Five minutes is the default. Dulus asks for an hour, which costs 2× input to write instead of 1.25×. Step away for longer than five minutes, to read a diff or wait for a build, and a five-minute cache is gone: the whole prompt is written again.

Fig. 05 All six sessions, priced again as more of their 288 turns come back after a pause longer than five minutes
Turns after a pauseDulusCline, the cheapest otherClaude CodeDulus against Cline
0 of 288$72.19$53.83$58.88+$18.36 Dulus costs more
4 of 288$72.19$58.98$62.69+$13.21 Dulus costs more
12 of 288$72.19$64.08$74.86+$8.11 Dulus costs more
15 of 288$72.19$66.82$77.21+$5.37 Dulus costs more
19 of 288$72.19$70.85$81.99+$1.34 Dulus costs more
26 of 288$72.19$79.53$88.91−$7.34 Dulus costs the least
42 of 288$72.19$98.20$107.09−$26.01 Dulus costs the least
57 of 288$72.19$116.98$127.57−$44.79 Dulus costs the least
71 of 288$72.19$127.94$142.94−$55.75 Dulus costs the least

Dulus’s line never moves: a pause shorter than an hour leaves its cache where it was. Between 19 and 26 paused turns, about one in eleven, it becomes the cheapest harness in the arena. The arena’s headline run is the first row, the case most favourable to a five-minute cache; how often real sessions pause is not something this suite measures.

Never pausing is the worst case.

On sessions that never pause, Dulus pays its hour-long cache on every write and never gets anything back for it, and four modelled harnesses cost less. Give one turn in four a coffee break and it costs 43.6% less than Cline, the next cheapest.

No pauses, all six sessions

Dulus$72.19

Cline$53.83

One turn in four after a pause

Dulus$72.19

Cline$127.94

On a real bill

One account · real usage

91.9%

cache hit rate, November 1–15, 2026

1,783.8M input tokens in those 15 days

Day by day

Input tokens on each day from November 1 to 15: eight days of work, the busiest on November 13 at more than 350M, almost all of it from the cache.

  • ≈1,639M cached
  • ≈145M uncached

Our own account, building with Dulus, as the model provider’s usage dashboard reports it. Real sessions on one account: a different instrument from the arena, so the two hit rates don’t compare.

04 · How it works

Four mechanisms. All in the Windows app.

Nothing to install. This is how the agent in the Windows app handles context, out of the box and with the one switch worth knowing.

  1. A cache that waits an hour

    Dulus asks the provider to keep its prompt cache for an hour, not the default five minutes. Every write costs 2× input instead of 1.25×, and in exchange a pause to read, test or think doesn’t throw the cache away. When a pause does outlive it, Dulus spends the rewrite it is paying for anyway: it compacts right then, instead of paying twice.

    1 h

    cache lifetime, against five minutes by default. A write costs 2× input; a read, a tenth.

    pause < 1 hour the cache is still there

    otherwise compact now: the prompt is being rewritten anyway

  2. Lookback and Loopback

    Turn Lookback on and only the last 20 user turns go to the API; you can set anywhere from 2 to 250. When Dulus compacts a conversation, it turns Lookback on by itself. The cut falls on user-turn boundaries, so every tool call stays paired with its result, and the head is cut only when what it hides is at least twice the window, so the cache isn’t rebuilt for nothing. The whole conversation stays on your machine, and the agent searches it itself with its Loopback tool: status, show, head, search.

    The trade, said plainly: across the arena the model saw 66.4% of old history verbatim, against 71.4% for Claude Code. Loopback is how it gets the rest back. Dulus is the only harness in the arena whose agent can re-read dropped history: measured for Dulus, estimated as absent for the other six.

    20

    user turns sent, once Lookback is on. From 2 to 250.

  3. A Python console for the model

    The Python tool is a persistent kernel: variables, imports and data survive between calls. So the model keeps big data in the kernel’s memory instead of the conversation, and only the slice it prints enters the context. An infinite loop or a crash kills the kernel, never Dulus, and it restarts on the next call.

    20,000

    characters per stream at most, capped at the source. Timeout: 30 s by default, up to 300 s.

    >>> runs = load("ci/") stays in the kernel

    >>> failing(runs)[:3] only this reaches the context

  4. MemPalace

    Memory is markdown, filed in a palace of halls that you can open and edit. The essentials, short_memory and the gold memories, load at the start of every session, on every surface. The agent saves what it learns and searches the palace with its own memory tools.

    Every session

    the essentials load first: short_memory and the gold memories.

    • soul
    • facts
    • events
    • discoveries
    • preferences
    • advice
Fig. 06 The context toolkit across the field, with the evidence behind every cell
Capability Dulus Claude Code Codex CLI Cursor Cline Aider GitHub Copilot
Context compaction YesMeasured YesVendor-public YesVendor-public YesEstimated YesVendor-public NoEstimated No data
Sliding history window YesMeasured NoEstimated NoEstimated No data YesEstimated NoEstimated YesEstimated
Cache-aware truncation gate YesMeasured NoEstimated NoEstimated No data No data NoEstimated No data
Agent can re-read dropped history YesMeasured NoEstimated NoEstimated NoEstimated NoEstimated NoEstimated NoEstimated

Dulus’s four are measured. Most cells for the other products are estimates, and are marked that way: read them as the arena’s best guess, not a finding. The arena tracks 20 capabilities in all; these four are the ones this page is about, and the dossier lists every one.

05 · Head to head

42 matchups. Read both ways.

Every scenario against every challenger, on sessions that never pause. Each cell is the challenger’s cost divided by Dulus’s on the same scenario, with a 95% interval from a paired bootstrap over per-turn costs. Above 1, Dulus is cheaper; below 1, it costs more. Here Dulus is cheaper in 19 and dearer in 23. With one turn in ten after a pause: cheaper in 21, dearer in 6, too close to call in 15. With one in four: cheaper in 31, dearer in none.

Fig. 07 Challenger cost ÷ Dulus cost, by scenario, with no pauses. Each cell: the ratio, then its 95% interval.
Scenario Claude Code Codex CLI Cursor Cline Aider GitHub Copilot Naive loop
Quick fix8 turns · claude-sonnet-4-6 0.732×0.711–0.765 0.732×0.711–0.765 0.732×0.711–0.765 0.732×0.711–0.765 0.732×0.711–0.765 0.732×0.711–0.765 1.772×1.218–2.565
Feature build30 turns · claude-sonnet-4-6 0.799×0.777–0.819 0.799×0.777–0.819 0.799×0.777–0.819 0.799×0.777–0.819 0.799×0.777–0.819 2.573×2.105–3.026 4.100×3.543–4.626
Deep refactor60 turns · claude-sonnet-4-6 0.832×0.751–0.927 0.832×0.751–0.927 0.810×0.732–0.895 0.755×0.690–0.825 1.143×1.018–1.283 3.270×2.876–3.667 7.855×6.727–9.161
Marathon audit120 turns · claude-sonnet-4-6 0.808×0.750–0.868 0.803×0.741–0.868 0.786×0.724–0.848 0.722×0.672–0.772 1.659×1.501–1.820 3.070×2.832–3.317 13.597×12.045–15.194
Retrieval-heavy40 turns · claude-sonnet-4-6 0.809×0.741–0.880 0.808×0.741–0.880 0.787×0.726–0.860 0.758×0.716–0.815 1.119×1.004–1.240 3.823×3.220–4.433 7.027×5.861–8.294
Feature build on a cheap model30 turns · deepseek-chat 1.749×1.529–1.973 1.728×1.502–1.954 1.760×1.547–1.986 1.611×1.394–1.857 2.795×2.351–3.321 4.748×3.758–5.872 8.942×7.169–11.038
  • 0.72×

    The widest the other way: Cline on the 120-turn marathon audit, then all six products on the 8-turn quick fix, at 0.73×. With no pause to earn it back, the hour-long cache costs Dulus more on every write than its context work saves.

  • 1.75×

    The cheap-model session, against Claude Code: Dulus compacts before the 64k window, and is the only harness that never overflows it.

  • 13.6×

    Against the naive loop, on the 120-turn marathon audit.

06 · Any weighting

Four weightings of five. And the fifth, said plainly.

What counts as best depends on what you weigh. So the arena re-scores every harness under five published profiles, from someone paying the bill to someone who needs the agent never to forget the plan. Dulus placed first under four. Cost-first puts Cline first and Dulus fifth, because on sessions that never pause Dulus costs more.

Fig. 08 Scores from 0 to 1 under each weight profile
  1. Neutral

    Every metric counts the same.

    Dulus 0.793

    Runner-up Cline 0.773

  2. Cost-first

    Someone paying the bill.

    Dulus 0.808 #5

    Winner Cline 0.885

  3. Fidelity-first

    Someone who needs the agent not to forget the plan.

    Dulus 0.732

    Runner-up Cursor 0.725

  4. Capability-first

    Someone shopping for features.

    Dulus 0.899

    Runner-up Cline 0.736

  5. Arena default

    The catalogue’s own weights.

    Dulus 0.839

    Runner-up Cline 0.835

The closest calls are arena-default, Dulus 0.839 against Cline 0.835, and fidelity-first, 0.732 against Cursor 0.725. Money, tokens and peak context are scored against the best value, so twice the cost scores half: on a min-max scale, the naive control at more than ten times the field squeezed every real cost difference into the last hundredths.

All 40 scores, with ranks
HarnessNeutralCost-firstFidelity-firstCapability-firstArena default
Dulus0.793 #10.808 #50.732 #10.899 #10.839 #1
Claude Code0.723 #50.821 #40.710 #40.593 #50.771 #5
Codex CLI0.724 #40.822 #30.710 #50.593 #40.772 #4
Cursor0.753 #30.840 #20.725 #20.710 #30.806 #3
Cline0.773 #20.885 #10.719 #30.736 #20.835 #2
Aider0.615 #60.578 #60.695 #60.511 #70.529 #7
GitHub Copilot0.540 #70.477 #70.597 #70.566 #60.594 #6
Naive loop0.403 #80.255 #80.591 #80.205 #80.306 #8

07 · Method

How it was measured. And what wasn’t.

The Dulus Benchmark Arena builds one transcript per scenario from a fixed seed, runs it through each harness’s context policy, and prices every turn the same way. Here is exactly what that means, and where it stops.

How to read a World of AI benchmark alongside Dulus Arena

Start with the task and the scoring rule. Did the evaluator run the same prompt through each model and check the answer, or replay the same transcript through different agent tools? Those experiments answer different questions. Record the model version, tool access, token budget and pass condition before comparing results.

Dulus Arena reports context usage and estimated cost across six synthetic coding sessions. It runs the Dulus context code and models the other harnesses. A score for solving a task cannot be inferred from this replay. The published dossier lists the scenarios and assumptions behind the figures here.

For example, the dossier’s 200k-window replay with no pauses estimates $51.17 for Dulus and $48.25 for the modelled Claude Code policy. To compare task success as well, run the same task with both agents, record whether the output passes the same test, and keep the cost of each attempt.

  • Measured

    Dulus, and the control

    The arena runs Dulus’s own context code in the order the app runs it: it sizes the request it would send, trims old tool results and compacts only past 70% of the window, and turns the lookback window on after the first compaction, with the window’s anchor kept across turns so its payoff gate and hysteresis are really exercised. The cache is the one Dulus asks for: an hour. The one stand-in is the summary card, a fixed-size surrogate, because writing it would need a live model call. The naive control is the arena’s own reference loop.

  • Modelled

    The other six

    Each product’s context policy is a behavioural shape: grow, window, or summarise at a threshold, with the API’s default five-minute cache and a cache marker at the end of the prompt, the cheapest placement there is. It is replayed on the same transcript, and it is not that product’s source code. Where the shape is generous to a competitor, the arena says so.

  • Claimed

    Capabilities

    Every capability carries its tier and a citation. The Dulus column describes the app you download: a capability that only the source tree runs is recorded as absent. Several rows were corrected upward for competitors against this project’s own older marketing, and an unknown is recorded as unknown, never scored as zero.

Fig. 09 The field, and how much each row can be trusted
HarnessContext policyEvidence quality
DulusMeasuredTwo-layer compaction, then the lookback windowEvidence quality 89%
Claude CodeModelledFull context, late auto-compactEvidence quality 40%
Codex CLIModelledFull context, late compactionEvidence quality 37%
CursorModelledEditor-scoped context, mid-window summarisationEvidence quality 41%
ClineModelledVisible context bar, truncate on pressureEvidence quality 40%
AiderModelledRepo map and full chat historyEvidence quality 44%
GitHub Copilot agent modeModelledBounded turn window, retrieval-assembledEvidence quality 43%
Naive loopMeasuredFull transcript, no cache, no trimmingEvidence quality 100%

Evidence quality is the mean strength of the evidence behind a harness’s rows, from measured at the top to unknown at zero. It is never scored; it tells you how much to trust the rest.

Six scenarios

  • Quick fix8 turnsRead a file, spot a bug, patch it, run the tests.
  • Feature build30 turnsGrep, read several modules, write code, run tests, iterate: the median real session.
  • Deep refactor60 turnsMany files, large diffs, repeated full-file reads.
  • Marathon audit120 turnsLong-horizon work, like a security sweep or a migration.
  • Retrieval-heavy40 turnsNearly every turn drags in a large retrieval blob.
  • Feature build on a cheap model30 turnsThe same feature build, routed to a low-cost model.

The first five run on claude-sonnet-4-6 with its 1M window; the last on deepseek-chat, with 64k.

One instrument

Tokens
compaction.estimate_tokens, an estimate: characters ÷ 2.8, plus 4 per message, plus 10%.
Prices
providers.calc_cost: on Claude, cache reads at a tenth of input, writes at 1.25× for a five-minute cache and 2× for an hour. A request reads only what an earlier one wrote.
Pauses
None in the headline run. The same sessions replay with a share of turns after a pause longer than five minutes, the same turns for every harness.
Intervals
Paired bootstrap over per-turn costs, 95%. An interval that touches parity counts as no difference, not a win.
Weights
Five published profiles. Money and tokens are scored against the cheapest; rank stability is the share that agree on first place.

Caveats, in full

  1. The other six are models of a strategy. Not the products’ code. The cost curves compare strategies; they don’t measure shipped software.
  2. Their rows rest on weaker evidence. Evidence quality is 37–44% for the six products and 89% for Dulus, so their rows deserve less weight than the arithmetic implies.
  3. Pauses decide the cost ranking. The headline run never pauses, the case most favourable to a five-minute cache. How often real sessions pause is not measured here.
  4. Their cache lifetime is assumed. They are modelled with the API’s five-minute default. One that asks for an hour pays Dulus’s write premium too.
  5. The window matters. At a 200k window, with no pauses, Dulus costs $51.17 and Claude Code, the cheapest, $48.25.
  6. One input matters most. Claude Code’s compaction threshold is the most sensitive number in the arena.
  7. Aider’s cost is an upper bound. Its repo map is token-budgeted in a way the modelled shape doesn’t credit.
  8. Token counts are estimates. The same estimate for everyone, so comparisons are fair; absolute counts are approximate. Every prompt is priced at the model’s standard rate, however long.
  9. The scenarios are synthetic. Shaped like real agent work, not sampled from it.
  10. Nothing here measures output quality. The arena measures what a session costs and what the model can still see, not whether the code it writes is good.
  11. Lookback barely moves the bill here. Switched on from the first turn, Dulus costs $72.18: in these sessions it rarely hides enough history to pay for cutting the cached head.
  12. The capability list comes from the arena’s authors, who also make Dulus. Capability coverage feeds every profile, so read the capability-first ranking with that in mind.

Corrected on November 16, 2026

The first edition of this page, from October 18, reported Dulus at $25.63 against $48.00 for Claude Code, cheaper in all 42 matchups and first under every weighting. Running the arena again, properly, turned up five errors in the instrument, every one in Dulus’s favour. Each fix now ships with a test that fails without it.

  1. Cache writes were free. New content went from full price straight to the cached price, never paying to be written.
  2. Dulus was priced at the wrong cache. It ships the one-hour cache, at 2× per write, and was billed at the five-minute rate.
  3. Dulus trimmed on every turn. The app trims and compacts only past 70% of the window, and leaves Lookback off until then.
  4. Those trims were invisible. They rewrote messages already sent, and the arena kept reading them from the cache.
  5. One extreme row flattened the costs. On a min-max scale, the naive control squeezed every real cost difference into the last hundredths.

Claude’s window also grew from 200k to 1M in between, and the capability record now describes the app you download.

Provenance tiers, strongest first

Measured
Computed by running code in the Dulus repository.
Documented
Taken from a primary source, read directly.
Vendor-public
A vendor’s published figure.
Repo-doc
A claim from this project’s own docs: self-reported.
Estimated
Modelled from a stated assumption, not measured.
No data
Not found. Skipped by the scorer, never counted as zero.

The full dossier

Every chart, every matchup, every caveat.

29 pages: the method, every chart, the 42 matchups with their intervals, the full capability record and the caveats.

Arena
1.0.0
Run
2026-11-16 21:01 UTC
Commit
8a75324a2a
Test suite
6,362 test functions in 395 files
Download the full dossier (PDF)

PDF · 29 pages · 1.80 MB

Six sessions measured. The seventh is yours.

Get the Windows app. The hour-long cache, compaction with its size gate, Lookback and Loopback, the Python console and MemPalace come with it.

esc