Mindledger — Development skill for Claude Code
A private, local ledger of your coding-agent usage for Claude Code: de-duplicated token counts, an append-only ledger that flags any drop, scrubbed config backups and a self-contained HTML report.
How to install Mindledger
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Johnbjoseph-cybersec/mindledger and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mindledger does
A private, local ledger of your coding-agent usage for Claude Code: de-duplicated token counts, an append-only ledger that flags any drop, scrubbed config backups and a self-contained HTML report. Python stdlib, no network.
Alternatives in Development
- Mempalace Status — Show the current state of your memory palace — wings, rooms, drawer counts, and suggestions 58.6k ★
- Memory Gc — Inspect or rotate the autopilot ledger JSONL files (findings.jsonl, negatives.jsonl) 3.8k ★
- Crucible Restore — Restore your project from a backup 58 ★
README
MindLedger
A private, local ledger of your coding-agent usage for Claude Code.
MindLedger reads the session transcripts Claude Code already writes to your disk and turns them into honest numbers: tokens per day (input, output, cache read, cache write), sessions, messages and models. It keeps an append-only ledger that shouts when your lifetime total ever goes backwards, backs up your agent configuration with secrets scrubbed, renders a single self-contained HTML report, and can export a tiny public-stats file for your website.
Python 3 standard library only. macOS and Linux. No network calls, no telemetry, no accounts.
This is the open-source core of a system the author uses daily, tracking 300B+ tokens.

Dark theme
Screenshots are generated from the synthetic data in `scripts/make_demo_data.py`.
Why
- Counting tokens is easy to get wrong. One API reply is written to the transcript as several records that repeat the same usage, so a naive sum over-counts by two to five times. Resumed sessions and transcripts copied from another machine repeat records too. MindLedger de-duplicates by message id and record uuid across every directory you point it at.
- Totals should never silently shrink. A changed retention setting or an
unmounted folder can delete history without anyone noticing. The ledger
compares every run with the highest total ever recorded and prints
TOTAL WENT DOWNwhen something disappeared. - Your agent setup is worth backing up.
CLAUDE.md, settings, skills, agents and memory notes grow over months. MindLedger mirrors them into a vault and keeps dated zips, with credentials redacted first.
Quickstart
git clone mindledger && cd mindledger
python3 -m pip install . # or run in place with:
Related Skills
Findings
View or append the F-NNN findings ledger.
Ledger Wallet
Agent Skill: build a customer wallet as an append-only ledger with a balance per currency: Stripe Checkout top
Backups
Verify all VPS backups completed successfully. Checks WordPress, PostgreSQL, Nginx config, and PM2 backups for
Dahua Nvr Kit
Toolkit + Claude Code skill for administering Dahua NVR fleets over RPC2: channel rearrange/resort, recover ca
Claude Config Transfer
Two PowerShell scripts that move a full Claude Code setup (settings, permissions, personal skills, all marketp
Aesthetic Blanks
Isolated, independent aesthetic website templates (parts-clones). Each site is a self-contained Next.js wirefr
Related Agents
Financial Controller
Financial Controller for agent teams. Audits token usage, run duration, tool calls and efficiency across all d
{{Member}}
AI Team in-house {{Member}} for a founder's company, working from the private ai-team/ workspace in the projec
Docs Clerk
Mechanical docs bookkeeping at low cost. Use to tick docs/PLAN.md boxes for work that has landed, fix the "· N