ClaudeCodeMod

All shelves / Mods / Play

token-tycoon

By matthlh

token-tycoon is a Claude Code play mod by matthlh.

An idle game above the prompt: presses and hired agents earn tokens, and Claude's tool calls and finished turns count too.

Draws

Install

The marketplace name is matthlh.

In Claude Code
/plugin marketplace add matthlh/claude-mods
/plugin install token-tycoon@matthlh
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
7
Last change
2026-10-09

What it can reach

  • Draws in the session
  • Sees tool calls

An idle game above the prompt. A coder sits beside a token. Presses earn tokens, hired agents earn them over time, and the shop multiplies both. The README calls it Cookie Clicker, with the cookie as a token. Every tool call Claude makes counts as a free prompt. Every finished turn starts a frenzy: agents earn 7 times as much for 30 seconds. While you are away, agents keep earning at half pace, up to 4 hours by default, or 8 hours once you buy the WebSearch upgrade, and that pay arrives when you come back. The game shows in every new session, the desktop app included. /tycoon off and /tycoon on, or /tycoon alone to flip, are remembered. hide is this session only. When Pixel Cat is installed, the band's Off hands over to that cat's switcher: Cat, Adventurer, Token Tycoon, then Off. Pixel Cat is a pixel cat for the same spot above the prompt, and Purple Dark is a theme. Both are other plugins, installed on their own. The save is written to the plugin store every 15 seconds and after each turn. You need a Claude Code version that supports mods, October 2026 or later. The README says that if nothing shows above the prompt, mods are still rolling out, and to set CLAUDE_CODE_ENABLE_FUNCTION_HOOKS to 1 in the env block of ~/.claude/settings.json and start a new session. The official docs say 2.1.287 and later ignore that flag. In the desktop app the scene is an SVG that animates. In the terminal it is a cell grid. Prompt and Shop are the game's own buttons. /idle opens the shop pane. The game moved here from matthlh/claude-idle-mod, which is archived.

The marketplace name is matthlh. The marketplace also holds pixel-cat and purple-dark. This one installs on its own. The idle game is why this page files it under play. commuting-clawders scores real output tokens and by default posts the run to a public board. clawd-buddy draws Clawd acting out the tool, with a chat and a runner you play. This one is an idle game of in-game tokens. Real tool calls and finished turns add to it, and nothing is posted.

Demo

The coder beside the token, idle, then a prompt landing, a crit, and a frenzy.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • prompt.submitWhen you send a prompt
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command/idle/tycoon
  • ui.pressA Claude Code event
  • ui.renderDraws into the sessionAbovePromptPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 2

  • /idleOpen the Token Tycoon shop (and show your progress)
  • /tycoonPut Token Tycoon away or bring it back above the prompt (on, off, or alone to flip)

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
matthlh
Category
Play
Marketplace
matthlh
Repo
matthlh/claude-mods
Folder
plugins/token-tycoon
Version
0.2.0
License
MIT
Repo stars
7
Last change
2026-10-09
Language
TypeScript
Files
13

Other mods in Play

goblin-chromeJasonWarrenUKDraws a goblin above the prompt that reacts to the session: a prop for the skill, minions for subagents, and a frame for the model.snake-paneSzotaszDraws Snake in a side pane while Claude works, and pauses when the turn ends. It opens when you send a prompt.clawd-petyuyongyan29-devDraws Clawd, a pixel pet, above the prompt, reacting while Claude thinks, searches, edits, and runs a command.flash-veillecamillerouxDraws one headline at a time above the prompt from French-language tech feeds, and sends no local data.arcademutlumehmetDraws pixel games above the prompt that move with each tool call. Octo Invader starts on its own.findmutlu-soundsmutlumehmetOn macOS, plays a short sound when Claude waits, a long turn ends, a check fails, or a push goes through. The first session shows one notice.peitschenikisgeDraws a whip you swing at Clawd. A hit while Claude is working makes Clawd flinch and tells Claude to go faster.token-monsterugglrDraws a pixel monster in a side pane that eats tokens, and shows how full the context is, the plan limits, and what Claude is doing.pixel-petNamenomeaningDraws a pixel pet above the prompt that acts out the tool Claude is using, with context and rate-limit bars below.agent-narratorOneWave-AIDraws each step of the session in one plain sentence, with a running estimate of time saved.boss-fightOneWave-AIDraws a pixel boss when tests fail, one hit point per failure, and a hit for each failure a later run fixes.code-petOneWave-AIDraws a pixel pet in a pane that eats when Claude calls a tool, gets sick when one fails, and panics at a destructive command.
All 96 in Play