AI token usage

This page records how many tokens the AI tools I use for my mathematical work report that I have used. For how I use these tools, see AI use in my research.

The figures are extracted automatically from my local logs by an AI agent; I do not enter or check individual counts by hand. At present, it is unclear to me what the standards around disclosure of AI usage should be, and whether the presentation here is suitable. Given the wide range of opinions about AI usage in mathematics, I think that clear transparency about token usage is nevertheless helpful.

Last updated2 November 2026
Recorded period15 February 2026–2 November 2026
Fresh input989 million tokens
Cached input30 billion tokens
Generated output135 million tokens

Selected projects and activities

When usage can be assigned to a specific project or recurring activity, the table gives a more detailed breakdown. These figures should be broadly representative, but may be slightly too low because some individual interactions could not be matched reliably to a project. I expect to add further projects over time.

Project or activityFresh inputCached inputGenerated output
Synthetic category theory (formalization)247M12.8B42.8M
Synthetic categories in CaTT260M5.74B32.2M
Synthetic category theory106M2.87B12.7M
Stable Homotopy Theory and Higher Algebra131M2.82B15.7M
Webpage maintenance26.4M1.08B3.07M
Gestalten28.2M481M3.54M
Lectures on Higher Topos Theory13.5M340M2.15M
Parametrized spans11.5M247M1M
Hammock localization11.5M234M2.47M
Universality of Span 2-categories4.79M65.5M513K
Global spaces and the homotopy theory of stacks1.77M45.1M185K
Relative Rezk nerve1.18M7.18M115K
Twisted ambidexterity274K1.28M16.1K

These figures were last updated on the date shown above and do not update automatically. The exact figures are also available in JSON format.

How to read these figures

Fresh input is input processed without using a cache. Cached input is context that the provider reports as having been read from a cache. Generated output includes reasoning tokens when these are reported separately. I list these three categories separately because they may not require the same amount of computation.

These figures show how many tokens I have used and of which kind. They come from counts reported by the tools, not from measurements of energy use or emissions. I do not translate them into carbon or water figures because I do not have the necessary information about the models, hardware, and data centres involved.

Measurement method

The figures come from token counts stored in local Codex and Claude Code transcripts. When this page is updated, an AI agent starts a Python script that first checks for new chats, including archived and compressed transcripts, and then reads the counts automatically. Codex desktop chats follow their current project assignment; other transcripts are assigned by their original working directory. Explicit classifications can override either rule. The agent does not enter the individual counts by hand. The script also does not try to infer token counts from the prompts or from the length of the text.

Codex usually keeps a running total, while Claude Code records usage separately for each assistant response. For Codex, the script uses only the last total before the count starts again. For Claude Code, it counts each response once and uses only the most recent copy of a resumed session. It also ignores duplicate transcripts made for subagents.

The figures do not include transcripts deleted before collection or AI use in applications from which the script cannot obtain token records. Each session is assigned to one project as a whole. Moving a Codex chat to another project reassigns its whole history on the next update. If a session concerns several projects, the logs do not provide a reliable way of dividing its tokens between them.