tokenomics

Reviewed at commit 867b81f

KOZMOS Tokenomics: the cost lab. Session cost as the headline, an estimated split by model and by token type, cache hit ratio, burn per hour, cost per turn, a…

Made by
KOZMOS
What we checked

Opens a sidebar with an estimated cost breakdown of your session: total, by model and token type, cache hit ratio, cost per hour and per turn, plus daily and weekly totals over 14 days. It reads token counts and your session cost, and saves only per-day dollar totals on your machine. /tokenomics opens and closes it.

Review details

Static review of the source at the pinned commit; not run. Hooks session.start, command.run (/tokenomics opens or closes the pane via $.ui.open/close), turn.start, turn.step (generator passing the stream through unchanged; adds the response's usage numbers to an in-memory ledger priced by a built-in table), turn.complete and ui.render for the Pane (terminal Text and Raster, desktop SVG cards). Runtime calls: $.session.usage (cost, start time), $.clock.every (3 s sampling), $.store get/set for a per-day dollar ledger (last 60 days) and a record of seen session totals (last 3 days), $.ui.panes/open/close, $.command.register. Optional autoOpen user setting opens the pane on start. No network, file, process or model calls; no prompt or tool content is read. Shared lib/kz.ts is drawing and pricing helpers. Unresolved ../types is the bundled types/index.d.ts. hooks/lib/probe.ts is not bundled and not imported (checked in the clone).

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: yes
  • Shows something on screen: yes
Hooked events

KOZMOS Tokenomics: the cost lab. Session cost as the headline, an estimated split by model and by token type, cache hit ratio, burn per hour, cost per turn, a pace forecast and daily and weekly totals across sessions with a 14-day chart. /tokenomics toggles the sidebar.

Made this mod? Add a badge to your README

modsforClaude badge for tokenomics

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/tokenomics.svg)](https://modsforclaude.com/mods/tokenomics/)

← All mods