Case study · AI architecture
What we changed to spend less in each AI session, measured request by request
From 15/08 to 14/11/2026 we measured every model request of our AI coding sessions. This page shows what changed in the numbers.
Sub-agent spend, per week
−66%
in two weeks, from US$ 2,564 to US$ 868 a week (W40 to W42). This is the sub-agents only.
USD, estimated from public prices
Net total, same period: −30%, from US$ 3,530 to US$ 2,477 a week.
measuredMost expensive model, per week
−94%
from US$ 973 to US$ 59 a week, W41 to W46 (the latest measured week). The lowest was US$ 13.
USD, estimated from public prices
measuredFixed load of each session
−77%
from 108.9 kB to 24.7 kB
measured
Dollars are estimates. Every dollar value comes from each model's public price table, applied to each request. It is not the invoice. Total measured from 15/08 to 14/11: US$ 29,615.
How to read the marks
- measured
- From our token telemetry, the API, git or GitHub.
- estimated
- A calculation, a counterfactual or a hypothesis.
- inferred
- A deduction made from measured values.
Hatched bars mark values that are inferred, estimated or partial. Solid bars are measured.
Before measuring the saving, we validate the ruler
We found and corrected two counting errors that inflated usage (2.2× and 2.15×). All numbers on this page use the corrected ruler.
Cost: our own per-request telemetry, converted into dollars by the public price table. It is not the invoice.
Charts, each with its data table
Starting context of each session
The context a session already carries at its first request: typical value in tokens, all sessions, per period.
- Main session
- Sub-agents
- After the reorganisation
After the reorganisation, in the .NET library the starting context of sub-agents fell from 199k to 131k (−34%, first 5 measurements). measured
Show the data table
| Period | .NET | SvelteKit | Python | Rust | Android | Administration | All sessions |
|---|---|---|---|---|---|---|---|
| 15/08 to 13/09 | — | — | 82k / 79k | — | — | — | 105k / 91k |
| 14/09 to 13/10 | 167k / 168k | 107k / 127k | 73k / 94k | 50k / 81k | — | 85k / 92k | 77k / 87k |
| 14/10 to 12/11 | 180k / 199k | 131k / 149k | 85k / 100k | 81k / 90k | 98k / 99k | 106k / 114k | 86k / 101k |
| 13 and 14/11 | — / 131k (n=5) | 153k / 126k (n=2) | — / 87k (n=2) | — | — / 112k (n=1) | 148k / 99k | 105k / 95k |
measured Study §2.4. Cells show main session / sub-agents, with the sample size where the study prints it.
Fixed load of each session
The fixed weight every session carries, in kB, at four moments.
- Fixed load
The first reduction came undone in ~54 days. measured
It fell from 108.9 kB to 24.7 kB (−77%). The current one has a guard to hold. measured
The columns are steps, not a time axis.
Show the data table
| Step | kB |
|---|---|
| Before the first reduction | 119.5 kB |
| After the first reduction (19 and 20/09) | 58.9 kB |
| About 54 days later | 108.9 kB |
| After the reorganisation (13/11) | 24.7 kB |
measured Study §1.
What changed
We reorganised how sessions use agents, models and instructions, always measuring before and after and reverting what cost quality. The results are in the cards above.
Four lessons
-
Validate the ruler before measuring the saving.
A saving measured with the wrong ruler is worth nothing.
-
Volume pays more than price.
Cutting what was done in excess weighed more than changing supplier or model.
-
An optimisation without a guard regresses.
The first reduction came undone in ~54 days; the second has a guard (−77%).
measured -
Reverting is also a performance decision.
We never trade quality for tokens.
Methodology and limits
How the study was measured and where it stops.
Main session versus sub-agents, per week
Weekly spend in USD, W38 to W46. Part of the work moved to the main session, so the net effect is smaller than the sub-agent line alone. Axes start at zero; selected bars are labelled and the table has every value.
- Main session
- Sub-agents
- Partial week (until 14/11)
- A W39 · Change A
- B W40 · Change B
- C W42 · Change C
- D W44 · Change D
Sub-agents only: −66% in two weeks, from US$ 2,564 to US$ 868 a week. Net total: −30%, from US$ 3,530 to US$ 2,477 a week. measured
Sub-agents: US$ 2,564 → US$ 868 a week (−66%). measured
Show the data table
| Week | Main session | Sub-agents | % sub-agents | Event |
|---|---|---|---|---|
| W38 (14/09) | US$ 1,562 | US$ 1,621 | 51% | |
| W39 (21/09) | US$ 1,217 | US$ 2,255 | 65% | Change A |
| W40 (28/09) | US$ 966 | US$ 2,564 | 73% | Change B |
| W41 (05/10) | US$ 1,599 | US$ 1,241 | 44% | |
| W42 (12/10) | US$ 1,609 | US$ 868 | 35% | Change C |
| W43 (19/10) | US$ 1,366 | US$ 766 | 36% | |
| W44 (26/10) | US$ 1,734 | US$ 1,382 | 44% | Change D |
| W45 (02/11) | US$ 1,287 | US$ 1,127 | 47% | |
| W46 (09/11), Partial week (until 14/11) | US$ 1,971 | US$ 1,226 | 38% |
measured Study §2.2.
Most expensive model, weekly cost
Weekly cost of the most expensive model, W38 to W46, in USD. It fell sharply after the peak week.
- Most expensive model
- Partial week (until 14/11)
- C W42 · Change C
In W41 the most expensive model cost US$ 973. measured
It fell from US$ 973 in W41 to US$ 59 in W46, the latest measured week. measured
Show the data table
| Week | Most expensive model |
|---|---|
| W38 (14/09) | US$ 346 |
| W39 (21/09) | US$ 7 |
| W40 (28/09) | US$ 2 |
| W41 (05/10) | US$ 973 |
| W42 (12/10) | US$ 113 |
| W43 (19/10) | US$ 13 |
| W44 (26/10) | US$ 88 |
| W45 (02/11) | US$ 32 |
| W46 (09/11), Partial week (until 14/11) | US$ 59 |
measured Study §2.3.
- The data start on 15/08; before October, attribution by type of work is incomplete.
- The weekly comparison does not normalise by the volume of work.
- Some recent measurements have only a few days of data.
- Costs of products running in production are outside the study.
Next update on 21/11/2026 with new measurements.