Benchmarks & research

What we tested, what we found, and what we did not

We ran 153 real agent sessions before writing this page. Some results favour TokenKit, some do not, and both are here. Nothing on this page has been audited by a third party.

At a glance

153agent sessions runClaude Code with the Fable model, four rounds
45 / 45tasks correctfinal round, checked by independent programs
27 / 27sessions used TokenKit unpromptedlast two rounds; no prompt mentioned it
0scripts written by the agentwith TokenKit, against 8 with conventional tools

The plain summary

TokenKit lets an agent do PDF, OCR, image and video work on a Mac without installing anything else and without writing scripts. Against an agent that already has the usual command-line tools, it is level overall, ahead on long PDFs and behind on scanned PDFs. A general reduction of token use was not demonstrated.

How the tests were run

  • Agent and model: Claude Code 2.1.334 with the Fable model, the same in every session.
  • Sessions: 153, each new and independent; nothing carried over between them.
  • Prompts: identical across conditions. No prompt mentioned TokenKit or any tool.
  • Order: shuffled with a fixed seed inside each repetition.
  • Checking: every answer and every file produced was checked by other programs (ffprobe, pdftotext, Pillow), never by TokenKit.
  • Hardware: one Mac with Apple silicon, macOS 26.
  • Dates: 2 December 2026.
  • Versions: each round froze one version of TokenKit; changes were made only between rounds.
  • Files: synthetic: a 120-page contract, a 12-page scan, 17 images, a 40-second video, a 3,000-line build log.
  • Token figures: the totals the agent reports, most of which are cached context re-read on each turn. They are not a cost.

Final round: against conventional tools

Totals over 15 sessions each. “Conventional tools” is an agent with ffmpeg, poppler, tesseract, cwebp and Python with Pillow installed.

Total tokens

Conventional tools1,389,022
TokenKit1,244,981

Time (seconds)

Conventional tools317
TokenKit242

Turns

Conventional tools47
TokenKit47

Scripts written by the agent

Conventional tools8
TokenKit0

The differences in tokens (−10%) and time (−24%) are inside the variation we saw between identical runs, so we read this as parity, not as TokenKit being better. The difference in scripts is not: with TokenKit the agent wrote none.

By task

Medians of three runs: turns · seconds · total tokens.

TaskConventional toolsTokenKitOutcome
Long PDF3 turns · 21.2 s · 86,5852 turns · 8.8 s · 61,125ahead
Scanned PDF2 turns · 7.2 s · 62,4573 turns · 8.0 s · 82,869behind
Image batch3 turns · 33.3 s · 90,0393 turns · 32.7 s · 94,565level
Video3 turns · 24.6 s · 86,3773 turns · 18.9 s · 61,543level
Build log3 turns · 15.0 s · 88,1494 turns · 11.2 s · 93,471no gain

Long PDF

The one task where TokenKit was ahead in every run: 8.8 s against 21.2 s (about 58% less time) and 61,125 against 86,585 tokens (about 29% fewer). Three runs per condition, one document.

Against the previous version of TokenKit

Same tasks, same prompts. This compares TokenKit with itself, after its tools began to accept whole goals instead of single steps.

Previous versionGoal-based versionChange
Total tokens1,762,3611,244,981−29.4%
Turns7347−35.6%
Time311 s242 s−22.2%
Calls to TokenKit4521−53.3%
Tasks correct15 of 1515 of 15same

All three rounds, including what went wrong

RoundQuestionSizeResult
Round 1Token saving on developer tasks72 sessions, two versionsNot shown. In the first version TokenKit used more tokens in all four categories; an instruction telling agents to prefer it made them use it where a shell command was shorter. Hooks never fired.
Round 2Capability against a stock Mac and an equipped Mac36 sessions241 s with TokenKit against 443 s on a stock Mac, with no scripts instead of 21. Level with an agent that had ffmpeg, poppler and tesseract, at 61% more tokens.
Round 3Goal-based calls against the previous version and conventional tools45 sessionsTurns down from 73 to 47 against the previous version. Level with conventional tools overall; ahead on long PDFs; behind on scanned PDFs.

Results against us

  • Token saving on ordinary developer tasks: not shown, and worse than no tool at all when agents were told to prefer TokenKit.
  • Scanned PDFs: an agent with tesseract was faster and used fewer tokens.
  • Build logs: no gain over a plain grep.
  • Hooks that advise the agent: never triggered in 24 sessions.
  • Two of our own answer checks were wrong in the second round and were corrected afterwards; the original verdicts are kept with the data.

What held up

  • Every task was completed correctly in the last two rounds (81 of 81 sessions).
  • Agents chose TokenKit without being asked in 27 of 27 sessions.
  • No improvised scripts with TokenKit, against 21 on a stock Mac and 8 on an equipped one.
  • On a Mac without extra software: 241 s against 443 s for the same four tasks.

Limits of this research

  • Three runs per task and condition. Differences of a few percent are inside the spread we saw: the same task, unchanged, varied from 57,000 to 140,000 tokens between runs.
  • One model (Fable), one client (Claude Code), one Mac. Other agents may behave differently.
  • Synthetic files, and tasks chosen by us. The last round used the tasks on which earlier problems were found, which favours the new version.
  • The “conventional tools” condition is what was installed on our Mac: ffmpeg, poppler, tesseract, cwebp and Python with Pillow. It had no qpdf, ImageMagick, ocrmypdf or exiftool.
  • No external audit. The raw rows, prompts and checking code are in our repository; a public, sanitised copy is planned.
  • A general reduction of token use was not demonstrated, and we do not claim one.

Software quality

Separate from the agent sessions, these checks run on every change and cost nothing to repeat.

55unit tests
136checks over MCP, each verified by another program
25checks driving the real app
13checks of the sandboxed build

Observed, estimated, hypothesised

  • Observed: everything in the tables above.
  • Estimated: nothing on this page.
  • Hypothesis, untested: that the results hold for other agents, other models, real documents and larger samples.