ClaudeCodeMod

All shelves / Mods / Play

token-run

By YeonwooSung

token-run is a Claude Code play mod by YeonwooSung.

Draws a small local runner above the prompt or in a pane when a request fails, or when you run /token-run.

Draws

Install

The marketplace name is my-claude-code-mods.

In your shell
claude plugin marketplace add YeonwooSung/my-claude-code-mods
claude plugin install token-run@my-claude-code-mods
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.1.3
License
Apache-2.0
Repo stars
1089
Last change
2026-10-23

What it can reach

  • Draws in the session

Function hooks, verified in engine tests with Claude Code 2.1.296, 2.1.299, 2.1.300, and 2.1.301, and in real terminal sessions with 2.1.296 and 2.1.301. A local checkout starts with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir ./token-run. The author says to install while connected, and that after loading the game needs no network or model calls. When a main turn ends in an error, an invitation shows above the prompt; click it or run /token-run. The game docks beside the transcript in a wide fullscreen terminal, and above the prompt otherwise. Jump over BUG, 429, and TIMEOUT with a click, Space, or Up; R restarts, P pauses, Q closes, and Esc gives the keys back to the prompt. Leaving the game does not pause it, so press P first. The author says the invitation can also follow server, authentication, or context errors, and does not prove you are offline. The score is the seconds survived, and the best one is saved in the plugin's store. It needs at least 24 columns and 8 rows. It never sends a game prompt to the model. VS Code chat, mobile, and headless sessions do not run the game.

The marketplace, my-claude-code-mods, holds seventeen mods by YeonwooSung, pin-memo and model-effort-band among them. This one installs on its own. A game for a wait is why this page files it under play. commuting-clawders, by kyh, draws an endless runner of Clawd while Claude works, scores it by output tokens, and by default posts the run to a public board. clawd-buddy, by zhanbodev, draws Clawd acting out the tool Claude is using, with a chat, a runner game, and a dance to your music. This one keeps the score on your machine and opens when a request fails or when you ask.

Demo

The token-run section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • turn.stepAt each step of a turn
  • command.runWhen you run its slash command/token-run
  • ui.closeWhen its pane closes
  • ui.messageAdds a message to the session
  • 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 1

  • /token-runPlay a local runner: [help|close]

Files

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

Facts

Author
YeonwooSung
Category
Play
Marketplace
my-claude-code-mods
Repo
YeonwooSung/my-claude-code-mods
Folder
token-run
Version
0.1.3
License
Apache-2.0
Repo stars
1089
Last change
2026-10-23
Language
TypeScript
Files
17

Other mods in Play

All 96 in Play