Swarno1996

Handoff Pill — AI skill for Claude Code

AI community

Move the full context of a long AI chat into a fresh one with a single ingestible markdown file.

How to install Handoff Pill

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

What Handoff Pill does

Move the full context of a long AI chat into a fresh one with a single ingestible markdown file.

Alternatives in AI

  • Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
  • LongHorizon Harness — The long-horizon computer-use harness 1.3k ★
  • Late CLI — High-performance AI agent for long-horizon tasks and local models 442 ★

README

Handoff Pill

[![ci](https://github.com/Swarno1996/Handoff-pill/actions/workflows/ci.yml/badge.svg)](https://github.com/Swarno1996/Handoff-pill/actions/workflows/ci.yml) ![version](https://img.shields.io/badge/version-2.0.0-6C63FF) ![license](https://img.shields.io/badge/license-MIT-blue)

Move a long AI chat into a fresh one with its context **and its working environment** intact.

When a chat gets long, it gets slow, expensive and forgetful, because every new message pays for the whole history. Say **"make the pill"** and the chat writes one dense markdown file. Open a new chat, load the pill, and the new chat rebuilds the old one's environment and carries on with a fresh token budget.

Think of it like Docker. The old chat is a running container. The pill is the image spec: a manifest of what to install (the Dockerfile) plus the application state (the context). The new chat is a fresh container built from that spec, with the same tools, servers, repos and files, and without the old chat's weight.

flowchart LR
    A["Long chat
context + tools + state"] -- "make the pill" --> P["PROJECT_HANDOFF_PILL.md
manifest + context"] P -- "load the pill" --> R{"Rehydrate"} R --> E["Restore environment
repos, packages, MCP,
skills, files"] R --> C["Restore context
state, decisions, casebook,
directives, open threads"] E --> N["Fresh chat
same environment,
fresh token budget"] C --> N

What a pill carries

Layer What's in it
Manifest (YAML) Source platform and model, runtime, repos at exact commits with dirty and unpushed state, packages with install commands, MCP servers, connectors, skills and plugins, required files, env var names, and what is not portable. Every entry has a restore command or user action.
Context (prose) Critical operational facts, current state, artifact inventory, exact working procedures, environment sharp edges, a casebook of solved problems