receipt

Reviewed at commit 0a2174b New version, not yet reviewed

One row after each turn with the files changed, lines added and removed, commands run and failed, plus a toast when the model goes in circles.

Made by
hoobnn
What we checked

After each turn that used tools, shows a one-line band above the prompt: files changed with lines added and removed, commands run and failed, reads, subagents, and whether code changed after the last test or build. It toasts when the same call keeps failing or an edit keeps being undone, and /receipt replay steps through the turn's diffs. It keeps everything in memory only and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since ceaba79; the rest carries over from the review at that commit. The only change in this version is an added "claude-code" keyword in plugin.json; no code changed. Registers session.start, turn.start, tool.call, turn.complete, command.run (/receipt), prompt.edit, prompt.change, prompt.submit, ui.render (AbovePrompt band and a replay Pane) and ui.close. The tool.call hook awaits next(e) and only observes the result (never denies or changes it), reading tool name, input, result and the git diff or structuredPatch an edit returns to count lines and build a diff for replay (first 50 edits, 120 lines each, kept in session memory only). Shell commands are matched with a regex to detect test, build and lint runs; nothing is executed. Other runtime calls: $.session.cwd, $.clock, $.ui.toast, $.ui.open/close, $.command.register, $.settings.read (language field only), $.env.get (LC_ALL, LC_MESSAGES, LANG), and $.config.set on its own visible row when /receipt off or on is used. The band indents only on the terminal surface, the hidden state falls back to the saved visible row in resumed sessions, and prompt.change only checks whether a slash or @ picker is open. No fetch, process, file access, eval or model calls.

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 receipt

What each turn did, in a band above the prompt once it ends (files changed with lines, commands and failures, reads, subagents), and a toast when the model goes in circles; read from the turn's own tool calls: no tool, no prompt, no tokens

Made this mod? Add a badge to your README

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

← All mods