EN / JP
← olbin.dev
Local CLI

claude-handoff

Hand off Claude Code / Claude.ai conversation context when you need to continue in a fresh session.

01. Problem → fix

Long agent sessions end, get truncated, or need a clean restart — and rebuilding context by memory is wasteful. claude-handoff turns a Claude Code session, clipboard dump, or /export transcript into a compact HANDOFF.md plus a paste-ready resume prompt (copied to the clipboard on macOS).

Offline by default: no Claude API key required for local extraction. Optional OpenAI-compatible local LLM compression is available.

02. What it does

CommandUse
listRecent Claude Code sessions
makeBuild handoff from a session (latest by default)
from-clipBuild from claude.ai clipboard text
from-fileBuild from /export txt or JSONL
accounts …Optional Claude Code profile helpers via CLAUDE_CONFIG_DIR

03. Install

git clone https://github.com/olbin-dev/claude-handoff.git
cd claude-handoff
chmod +x ./claude-handoff
ln -sf "$(pwd)/claude-handoff" ~/bin/claude-handoff
claude-handoff make

Python 3 stdlib only. macOS uses pbcopy / pbpaste.

04. Notes

Follow Anthropic’s Terms of Service for your own account setup. This tool is for session continuity — not a bypass kit.

Related: All projects

Source is open on GitHub (MIT).

View on GitHub Back to olbin.dev