task-ledger
Skill1 starsChanged 6 days agoMITView on GitHub
Project memory and an evidence graph for tasks. Use when starting work on files touched before, after a fix or decision worth keeping, or to prove a multi-step task is done.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ASandhu-92/homelab-agent-opstheir own version, first seen Oct 15, 2026
- amkfbant/claude-codex-orchestrationtheir own version, first seen May 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- amkfbant/claude-codex-orchestration★ 1same name
- ASandhu-92/homelab-agent-ops★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- ask-smartSkill
- debug-scientificallySkill
- edge-case-securitySkill
- engineering-principlesSkill
- lean-navigationSkill
- plan-workSkill
- review-changesSkill
- session-handoffSkill
- tdd-loopSkill
- ui-designSkill
The file
Files
Project Memory and Evidence Graph
Two small stores that stop you from re-reading the repo or rediscovering what was already learned. ${CLAUDE_SKILL_DIR} is this skill's folder (outside Claude Code, the folder this file is in). Run the scripts from the project directory; don't read their source.
Project memory (long-lived)
memory means python ${CLAUDE_SKILL_DIR}/scripts/memory.py. Each memory is one line linked to files and to other memories.
| When | Command |
| Before editing, debugging, or reviewing files | memory recall --file <path> or memory recall --changed |
| Looking for past context by topic | memory recall rounding refund |
| A bug's root cause is found and fixed | memory add bug "<cause and fix>" --files <paths> --tags <topic> |
| A choice with a reason someone could undo by accident | memory add decision "<what and why>" --files <paths> |
| A trap that cost time (setup, ordering, hidden coupling) | memory add gotcha "<trap>" --files <paths> |
| How a part of the system works, learned the hard way | memory add concept "<summary>" --files <paths> |
| Connect related memories | memory link <id> <id> or --link <id> on add |
| Memories may be outdated | memory stale, then forget or re-add |
| New or empty memory on an existing repo | memory seed (fix commits and warning comments, marked inferred; --dry-run first) |
Recall ranks memories on the exact file, then on neighbouring files through lean-navigation's code graph (imports and importers), then the same folder. Treat recalled memories as leads to verify, not facts: check stale when the file changed. Store conclusions, not conversations; one memory per fact; never secret values (the script refuses obvious ones). pref entries hold stable user preferences; before adding one, read references/memory.md.
It lives in .git/lean-memory.json (private, never committed). To share with a team, set LEAN_MEMORY_FILE to a committed path. If the user installed the kit's memory hook, editing a file with recorded decisions pauses once and shows them; read them, then retry the edit or stop and ask if it conflicts.
Evidence graph (one task)
For multi-step work, debugging, or anything you will claim is done. ledger means python ${CLAUDE_SKILL_DIR}/scripts/ledger.py. It records what the task needs, what you tried, and what proves it, linked to files.
| Step | Command | ||
| Goal and requirements | ledger goal "...", then ledger add req "<r1>" "<r2>" ... (one per acceptance check) | ||
| A guess to confirm or rule out | ledger hypo "..." --files <paths> | ||
| Evidence: run a command now | `ledger fact "..." --run "<command>" [--expect-exit 1] --proves <id> | all [--kills <id>] --files <paths>` | |
| Evidence seen without a command | ledger fact "..." --seen "<observation>" --proves <id> (weaker) | ||
| Choices and locations | `ledger add decision | loc | open "..."` |
| Before saying done | ledger prove: requirements without passing, current evidence; failing, stale, or only observed evidence | ||
| What the change touches but nothing checked | ledger coverage [--base <ref>]: affected tests not run, callers not looked at, routes not exercised | ||
| See the whole graph | ledger tree | ||
| At the end | ledger close: proven bug causes and decisions go to project memory |
fact --run stores the command, exit code, and up to three decisive output lines, plus fingerprints of --files; editing those files later makes requirement evidence stale until you rerun it. A red run before a fix proves a hypothesis and stays valid. Never mark a requirement done without a fact; prove reports such entries. The ledger is .git/task-ledger.json in a Git project (LEDGER_FILE overrides), capped at 60 entries.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

