desktop-token-flow
Reviewed
at commit c53a70b
Chart uncached input, output, cache reads, and cache writes.
0 upvotes
Log in to upvote or save- Made by
- Yash Thakker
- Pinned commit
-
c53a70b8787c4270029af9648d6eb7054c6c29c3 - 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
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/desktop-token-flow/)