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.

    measured
  • Most 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

    measured
  • Fixed 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.

105k91k15/08 to 13/0977k87k14/09 to 13/1086k101k14/10 to 12/11105k95k13 and 14/11
  • 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
Starting context of each session
Period.NETSvelteKitPythonRustAndroidAdministrationAll sessions
15/08 to 13/09——82k / 79k———105k / 91k
14/09 to 13/10167k / 168k107k / 127k73k / 94k50k / 81k—85k / 92k77k / 87k
14/10 to 12/11180k / 199k131k / 149k85k / 100k81k / 90k98k / 99k106k / 114k86k / 101k
13 and 14/11— / 131k (n=5)153k / 126k (n=2)— / 87k (n=2)—— / 112k (n=1)148k / 99k105k / 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.

119,5 kBBefore the first reduction58,9 kBAfter the first reduction19 and 20/09108,9 kBAbout 54 days later24,7 kBAfter the reorganisation13/11
  • 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
Fixed load of each session
StepkB
Before the first reduction119,5 kB
After the first reduction (19 and 20/09)58,9 kB
About 54 days later108,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

  1. Validate the ruler before measuring the saving.

    A saving measured with the wrong ruler is worth nothing.

  2. Volume pays more than price.

    Cutting what was done in excess weighed more than changing supplier or model.

  3. An optimisation without a guard regresses.

    The first reduction came undone in ~54 days; the second has a guard (−77%).

    measured
  4. 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.

W3814/09W3921/09A9662.564W4028/09BW4105/101.609868W4212/10CW4319/10W4426/10DW4502/111.9711.226W4609/11partial
  • Main session
  • Sub-agents
  • Partial week (until 14/11)
  1. A W39 · Change A
  2. B W40 · Change B
  3. C W42 · Change C
  4. 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
Main session versus sub-agents, per week (USD, estimated from public prices)
WeekMain sessionSub-agents% sub-agentsEvent
W38 (14/09)US$ 1.562US$ 1.62151%
W39 (21/09)US$ 1.217US$ 2.25565%Change A
W40 (28/09)US$ 966US$ 2.56473%Change B
W41 (05/10)US$ 1.599US$ 1.24144%
W42 (12/10)US$ 1.609US$ 86835%Change C
W43 (19/10)US$ 1.366US$ 76636%
W44 (26/10)US$ 1.734US$ 1.38244%Change D
W45 (02/11)US$ 1.287US$ 1.12747%
W46 (09/11), Partial week (until 14/11)US$ 1.971US$ 1.22638%

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.

346W3814/097W3921/092W4028/09973W4105/10113W4212/10C13W4319/1088W4426/1032W4502/1159W4609/11partial
  • Most expensive model
  • Partial week (until 14/11)
  1. 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
Most expensive model, weekly cost (USD, estimated from public prices)
WeekMost 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.

  1. The data start on 15/08; before October, attribution by type of work is incomplete.
  2. The weekly comparison does not normalise by the volume of work.
  3. Some recent measurements have only a few days of data.
  4. Costs of products running in production are outside the study.

Next update on 21/11/2026 with new measurements.