ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by sreshtalluri

session-receipt

A Claude Code plugin that uses /receipt to create shareable session receipts with the model, time, turns, tools, files, tokens, cache hits, costs and more, and can export a 1200×1200 PNG image.

sreshtalluri@sreshtalluri

sreshtalluri/claude-mods/tree/main/plugins/session-receipt

Original post image1
Translated

About this mod

session-receipt is a Claude Code plugin in the sreshtalluri/claude-mods marketplace. It uses the function-hooks plugin API to intercept tool.call events and collect session information. Commands include /receipt (the current session's model, time, turns, tools, files, tokens, cache hits, costs and fun statistics), /receipt week (a seven-day summary), and /receipt last (the previous session's receipt). Copy image can put a 1200×1200 PNG on the clipboard on macOS, Windows and Linux; if drawing fails, it saves the file and shows its path. At the end of each session, the receipt is saved to ~/.claude/receipts/ and the data never leaves the local machine. The terminal shows a text ticket, while the desktop app presents a paper-style receipt. Install with /plugin marketplace add sreshtalluri/claude-mods, then /plugin install session-receipt@claude-mods. MIT licensed.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add sreshtalluri/claude-mods
claude plugin install session-receipt
Original text / README

claude-mods

Claude Code mods by @sreshtalluri.

session-receipt: a receipt for every Claude Code session

Install

/plugin marketplace add sreshtalluri/claude-mods
/plugin install session-receipt@claude-mods
/plugin install daily-grind@claude-mods

Mods use Claude Code's function-hooks plugin API, which is early access, so you need a current Claude Code.

Mods

| Mod | What it does | | --- | --- | | session-receipt | /receipt prints a shareable receipt of your session. /receipt week totals your week. Copy image gives you a square PNG to post. | | daily-grind | /grind opens a hub of daily puzzles to play while Claude works. Developer: Git Golf (reshape a commit graph under par), Heisenbug (find the buggy line), Install Order (dependency logic). Everyone: Ladder, Pixel Logic, Codebreaker. A Classics tab holds Lexer, Buckets and Daemons. Streaks, and /grind share for a shareable result. |

session-receipt

session-receipt demo

| Command | | | --- | --- | | /receipt | This session: model, time, turns, tools, files, tokens, cache hit, cost, and how many times Claude said you were absolutely right. | | /receipt week | The last seven days: sessions, busiest day, top project, usual model, total. | | /receipt last | The previous session's receipt. |

  • Copy image puts a 1200×1200 PNG on your clipboard on macOS, Windows and Linux. If nothing can draw it, the image is saved and its path is shown.
  • Every session's receipt is saved to ~/.claude/receipts/ when it ends. Nothing leaves your machine.
  • In the terminal it's a text slip; in the desktop app it's drawn as paper.

Adding a mod

  1. Put it in plugins/<name>/ (with .claude-plugin/plugin.json).
  2. Add an entry to .claude-plugin/marketplace.json.
  3. claude plugin validate plugins/<name>, claude plugin test plugins/<name> and claude plugin validate .

The demo clip is a HyperFrames composition in media/receipt-demo: bun build.ts && npm run render.

License

MIT

Other works with the same name

Similar projects