What is ledger?
ledger is a Claude Code mod by RobGruhl that dURABLE: counts turns and tool calls per session ($.state) and for all time ($.store), shown in a band above the prompt. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | RobGruhl |
| Repository | RobGruhl/claude-mods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Low risk (100/100) |
| Rank | #4,437 of 5,272 Claude Code mods; #1,816 in Interface |
| License | MIT |
| Last commit | 2026-10-09 |
| Hooks | 5 events |
| Sees | classic hooks, every tool call |
| Draws on | AbovePrompt |
Is ledger safe to install?
ledger scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.resolve | draws interface |
How do I install ledger?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/RobGruhl/claude-mods claude plugin validate ./claude-mods/samples/ours/ledger
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/RobGruhl/claude-mods && claude --plugin-dir ./claude-mods/samples/ours/ledger
Or ask Claude to set it up
Paste this into Claude Code and it installs ledger for you:
Install the "ledger" Claude Code mod from https://github.com/RobGruhl/claude-mods/tree/main/samples/ours/ledger. Run claude plugin validate on it first and show me what it can access before you enable it.
More from RobGruhl/claude-mods
This repository has 5 Claude Code mods on MCPMods.
- blast-guard: DURING the turn: refuses destructive shell commands, tidies the rest, and pins Explore subagents to Haiku (Low risk)
- house-rules: BEFORE the turn: adds a system-prompt section, attaches the local time to each prompt, and registers /house-rules (Low risk)
- tool-counter: Counts Claude's tool calls and shows the count in the status line (Low risk)
- turn-receipt: AFTER the turn: prints a one-line receipt (time, tool calls, tokens) beneath each answer (Low risk)