Handoff
A Claude Code skill that saves a structured session-summary markdown file when your rate limit or context window is approaching — so another AI (or a fresh session) can resume work without losing context.
claude plugin validate to auditGuide →ai-handoff

A Claude Code skill that saves a structured session-summary markdown file when your rate limit or context window is approaching — so another AI (or a fresh session) can resume work without losing context.
The Problem
Claude Code has a 5-hour rolling usage limit. When it hits, your session ends cold — all context, decisions, and in-progress work disappears. Starting a new session means re-explaining everything from scratch.
The Solution
/handoff generates a self-contained markdown file capturing:
- What was accomplished this session
- Exactly where work stopped
- Key decisions and their rationale
- All files modified
- Prioritized next steps
- Environment snapshot (git state, directory, deps)
- Gotchas and context the next AI needs
The next session opens the file and picks up immediately.
Install
Option 1 — skills CLI (works with all AI tools)
npx skills@latest add ozgurersil/ai-handoff
Installs to Claude Code, Cursor, Windsurf, Antigravity, Codex, Copilot, Aider, Gemini — whichever you use.
Option 2 — Claude Code plugin marketplace
claude plugin marketplace add ozgurersil/ai-handoff && claude plugin install handoff
Option 3 — Manual
git clone https://github.com/ozgurersil/ai-handoff.git
mkdir -p ~/.claude/skills/handoff
cp ai-handoff/skills/handoff/SKILL.md ~/.claude/skills/handoff/SKILL.md
First use: When you run /handoff for the first time, Claude will ask which AI coding tool you use and save the preference. All future handoff files include resume instructions tailored to that tool. To reconfigure: say "handoff setup" anytime.
Usage
Trigger manually
/handoff
Natural language triggers
Any of these phrases activates the skill automatically:
- "save context"
- "session summary"
- "rate limit approaching"
- "context dump"
- "wrap up session"
- "handoff"
- "save progress"
Resume in new session
Open a new Claude Code session, then:
Continue from handoff: handoffs/handoff-fix-auth-redirect-2026-05-04-1430-claude.md
Claude reads the file and resumes immediately.
Output Format
Generated file: ./handoffs/handoff-{summary}-YYYY-MM-DD-HHmm-{model-slug}.md
Examples: handoffs/handoff-fix-auth-redirect-2026-05-04-1437-claude.md, handoffs/handoff-add-stripe-webhooks-2026-05-04-1437-gpt.md
The handoffs/ directory is created automatically if it doesn't exist.
Sections with nothing to report are omitted, so the file stays small:
# Handoff — my-project — 2026-05-04 14:30 — claude
**Reason:** rate limit approaching
## Resume (Claude Code)
## Context — project, goal, cwd, branch, last commit, dirty files
## Done
## In Progress
## Blocked
## Decisions
## Files
## Next Steps
## Open Questions
## Gotchas
Git is optional. Without a repo, the branch/commit line is dropped and the Files section becomes exhaustive — every file touched, with what changed — since there's no git diff for the next AI to fall back on.
Supported Tools
The handoff file includes per-tool resume instructions. Skill auto-detects which tools are configured in your project and asks which one will resume.
You choose your tool once during setup. Handoff files include only your tool's resume instructions.
| Tool | Resume method |
|---|---|
| Claude Code | Continue from handoff: handoffs/{file} |
| Cursor | @{file} in chat |
| Windsurf | @{file} in Cascade |
| Antigravity (Google) | @{file} in chat |
| OpenAI Codex CLI | codex --context {file} "Continue" |
| GitHub Copilot | #file:{file} in Copilot Chat |
| Aider | aider --read {file} |
| Gemini CLI | gemini --context {file} "Continue" |
| Any other tool | Paste file contents as first message |
To change your tool: handoff setup
Why This Matters
| Without ai-handoff | With ai-handoff |
|---|---|
| Context lost on rate limit | Full context preserved |
| Re-explain project from scratch | AI resumes in seconds |
| Decisions forgotten | Decision log captured |
| Next steps unclear | Prioritized action list |
| Works only in Claude Code | Portable across all major AI tools |
Contributing
Contributions welcome. See CONTRIBUTING.md.
Bug reports → GitHub Issues
License
MIT — see LICENSE.
Details
- Author
- @ozgurersil
- GitHub Stars
- 2
- License
- MIT
- Added
- 1 months ago
- Last synced
- 2 days ago
Weekly Mods Digest
Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.
