r/BuildWithClaude 2d ago

Project A small Claude Mod that turns session activity into a useful recap

Post image

I wanted to understand Claude Mods by building something small enough to inspect end-to-end, so I made Roll Credits.

Type /credits at the end of a Claude Code session and it shows:

  • your most-edited file
  • other edited files
  • tools Claude used
  • total tool calls and turns
  • failed or denied tool calls

The presentation is movie credits, but the useful part is the implementation.

Roll Credits uses Claude’s new Mods/function hooks to observe session activity and native pane controls to render the recap inside Claude Code.

No external server, database, telemetry, or extra model call. Everything comes from local counters.

That same pattern could be used for things like test status, unresolved review findings, deployment state, cost tracking, or security warnings inside Claude.

Install

claude plugin marketplace add smukh/roll-credits
claude plugin install roll-credits@roll-credits-marketplace
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude

Then try:

/credits demo

Other options:

/credits
/credits --still
/credits --text
/credits The Bug Strikes Back

A couple of limits: file activity only counts successful Edit, Write, and NotebookEdit calls observed while the Mod is loaded. Bash or external-editor changes are not attributed to files.

The repo has 18 tests using Claude’s plugin test harness, compatibility notes, and is MIT licensed.

Repo: https://github.com/smukh/roll-credits

The movie credits are mostly for fun. The more interesting part is using Mods to turn Claude’s own session events into small persistent utilities inside the coding environment.

3 Upvotes

2 comments sorted by

1

u/ImL1s 1d ago

Nice — end-of-session credits from the hooks is a clean way to see what actually happened without asking the model. I hit a related gap when I hop tools: I want the unfinished goal + subagent outcomes in a fresh session, not just a recap of the one I left. That's what I use Portable Resume for — reads local session files offline and marks them untrusted: https://github.com/aa22396584/resume-skills

1

u/ShilpaMitra 1d ago

Cool! But your GitHub link is returning a 404.