What Notch Hero reads from your AI agents
Short version: if you connect Claude Code or Codex, Notch Hero counts the output tokens in the logs they already keep on your Mac. It keeps the counts, never your prompts, answers or code, and it sends nothing anywhere.
Connecting an agent is optional. The game is complete without it, and nothing on this page happens until you press Connect in the Spirits tab.
Which folders
- Only the folder you pick yourself, one per agent: usually
~/.claudefor Claude Code and~/.codexfor Codex. You pick it in the standard macOS folder window, from the panel's Spirits tab > Connect. - The grant is read-only. Notch Hero runs in the macOS sandbox, so it can open only the folders you granted, and it never writes to them.
- Notch Hero checks that the folder is the agent's: it must contain
projects(Claude Code) orsessions(Codex). Otherwise nothing is saved. - Disconnect, in the same place, removes the grant at any time, along with the read positions described below.
Which files
- Claude Code: the
.jsonlfiles anywhere underprojects/, subagent logs included. - Codex: the
rollout-*.jsonlfiles undersessions/andarchived_sessions/. - Only files changed today are opened. Notch Hero remembers how far it read each one, so it reads only what was added since.
- It reads when the app starts, when your Mac wakes, when you open the panel and when the folder changes (at most once every 10 seconds), plus a check every 5 minutes that skips files that did not change.
Which fields
A line is decoded only if it contains "usage" (Claude Code) or token_usage or token_count (Codex). Every other line is skipped without being decoded. From a line that is decoded, Notch Hero takes only:
- The output token count:
message.usage.output_tokenson Claude Code'sassistantlines; for Codex,output_tokenson a token usage record, orinfo.last_token_usage.output_tokenson atoken_countevent. Input, cache and reasoning counts are not added. - An id, to avoid counting a response twice:
message.idwithrequestIdfor Claude Code; for Codex, the record's own id, or else a hash of the log's file name with the session's running token total or the line's position in the file. - The timestamp, to tell which day the tokens belong to.
- The line's
type, only to recognize a token record.
The line itself is dropped as soon as these are taken.
What is never decoded or kept
Your prompts, the agents' answers, code, file names inside the logs, project names, commands, costs, model names and account details. The reader's decoding types have no field for any of them, so they cannot be kept by mistake.
What is stored, and where
Everything lives in the app's sandbox container on your Mac, ~/Library/Containers/com.notchhero.NotchHero/:
agents.json, next to the save: for each agent, today's output token total and the time of the last tokens; for each log file read today, how far it was read (a hash of its path instead of the path, the file's size, modification date and system file number, and a byte offset); and today's record ids with their counts. It is only a cache: deleting it makes the next read count today's files again and reach the same totals.- The save: per agent, today's output tokens, the mana balance and the time of the last tokens, plus which spirits have awakened.
- The grant: the macOS bookmark for the folder you picked, in the app's preferences. Disconnect deletes it.
Notch Hero does not write anything it reads from a log to its own logs or to the console.
What is sent
Nothing. What the app reads from your agents stays on your Mac. The app goes online only to activate your license key, once per Mac, and to check for updates if you allow it; neither sends anything about your agents. There is no account and no analytics in the app.
How mana is computed
- A day's mana is 100 × (1 − e−tokens / 30,000), on the output tokens of the day summed over your agents, so each extra token is worth a little less.
- You earn at most 100 mana a day, whether from one agent or two.
- Unspent mana carries over to later days, but the balance never goes above 100. A spirit spends 1 mana per minute, and only while your hero fights during focus.
How to check
- See the app's permissions with
codesign -d --entitlements - /Applications/NotchHero.app. You will find the sandbox, read-only access to folders you select, and the network permission the app uses only to activate and to check for updates. - Open
agents.jsonin the container folder above: it is plain JSON, and holds only the counts, ids, dates and positions listed here. - Disconnect any time in the Spirits tab, or delete the container folder to remove everything the app keeps.
For the rest of what the app and this site keep, including location for the sky, see the privacy page.
Last updated: October 27, 2026. Applies to Notch Hero 0.8.0 and later.