/the-librarian:handofffrom the-librarian
Stores a structured handoff document for cross-agent pickup. Includes a privacy gate and produces a Markdown document with intent, journey, current state, next steps, and open questions, then persists via MCP tool.
Ships in the-librarian. Installing the plugin adds it to Claude Code.
Author a five-section handoff document and persist it via the store_handoff MCP tool. The receiving agent (any harness) claims it with /takeover in the same cwd and same project.
Before doing anything else, scan the conversation for the most recent [librarian:private=on|off] marker. If it is on, ask the user to confirm explicitly that they want this conversation's content written to a handoff. Abort on "no".
Read the full transcript via the harness's native API; fall back to the in-context view if no transcript API is available. Produce a Markdown document conforming to this template — the headings are part of the contract and are validated by the MCP tool:
# Handoff: <title>
## Start & intent
<what the user came in wanting; why; constraints>
## Journey
<compressed timeline: decisions made (and why), alternatives considered and rejected, deferred work / parking lot, dead ends / lessons learned>
## Current state
<where we are right now — files touched, branches, open PRs, what works, what doesn't, known gotchas>
## What's left
<concrete next steps, in order, with enough context to start cold>
## Open questions
<things needing human decision before next step>
Pick a title that summarises the work in ≤ 80 chars.
Invoke store_handoff with:
title — ≤ 80 charsdocument_md — the rendered templateproject_key — inferred from the project's agent-instructions file / project rootcwd — current working directoryharness — the harness you are running in (e.g. "claude-code", "opencode")source_ref — a stable reference to where the work happened: the harness conversation/run id if one is available, else cwd:<absolute path>tags — short tags only when they help disambiguate (e.g. ["migration", "p1"])Tell the user the handoff_id and how to claim it (/takeover in any agent on the same cwd).
What the command file sets; muted values are Claude Code's defaults
handoff, cross-agent, document-transfer, context-persistence
7-day visitors to each command page
3 commands in this plugin
npx claudepluginhub code-ministry-ltd/the-librarian --plugin the-librarianOther plugins' commands for the same job