ledger

ledger is a skill for Claude Code from fledgeling-co/fledgeling-plugins. It costs 87 tokens per session (966 once invoked), scanned A, original, MIT.

An append-only audit log that records each pipeline decision and links it to its evidence. Each row includes details such as the model version, verdict, and a hash connecting it to the previous row.

In plain words
What is it for?
Use it to record and verify automated decisions, evidence checks, model details, and later outcomes.
Why use it?
It makes later changes to the decision history detectable. This gives auditors a reliable record instead of separate signatures for every item.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Gemini CLI.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/ledger.py --root <repo> --item <id> --class <defect-class> \.

Part of the warrant plugin — 9 skills shipped together

Good fit Use it to record and verify automated decisions, evidence checks, model details, and later outcomes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fledgeling-co/fledgeling-plugins
agentmods
npx agentmods add skills/fledgeling-co/fledgeling-plugins/ledger

Made for: Claude Code.

Or install warrant, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ledger

README.md
[![agentmods](https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/ledger/github.svg)](https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/ledger)
Your own site
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/ledger"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/ledger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ledger

Your own site · 80×15
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/ledger"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 966 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.00966
Opus 5.5 $0.00035 $0.00386
Sonnet 5.5 $0.00017 $0.00193
Haiku 4.5 $0.00009 $0.00097

Measured 2mo ago against content hash 514bb71feb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ledger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/warrant/skills/ledger/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ledger — the record that replaces the signatures

The argument for removing per-item human sign-off ends in an audit conversation, and this file is what that conversation reads. Its integrity property is the whole value: a record that can be rewritten later is a record with nothing in it.

Running as a Gemini model? Read gemini.md in this directory first, then follow this file with the overrides it names. It sets the retry ceiling on an append to zero — read the chain, then append once — turns "one row per decision" into a count read back off the ledger, and makes the run search for the repository's existing audit sink before defaulting to .warrant/ledger.jsonl. Other models skip it.

Procedure

  1. Append on every decision.

    python3 scripts/ledger.py --root <repo> --item <id> --class <defect-class> \
        --verdict <pass|fail|inconclusive> --evidence-digest <digest> --tier <n> \
        --model-id <id> --model-version <v> --warrant-version <n>
    

    Each row carries the SHA-256 hash of the previous row's canonical JSON, so a change anywhere breaks everything after it. Rows are appended and never rewritten.

  2. Verify before an audit, and on a schedule.

    python3 scripts/ledger_verify.py --root <repo>
    

    Exit 2 names the first broken row index and what did not match. It detects a single flipped byte in any historical row, which is the property worth testing rather than asserting.

  3. Record the outcome when one emerges. An item that later turned out to be wrong gets its outcome appended as a new row referencing the original, not as an edit to it. The escape also goes to warrant:feedback; these are two records of one event and both are wanted.

What a row has to carry

Field Why an auditor needs it
item which decision this was
defect class which policy covered it. warrant:ratchet counts closed items per class to decide tier 3, so a row without one cannot be counted and blocks the promotion rather than being skipped
warrant version which policy authorised it
model id and version which control made it, so a later change is visible (C12)
evidence digest what was actually judged, so the verdict is reproducible
verdict including inconclusive, which is a valid terminal answer (C13)
authorising tier how much authority the class held at the time
outcome whether it later proved wrong, appended rather than edited

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed 514bb71feb33
  2. 2mo ago First seen · 83 lines · 87 tokens per session scan A ced04991644e

Subscribe to this mod's changes

ledger is a skill published in the GitHub repository fledgeling-co/fledgeling-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 87 tokens to every session and 966 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

ledger compared with skills from other repositories

ledger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ledgerfledgeling-co/fledgeling-pluginsSkill2yesterdayMITA87Claude Code
fto-triageanthropics/claude-for-legalSkill10kyesterdayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill10kyesterdayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill20k2d agoMITA49Claude Code
terms-of-servicegenspark-ai/genofficeSkill13kyesterdayApache-2.0A32Claude Code, Codex
regulatory-research-fallbackHKUDS/OpenSpaceSkill8.1k19d agoMITA20Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.8k7d agoApache-2.0A57Claude Code, Codex