Skip to main content

AI Handoff Prompt

A structured prompt that makes your AI write its own handoff before you clear context — an eight-section continuation document plus a resume prompt, so the next session picks up with nothing lost.

AI Handoff Prompt — structured way to continue AI coding sessions with Claude Code, OpenClaw Clawdbot, or any AI tool

Grab the prompt

Check the box above to enable all copy buttons in these tabs.

Copy this prompt and paste it into any AI — Claude, ChatGPT, Gemini, Codex, Cursor, Clawdbot, whatever you use. When your context window gets heavy, paste this prompt, let it generate the handoff document, then clear your context and paste the resume prompt into your fresh conversation.

See that optional field below? If you already know what the next session should tackle, type it there — it gets baked into the prompt you copy, and the next AI treats it as its first task. Leave it blank and the copied prompt tells the next AI to size up the project, propose the smartest next move, and wait for your go-ahead. Either way, you never have to edit the prompt by hand. You get control when you want it, autonomy when you don't.

Leave it blank and the copied prompt tells the next AI to propose the best next step and wait for your go-ahead.

↑ Check the checkbox above to activate

Tested withClaude CodeChatGPTGemini CLIGitHub Copilot CLICursorWindsurfCodexClawdbot

Most people try to create handoff documents, and almost everyone does it wrong. Telling your AI to “capture everything” produces a bloated summary that buries what matters. Tracking “all the micro tasks” treats every fact as equally important — and in a real project, it isn’t. What you did in the last thirty minutes matters ten times more than what you did three hours ago, and the reasoning behind a decision matters more than a list of what you built. Without structure and priority you don’t get continuity; you get noise. This prompt gives the AI the structure.

Before you run — a 30-second check

Never run a prompt you haven’t read. Paste it into your agent first and ask whether it contains any instruction to run shell commands, touch files outside the project, or reach the network. This one doesn’t — it only writes a document — but a clean prompt gets a clean answer, and the habit is worth more than the prompt.

Why it works when summaries fail

1

Recency-weighted. What you did in the last 30 minutes matters more than what you did 3 hours ago, and the document is built in that order.

2

It keeps the why. Decisions are recorded with their reasoning and tradeoffs, which is what stops the next AI from quietly undoing them.

3

An explicit Do Not Touch list. The new session is told what not to refactor, rename, or redesign.

4

Confidence flags on every section. High, medium, or low — the next AI knows what to trust and what to double-check.

5

Verify before trust. The resume prompt makes the next AI run git status and git log against the document and flag any drift before it works.

6

A directive for what happens next. Tell the next session exactly what to do first, or leave it blank and let it propose the most strategic next step and wait.

How to use it

1Copy the prompt below.Paste it as the last message of your current session, before you clear context. Do it proactively — don’t wait for hallucinations.
2Let the AI write the handoff.It saves an AI_Continuation_Document-<date>-<time>.md at the project root, prints the exact path, and outputs a Resume Prompt in a code block.
3Read it before you hand it over.This is the whole advantage over auto-compaction: the document is yours to correct.
4Start a fresh session and paste the Resume Prompt.The new AI reads the document, grounds itself against git, summarizes the state, and starts on your directive.
5Want it as a slash command, or with a directive baked in?The tool page composes the prompt for you — type a directive, or copy the one-paste /handoff-prompt installer./handoff-prompt <what the next session should do first>

What you did in the last thirty minutes matters ten times more than what you did three hours ago. The prompt is built around that.

Open the Handoff Prompt toolType a directive for the next session and it is baked into the prompt you copy — or install it as a /handoff-prompt slash command in a single paste.Open the toolFree · no account needed

The document the AI writes has eight sections, each aimed at a specific way continuations fail: Project Identity (objective, intent, hard constraints, memory files) · What Exists Right Now (branch, latest commit, whether it builds, what is working, partial, broken, or not started) · Architecture & Technical Map (stack, key files, end-to-end flow, the exact commands) · Recent Work, the highest-priority section (what changed, what was decided and why, lessons worth promoting to CLAUDE.md) · What Could Go Wrong · How to Think About This Project · the Do Not Touch list · and Confidence & Freshness flags for all of the above.

Questions

This prompt is versioned. The changelog below tracks every release, and copying from this page records which version you took — so when a notable release lands, this page can tell you.

Changelog

v2.1.12026-08-20Current

The Library is now this prompt's home

The full guide, version picker, and gated copy prompt moved into the Library from the marketing page — this item is now the prompt's home.

v2.12026-07-22

Slash-command setup is now a single copy-paste

The build instruction and the full command body ship as one prompt fenced by BEGIN/END COMMAND BODY markers, replacing the two-step copy nobody followed. The agent now confirms the exact file path where it saved the command.

v2.02026-07-22

Directive field, repo-anchored state, and verify-before-trust

Type what the next AI should tackle and it is baked into the prompt you copy. The continuation document now anchors itself in repo state (branch, latest commit, uncommitted files, whether the build passes), references CLAUDE.md / AGENTS.md instead of duplicating them, records the exact run/build/test commands, and scales its depth to the project. The resume prompt makes the next AI run git status and git log against the document and verify anything marked low-confidence.