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.
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 activity | Fresh input | Cached input | Generated output |
|---|---|---|---|
| Synthetic category theory (formalization) | 247M | 12.8B | 42.8M |
| Synthetic categories in CaTT | 260M | 5.74B | 32.2M |
| Synthetic category theory | 106M | 2.87B | 12.7M |
| Stable Homotopy Theory and Higher Algebra | 131M | 2.82B | 15.7M |
| Webpage maintenance | 26.4M | 1.08B | 3.07M |
| Gestalten | 28.2M | 481M | 3.54M |
| Lectures on Higher Topos Theory | 13.5M | 340M | 2.15M |
| Parametrized spans | 11.5M | 247M | 1M |
| Hammock localization | 11.5M | 234M | 2.47M |
| Universality of Span 2-categories | 4.79M | 65.5M | 513K |
| Global spaces and the homotopy theory of stacks | 1.77M | 45.1M | 185K |
| Relative Rezk nerve | 1.18M | 7.18M | 115K |
| Twisted ambidexterity | 274K | 1.28M | 16.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.