seven7rees

Claude Context Handoff — Development skill for Claude Code

Development community

Writes a handoff before Claude Code runs out of context, then gives you a resume prompt for a fresh session.

How to install Claude Context Handoff

This entry records only its repository, not the path inside it, so there is no exact command to give. Open seven7rees/claude-context-handoff and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Context Handoff does

Writes a handoff before Claude Code runs out of context, then gives you a resume prompt for a fresh session. Zero dependencies. Local only. MIT. Early release.

Alternatives in Development

  • Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
  • Claw Code Agent — Claw Code No Rust No TypeScript Only Python 543 ★
  • Release & Shipping Burn Patterns — Research Summary — Research completed: 2026-02-10 Sources: ~/.claude/CLAUDE.md (This Has Burned You Before table), SESSION_HANDOF 216 ★

README

claude-context-handoff. Illustration of the flow: a context window bar reaches 85 percent, a handoff file is written, and a fresh session continues the work.

Write the handoff before Claude Code runs out of context, not after.

Writes a structured handoff when your context window reaches a percentage you choose, so your next session can start from a handoff file and a ready resume prompt.
Zero dependencies. Local only. Works through Claude Code hooks.

status: early release license: MIT

**Early release.** The terminal flow was run live once in Claude Code on macOS, up to Claude printing the resume prompt ([record](docs/verification/terminal-macos.md)). The Claude desktop app flow is only partly verified ([record](docs/verification/desktop-app.md)). See [What is proven](#what-is-proven) and [Known limits](#known-limits) before you rely on it.

claude-context-handoff is an independent open source project. It is not affiliated with, endorsed by, or sponsored by Anthropic. Claude and Claude Code are trademarks of Anthropic, PBC.

What does it do?

  1. Reads your context usage from the Claude Code status line and saves it per session.
  2. At your threshold (default 85 percent), waits for the end of a turn, then asks Claude to write a handoff file.
  3. Asks Claude to check the file with handoff verify, then gives you a one-line resume prompt for the next session.
  4. Claude desktop app only, experimental: opens the next session in the right folder with the prompt ready. Renaming and pinning the new session is unverified.

How is this different from /compact?

`/compact` summarizes the conversation inside the same session. A handoff writes the working state