Mikie / Field notes

What Mikie saves in Codex: 493 measured sessions

We ran the same coding tasks through Codex with and without Mikie: same model, same reasoning level, every change checked by hidden tests. On everyday Python changes Mikie cut the cost by 68 percent. Here is everything we measured, including where it falls short.

Benchmark report12 min read
Select relevant code from a repository, then use it for a focused coding task.REPOSITORYFOCUSED TASK
Less to read. More to work with.

Cost saved per run, Codex with Mikie against Codex on its own, same tasks. 245 of 247 attempts, with and without Mikie, passed the hidden tests.

How we tested

Each task is a real change from an open-source project's history: the agent gets the repository as it was just before the change, plus the change's description, and has to make it. Tests from the real change are kept hidden from the agent and decide whether the attempt passed.

  • The same agent every time: Codex CLI (codex-cli 0.160.0) with gpt-6.1-sol at xhigh reasoning. The only difference between the two sides is whether Mikie is installed.
  • Projects: click and httpx (Python), remeda (TypeScript), anyhow and thiserror (Rust). Two of the large tasks come from Mikie's own codebase, so we show only their totals.
  • Each task ran at least twice without Mikie and three times with it. Cost per run is the sum of each task's average cost.
  • Cost is calculated from the token counts Codex reports, at list price per million tokens: fresh input $2.00, cached input $0.10, output $10.00. It is not taken from an invoice.
  • Three task sets (16 Python, 10 TypeScript, 10 Rust) were written after Mikie's tested configuration was frozen and are held out. The 8 Python tasks and the 4 large changes were used while tuning it.
  • The range next to each saving is a 90% interval: we resampled each task's attempts many times and kept the middle 90% of the results.

One warning before the numbers. The cost of running Codex on its own drifts between batches run at different times: the same 8 tasks cost from $1.30 to $1.81 per run across 5 batches. A control run that was effectively Codex on its own (an extra tool was configured but never used) came out 14% cheaper than the batch beside it, by chance. So treat a gap of a few points between separate batches as noise. Every comparison below uses runs from the same batch unless it says otherwise.

Results by kind of task

TasksCountWithout MikieWith MikieSaved90% rangePassed
Python, small changesclick · held out16$2.84$0.9268%66% to 69%32/32 · 48/48
Python, small changes (second set)click · tuned on8$1.58$0.5068%66% to 71%24/24 · 24/24
Python, large changeshttpx and Mikie's own codebase · tuned on4$2.70$1.2952%50% to 54%7/8 · 11/12
TypeScriptremeda · held out10$4.20$1.7758%55% to 61%20/20 · 29/29
Rustanyhow and thiserror · held out10$1.45$0.6754%50% to 57%20/20 · 30/30

Cost per run of the whole task set. Passed shows attempts without Mikie, then with Mikie. Held out: tasks written after Mikie's tested configuration was frozen. Tuned on: tasks used while tuning it.

On the 3 held-out task sets, which Mikie was never tuned on, it cut the cost by between half and two thirds: Python 68%, TypeScript 58%, Rust 54%. The second Python set and the large changes were used while tuning Mikie, so read their figures as a check, not as independent evidence. Quality held: Mikie's attempts passed the hidden tests at least as often as Codex on its own in every set.

Where the savings come from

A coding agent pays for three things: fresh input (new text it reads), cached input (text it already read, sent again on each later turn at a tenth of the price) and output (what it writes and reasons). Average cost per task, split three ways:

Python, small changes68% less
Without Mikie$0.177
With Mikie$0.058
Python, small changes (second set)68% less
Without Mikie$0.198
With Mikie$0.063
Python, large changes52% less
Without Mikie$0.674
With Mikie$0.322
TypeScript58% less
Without Mikie$0.420
With Mikie$0.177
Rust54% less
Without Mikie$0.145
With Mikie$0.067

Each pair is drawn against its own run without Mikie. Hover or tap a segment for its figures.

Fresh inputCached inputOutput
TasksTool callsTool outputFresh tokensOutput tokensMinutes
Python, small changes22.3 → 5.4109 → 17 KB41.0K → 13.9K5.2K → 2.1K4.3 → 1.8
Python, small changes (second set)21.3 → 5.7127 → 17 KB45.6K → 14.7K5.5K → 2.2K5.5 → 2.3
Python, large changes46.1 → 17.3375 → 80 KB105.8K → 55.6K24.1K → 14.3K15.2 → 8.4
TypeScript33.6 → 12.5276 → 49 KB77.6K → 34.7K14.6K → 7.5K11.3 → 6.0
Rust19.6 → 5.182 → 17 KB37.2K → 17.7K4.3K → 2.4K3.7 → 2.1

Average per task, without Mikie → with Mikie. Tool calls are searches, file reads, commands and edits.

The saving comes from reading less. With Mikie the agent starts from the code the task needs, so on small Python changes it made 5.4 tool calls instead of 22.3 and pulled 17 KB of tool output instead of 109 KB. Less reading means less fresh input, and much less cached input, because everything read early is sent again on every later turn. Output falls least: the agent still has to write the change. It also finished faster, in 1.8 minutes per task instead of 4.3.

How close to perfect

To find the ceiling, we ran the same 8 tasks with perfect context: the agent was handed exactly the code each change needed. That is a practical ceiling for any context tool. Against one shared baseline ($1.35 per run without Mikie):

Perfect context (the agent is handed exactly the code it needs)70%
Mikie today63%
Tests from uncommitted changes shown up front59%
Same build with that feature off58%
A larger context pack up front49%

Perfect context saved 70%; Mikie saved 63%. Of the money there was to save, Mikie already captures 90%. What remains is a handful of lookups: 5.7 tool calls per task against 2.1 with perfect context. The agent's output was the same in both, so the last stretch is about handing over the right code even more precisely, not about the writing.

Small tasks and large tasks

Does Mikie carry a fixed overhead that eats into cheap tasks? We checked every task's saving against its cost without Mikie. It does not: across 48 tasks, cost with Mikie is close to a straight 44% of the cost without it, with no fixed part worth measuring.

$0.00–$0.15 a task (18)59%
$0.15–$0.30 a task (19)63%
$0.30–$0.60 a task (6)65%
Over $0.60 a task (5)54%

Saving by the task's cost without Mikie. Number of tasks in brackets. Hover or tap a bar for its figures.

The most expensive tasks save least. On large changes the agent reads big files in small slices, again and again. We tested a different reading rule (read a needed file whole, once) on both kinds of task:

Reading ruleLarge tasksSmall tasks
Current rule (small slices)52% · 17.3 calls66% · 5.8 calls
Read needed files whole59% · 7.9 calls63% · 4.6 calls

Saving against Codex on its own in the same batch, and tool calls per task.

Reading whole files helps large tasks and slightly hurts small ones, where slices are enough. So we are changing Mikie to pick the reading rule from the size of the task when it starts. Output is the other limit on large changes: the agent has more to write and reason about, and no context tool removes that.

TypeScript and Rust

Mikie saved less in TypeScript and Rust than in Python. The data points to how much Mikie tells the agent up front. For Python, Mikie hands over the tests a change touches together with the code they exercise. For TypeScript and Rust it hands over a shorter list of likely files.

LanguageContext Mikie gaveTool callsSaved
Python6.2K characters22.3 → 5.468%
TypeScript2.0K characters33.6 → 12.558%
Rust2.8K characters19.6 → 5.154%

Average per task. Tool calls without Mikie → with Mikie.

In TypeScript the thinner start shows directly: the agent still made 12.5 tool calls per task to find its way. In Rust it made few calls, but its fresh input and output fell less than in Python. We are building the same test-aware start for TypeScript and Rust that Python has, and will publish the rerun.

What we tried that did not help

  • Tests from uncommitted changes shown up front: 59% saved (57% to 62%). No measurable change on these tasks.
  • Same build with that feature off: 58% saved (56% to 61%). Baseline for the line above.
  • A larger context pack up front: 49% saved (45% to 52%). Worse: the extra context cost more than it saved. Dropped.
  • A reminder mid-task to stop reading in slices: 48% saved on three of the large tasks, no better than the current rule. Codex does not pass a hook's mid-task message on to the model, so the reminder never arrived.

Every task

Average cost per attempt for each task, without and with Mikie.

Python, small changes · click · 16 tasks · held out · 68% saved
ChangeWithoutWith MikieSaved
Fix race condition on `KeyboardInterrupt` arriving in `Command.main()`$0.138$0.06752%
Add built-in PowerShell shell completion support$0.376$0.12068%
Fix deprecated label formatting$0.083$0.04052%
Fix broken fish completion and multiline help string$0.217$0.06968%
handle empty bytes in echo$0.114$0.02776%
Fix `HelpFormatter.write_usage` producing spurious characters$0.135$0.02879%
Fix dual-option arbitration to respect explicit defaults$0.320$0.13259%
Implement a regex-based solution to hide hidden input$0.193$0.04477%
fix: show custom error message in prompt with hide_input=True$0.156$0.04770%
Split string values from `default_map` for multi-value parameters$0.136$0.03773%
Auto-detect `type=UNPROCESSED` when `flag_value` has non-basic types$0.206$0.04977%
Support show_default string in prompts$0.119$0.04562%
Reconcile default value passing and default activation$0.229$0.06472%
Treat `UNSET` in a `default_map` as absent$0.127$0.06549%
Document and fix command string sanitizing with `shlex.split`$0.172$0.05369%
Hide UNSET values in Context.invoke$0.121$0.03472%
Python, small changes (second set) · click · 8 tasks · tuned on · 68% saved
ChangeWithoutWith MikieSaved
Add `Parameter.spec` and deprecate `human_readable_name`$0.254$0.08865%
Deprecate a parameter name that Click 9.0 will refuse or lower case$0.250$0.08168%
Fix short help abbreviation$0.139$0.03575%
Add `Option.get_help_spec` to return the option's help left part$0.124$0.03969%
Forwards all user's parameters set in `PAGER`$0.211$0.06171%
Refactor pager stream handling; drop text/binary branching$0.291$0.11760%
Preserve declaration order of help option names$0.133$0.03375%
Warn when an argument name collide with other parameters$0.181$0.04874%
Python, large changes · httpx and Mikie's own codebase · 4 tasks · tuned on · 52% saved
ChangeWithoutWith MikieSaved
Graceful upgrade path for 0.28. (#3394)$0.483$0.08982%
Drop `rfc3986` requirement. (#2252)$0.413$0.19353%
Mikie codebase task 1$0.839$0.38654%
Mikie codebase task 2$0.961$0.61836%
TypeScript · remeda · 10 tasks · held out · 58% saved
ChangeWithoutWith MikieSaved
fix(isNot): resolve trivial fixed-value conditions (#1441)$0.245$0.19720%
fix(isNot): allow widening type predicates (#1423)$0.610$0.43529%
fix(filter, groupByProp): support type predicates that aren't subtype...$0.448$0.16064%
fix(zip,zipWith): handle data-last with empty param (#1420)$0.110$0.07333%
fix(prop): Handle index signatures correctly (#1418)$0.257$0.13448%
fix(map, mapWithFeedback): Correct types through `NoInfer` (#1368)$0.212$0.10153%
fix(only): typing issue with union types (#1354)$0.196$0.05970%
feat(hasProp): add `hasProp` (#1344)$0.902$0.21177%
fix(truncate): handle primitive inputs (#1279)$0.278$0.09964%
feat(isEmptyish): a wider variant of `isEmpty` that accepts any input...$0.943$0.30168%
Rust · anyhow and thiserror · 10 tasks · held out · 54% saved
ChangeWithoutWith MikieSaved
Parse raw address expression syntax$0.182$0.06067%
Keep track of nested turbofish depth$0.155$0.07750%
Delete support for raw identifiers inside format string$0.167$0.06760%
Implied bounds for Display and Error impl$0.348$0.14359%
Consistently use `quote!` when emitting 'source'$0.110$0.04856%
Remove incorrect detection of simple fmt cases$0.100$0.05049%
Accommodate trailing comma in shorthand expansion$0.094$0.06135%
Accept `.var` shorthand inside of parens$0.099$0.05347%
Implement Display for enums$0.089$0.05736%
Error implementation for enums$0.112$0.05749%

Limits of this report

  • One client, one model and one reasoning level. We have not measured Claude Code in this report.
  • This report compares Codex with and without Mikie only. Comparisons with other tools will come with their own public method page first.
  • 493 measured sessions over 48 tasks. That is enough to separate large differences, not small ones.
  • Cost is list price calculated from token counts, not what any customer was billed.
  • Tasks are changes with hidden tests. Work without tests, or work described only in words, may behave differently.
  • Mikie 1.1.131 (its hooks and agent rules; the runs used the build made just before that release). The reading-rule and language changes described above were not part of it.
  • Your repository is not our benchmark. Shadow mode measures what Mikie would save on your own work before it changes anything.

Sources: Every figure on this page is generated from the run ledgers of the October 2026 Codex benchmark; the Mikie results are also published as evidence records, one per task family. Evidence records: evidence-codex-python-small-16-2026-10-07, evidence-codex-python-small-8-2026-10-07, evidence-codex-python-big-4-2026-10-07, evidence-codex-typescript-10-2026-10-07, evidence-codex-rust-10-2026-10-07. Run ledger digest: sha256:9840c6d43e44b752497fe0202f56fd5442448c51e124c34dfdd2950afab7098d.

Try it on your own repository.

Give your agent the context it needs, then see how your next session compares.