session-receipt

Reviewed at commit b28b1bc

/receipt opens a pane with the exact tokens every turn of the session spent (uncached, cached, output, subagents) and the costliest turns. No tokens spent.

Made by
Vedant Andhale
What we checked

Adds a /receipt command that opens a pane listing the tokens each turn of the session spent (uncached, cached, output, subagents) and the five costliest turns. It also shows a toast when one turn used 3 or more points of your 5-hour limit. It uses only the usage numbers Claude Code reports and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers session.measure, session.start (registers the /receipt command), command.run, turn.start, tool.call, turn.step, turn.complete, session.end and a ui.render handler for its pane. It keeps a list of up to 500 turns in a plugin atom (read/update): turn number, first line of the prompt cut to 60 characters, tool-call count, token counts from the step usage and duration; the list is cleared on session end. Uses $.ui.open, $.ui.toast and $.ui.resolve. tool.call only increments a counter and passes the event on. No network, no file access, no process execution, no model calls. The unresolved import '../types' in the bundle note is a type-only import resolved by types/index.d.ts, which was included. Whether the atom persists to disk is a host feature and was not verified.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • 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 session-receipt
Made this mod? Add a badge to your README

modsforClaude badge for session-receipt

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

← All mods