Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By SatanshuMishrav0.22.1Apache-2.0In 1 marketplace
Git-native, multi-user, drift-aware session continuity for Claude Code.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Logbook is a Claude Code plugin that lets Claude Code continue a piece of work across compactions, /clear and new sessions without you explaining it again. It keeps the present state of each piece of work, called a thread, in one short markdown file, the state document, and stores every version of that file as a git commit inside the project's own repository. A later session, yours or a teammate's, is handed that document and carries on from it.
The current version lives in package.json and .claude-plugin/plugin.json.
Each thread has one state document. It describes the present, not a history, in eight fixed sections, always in this order:
| Section | Holds |
|---|---|
## Goal | What the thread is for |
## Done when | The criteria that make it done, each a checkbox item |
## Where things stand | Where the work is now; a finished step leaves it, and its proof goes on the criterion it ticks |
## Next step | The very next thing to do, and where |
## Decisions in force | Decisions that still constrain the work |
## Open risks | Risks that still bear on the work |
## Settled, do not reopen | Questions already settled, so nobody reopens them |
## Where the details live | Pointers to specs, runbooks and other material |
Above the sections sit the title line # <slug>: <title>, the Status: line (active, blocked: <reason>, waiting: <reason>, parked, done or abandoned: <reason>), the Updated: line and the Next ids: line, which says the next free number for each kind of item.
The four item sections hold item lines, each with a permanent id: a letter and a number. Criteria are c items and carry a box, decisions are D, risks are R and settled questions are S:
## Done when
- [x] c1 The login page loads evidence: test login.loads passed
- [ ] c2 A wrong password shows an error
- [~] c3 Remember-me works struck: dropped by D2
## Decisions in force
- D2 Sessions end when the browser closes.
## Open risks
- R1 The old endpoint may still receive traffic. Bears on c2.
An item is never renumbered and a number is never reused. A criterion is never deleted: it is ticked [x] with evidence:, struck [~] with struck:, or reopened to [ ] with reopened:.
The working copy of a thread's state document is ~/.logbook/<repository key>/<slug>.md. The repository key is the lowercased name of the folder holding the repository's git directory, followed by a hash of that directory's path, so the main checkout, a subfolder and a linked worktree of one repository all share the same working copies.
The working copy sits outside .git because Claude Code refuses to edit files inside it. Logbook's PreToolUse hook lets Claude Read and Edit exactly those files, ~/.logbook/<key>/<slug>.md, without a permission prompt, in every permission mode; it allows nothing else, and Write is never allowed.
Every accepted edit becomes a commit on refs/logbook/threads in the repository's own .git, so the commit history of a document is the log of its thread. The other per-thread files, which session holds which thread and which tools were running, live under <git common dir>/logbook/. Nothing logbook does touches your checkout: HEAD, branches, the index and the working tree stay as they were.
Claude keeps the document true with one logbook update_thread command in Bash, chained after git commit when a step was committed, when a hook asks it to; editing the working copy with the Edit tool keeps working and is checked and committed the same way. The hooks ask at two moments:
git commit, git push or git merge, a gh pr create or gh pr merge, a pull request created or merged through an MCP tool, or a subagent's work. They ask at most once per prompt.While a run was the last writer of a thread's document, the end of a turn asks only when the turn edited a file. The run keeps that document true as it works, so a turn that only ran commands, such as reading the run's status or sending it an event, adds nothing the document should say. The first write by the session, or the next milestone, makes the session the last writer again.
When the edit lands, logbook checks it in the same turn. The checker looks only at structure: lost items, deleted criteria, ticks without evidence, criterion rewording without a new decision, reused ids, and closing as done while a criterion is open. It never judges content. An accepted edit is committed with a note saying what changed and why each removed item left; a refused edit is answered with the line, the id and the fix, and Claude corrects it with one more edit.
The hooks never block a tool or a turn. They add context and nothing else.
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub satanshumishra/logbook --plugin logbook