Desktop tool
Agent Tokenlike
A tiny pixel-art pet that lives on your Windows desktop and descends a roguelike dungeon powered by the tokens you spend in Claude Code.
The problem
I spend a good part of my day in Claude Code and wanted to see my token usage in a way that wasn’t just another panel of numbers. The desktop “pets” I found wanted internet access or changed Claude Code’s settings, and I didn’t want to hand that over to a third-party app.
The solution
Agent Tokenlike is a tiny pixel-art pet that floats in the corner of the screen. Every token spent in Claude Code becomes energy, and every 100k energy moves the pet one room deeper into a roguelike dungeon: monsters, hordes, chests (sometimes a mimic), traps, shops, altars with pacts and, every five floors, a boss.
If the pet dies, it leaves a tombstone in the graveyard with the floor, the killer and the items from that run, and a new run begins. Not using Claude Code never punishes you: the pet just rests and falls asleep.
How it works
- Local and minimal reading: the app reads the
.jsonllogs Claude Code already writes on the machine and uses only the token count and time of each response. Prompts and responses are never stored or shown. - No network: no internet access, login, telemetry or hooks. Progress lives in a plain JSON file you can open and inspect.
- Round-based combat: speed, critical hits and elemental effects (burn, poison, shock and freeze), with reactions when two effects combine.
- 100 items that show on the pet: each item changes the rules of the run and also the character’s look (objects in hand, animated flames, auras, little helpers floating around).
- 20 unlockable heroes earned through achievements, each with a passive trait. New heroes can be made with PNGs and a
character.json, or with a spritesheet. - Optional usage bars: if the user turns on the statusline script, the pet shows the official usage for the 5-hour session and the week, with when each one resets.
Under the hood
- Pure Python with the standard library (tkinter), no dependencies to install.
- Transparent overlay on Windows, with a tray icon and a start-with-Windows option.
- Executable packaged with PyInstaller for people without Python.
- Automated tests for log reading, the interface, save migration, translations and clipped text, plus a 2,000-run simulator used to balance the difficulty.
Videos
In practice
Technologies
- Python
- tkinter
- PyInstaller
- Pixel art
- Claude Code
Result
- Released as open source (MIT license), with a Windows executable that needs no Python installed
- Interface in Brazilian Portuguese and English
- 20 unlockable heroes, 100 items and a synergy system between them
- Automated test suite, including a simulation of thousands of runs for balancing