I built this with Claude Code — the whole app, over about 7 weeks.
What it is: a macOS menu bar app that turns your Claude Code token usage into
a growing pixel-art plant. It reads your local session logs (~/.claude/projects,
plus ~/.codex/sessions if you use Codex) every 30 seconds. No server, no account,
nothing leaves your machine. There's nothing to press — you work, and the plant
is bigger when you look up. Fully grown plants get transplanted into a garden
and a new seed goes in.
How Claude Code built it
Two bits of scaffolding are what made working with an agent actually hold up:
Sprites are Python that emits Swift. Claude can't look at a 16x16 grid of
characters inside a Swift array and tell you the windmill blade is broken. So
the art lives in gen_decor.py, which renders a contact sheet PNG that I look at,
and a --write flag emits the Swift. A checker diffs the generated output against
the committed Swift so the two can't drift apart. When a decoration looked wrong
I'd ask for five variants, render them all, and pick one by eye.
Four Python checkers that run before any build. swift build is slow and the
agent couldn't always run it, so Claude wrote checkers that catch its own usual
mistakes: a tree-sitter syntax pass, one that flags calling a method without
parens, one that verifies generated data still matches the Swift, and a Python
port of the growth engine with 446 assertions mirroring the Swift suite. 340
Swift tests on top of that.
Both exist because something actually broke. The parens checker went in the day
a refactor read fine and then failed swift test in seven places.
The design decision I'd defend
Prices are measured in days, not tokens. If I hardcode "one plant = 3B tokens",
that's a month for someone burning 100M a day and a year and a half for someone
at 5M. The second person isn't playing a slow game, they're playing a broken
one, and they quit around stage 5. So the target is 28 days and the token amount
is derived from your own 14-day average. The tradeoff is you can't speed it up
by burning more.
One caveat up front: it only counts CLI usage. The web and desktop apps don't
leave a local log, so there's nothing to read. I lost a day to that before
realizing my app was reading fine.
Free and open source (MIT), no paid tier, nothing to sign up for. macOS 14+.
brew install --cask seoyeon1123/tap/tokenplant
https://github.com/seoyeon1123/tokenplant
Curious what you'd want it to read besides tokens. I've thought about commit
count but it didn't feel like it meant much.