Planting an Apple Tree for Claude Code

This version was translated with AI from the original article.

Why I Built This

I've been playing around with Claude Code's mod feature lately. I kept finding myself wanting to check my usage stats, but checking them constantly got annoying, so I whipped up an apple tree mod that turns tracking usage into a process of blooming and bearing fruit.

The Tree and the Fruit

The whole tree corresponds to your weekly quota. The more you use it during the week, the bigger the tree grows, progressing through sprouting, sapling, sprouting leaves, lush foliage, and finally blooming into flower.

Each fruit corresponds to a 5-hour window. The fruit for the current window grows and changes color along with your usage: tiny pink flower (0%) → small light-green fruit (<30%) → green fruit (30–70%) → orange fruit (70–90%) → red apple (≥90%, ripe!).

When the window resets, the fruit freezes in place at its final percentage and stays on the tree. If you didn't use it at all during the entire 5 hours, no fruit will appear on the tree. After the weekly reset, the old tree is moved into the "orchard," and the new week starts growing from seed all over again.

A week with the tree: growing leaves, fruit ripening, and starting fresh from seed in a new week

A week with the tree: growing leaves → blooming and bearing fruit, with fruit ripening after hitting 95% in a 5-hour window → starting fresh from a seed in the new week.

Where to See It

Typing /tree opens the side panel. On desktop and mobile it displays illustrations, while in the terminal it shows ASCII art.

There's a quick summary line in the status bar: 🍎4 · 5h 42% · 周 37%. Whenever an apple ripens or the tree reaches a new stage, the system pops up a notification.

The apple tree in the status bar

Status bar: 8 apples grown, 66% used in this 5-hour window, 28% used this week.

The data comes directly from the quota readings Claude Code pushes after every reply—the exact same numbers you see in settings. Your tree's state is stored only on your local machine and never leaves your computer. This mod requires a Pro or Max subscription.

A Few Thoughts

I wanted to turn abstract percentages into something visible and alive that actually grows. I used a tree and its fruit to match the two rhythms of a week and a 5-hour window, hoping usage would feel like harvesting something you've grown bit by bit.

I hope everyone gets plenty of apples to eat every week!