desktop-token-flow

Reviewed at commit c53a70b

Chart uncached input, output, cache reads, and cache writes.

Made by
Yash Thakker
What we checked

Adds a /desktop-token-flow pane in the Claude Desktop Code tab with a bar chart of uncached input, output, cache-read and cache-write tokens over the last 30 requests of this session. It uses only the token counts Claude Code reports; it reads no files, runs no programs and makes no network calls. Data stays in memory.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers the command), command.run, turn.step (generator that passes the step through and copies the model name and the usage object of each result into a list capped at 30) and ui.render for Pane. Runtime calls: $.command.register, $.ui.open, $.ui.invalidate, $.ui.resolve. The Clear button empties the list. Nothing is stored or sent; the state is lost on restart. Only works on the desktop surface. ui.js holds pure presentation helpers (SVG bar chart with escaped labels). No network, process, file or model calls. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of desktop-token-flow
Made this mod? Add a badge to your README

modsforClaude badge for desktop-token-flow

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/desktop-token-flow.svg)](https://modsforclaude.com/mods/desktop-token-flow/)

← All mods