Johnbjoseph-cybersec

Mindledger — Development skill for Claude Code

Development community

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.

![Report, light theme (synthetic demo data)](docs/screenshots/report-light.png)

Dark theme

![Report, dark theme (synthetic demo data)](docs/screenshots/report-dark.png)

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 DOWN when 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: