handoff

mattpocock / skills Claim

Basic information

Category
Repository
mattpocock / skills
Skill
handoff

About handoff

Compact the current conversation into a handoff document for another agent to pick up.

handoff is an agent skill in the Documents category listed in the AddMCP.net directory, published by mattpocock / skills. Supported transport: Streamable HTTP. Runtime: Go. License: MIT. The repository has 28,256 GitHub stars. Source code is hosted on github.com. Install command: npx skills add https://github.com/mattpocock/skills --skill handoff. Related topics: agents, claude-code, coding, documents.

Install handoff

npx skills add https://github.com/mattpocock/skills --skill handoff

Overview

How to use handoff?

npx skills add https://github.com/mattpocock/skills --skill handoff

What it does

  • Compacts current conversation context into a structured document saved to the OS temp directory, enabling fresh agents to resume work without re-reading full chat history
  • Automatically suggests relevant skills the next agent should invoke based on conversation content
  • Avoids duplication by referencing existing artifacts (PRDs, plans, ADRs, issues, commits, diffs) by path or URL rather than repeating their content
  • Redacts sensitive data including API keys, passwords, and personally identifiable information before handoff
  • Tailors handoff focus based on user-provided arguments describing the next session's goals

When to Use

  • Context getting full (approaching token limit)
  • Finished a logical chunk of work
  • Need a fresh perspective on a problem
  • Human requests session cycling

Usage

/handoff [optional message]

How It Works

  1. If you provide a message, it's sent as handoff mail to yourself
  2. gt handoff respawns your session with a fresh Claude
  3. New session auto-primes via SessionStart hook
  4. Work continues from your hook (pinned molecule persists)

Examples

# Simple handoff (molecule persists, fresh context)
/handoff

# Handoff with context notes
/handoff "Found the bug in token refresh - check line 145 in auth.go first"

What Persists

  • Hooked molecule: Your work assignment stays on your hook
  • Beads state: All issues, dependencies, progress
  • Git state: Commits, branches, staged changes

What Resets

  • Conversation context: Fresh Claude instance
  • TodoWrite items: Ephemeral, session-scoped
  • In-memory state: Any uncommitted analysis

Implementation

When invoked, execute:

  1. If user provided a message, send handoff mail:
   gt mail send <your-address> -s "HANDOFF: Session cycling" -m "<message>"
  1. Run the handoff command:
   gt handoff

The new session will find your handoff mail and hooked work automatically.

Videos

Tutorials, guides, and showcases related to handoff. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬