Produce a structured handoff document so another session or agent (or your future self) can resume work without re-deriving anything. Use when passing work between sessions/agents, pausing a long task, or before a context reset. Ensures state, blockers, and next actions transfer cleanly.
Coding
session-handover
Try itShift-style continuity notes with ownership, limits, hazards, protected targets, receipts, and exact next action.
What it does
Shift-style continuity notes with ownership, limits, hazards, protected targets, receipts, and exact next action.
The skill document
Session handover
Use this skill when pausing work, changing the lead model, mining session history, or preparing continuity for a fresh model that will wake up without the outgoing model's private context.
Operating model
Treat the system as a working kitchen staffed in shifts.
The incoming shift does not need the outgoing shift's entire internal monologue. It needs an accurate station state:
- what is done;
- what is still outstanding;
- what is currently in progress and who owns it;
- what failed and must not be repeated blindly;
- what is running low or close to a limit;
- what is hazardous, uncertain, or requires verification;
- what is reserved or explicitly DO NOT TOUCH;
- the exact next safe action.
The purpose is operational continuity, not narrative completeness.
Goals
- Preserve signal: user constraints, decisions, stable workflows, current state, ownership, risks, and receipts.
- Remove noise: retries, verbose tool output, duplicated pings, abandoned speculation, and private chain-of-thought.
- Prevent a fresh model from duplicating work, acting on stale state, exhausting resources, or crossing protected boundaries.
- Leave the station usable and the next action executable.
Inputs
- Session directory:
~/.openclaw/agents//sessions/ - Optional index:
sessions.json - Memory files in the workspace (
memory/*.md;MEMORY.mdonly where allowed) - Current plans, blackboards, receipts, service state, git state, and task artefacts when relevant
Recommended output
Write or update the appropriate durable handover note, normally SESSION_NOTES.md, a daily memory entry, or the active typed blackboard.
Use this compact shift sheet:
- Outcome / station state — what is now true.
- Completed — finished work with receipts.
- In progress / owner — active work and who owns it; say
noneif empty. - Outstanding — bounded remaining jobs.
- Failures / do not repeat — failed approaches and exact boundaries.
- Running low / limits — tokens, time, storage, quotas, hop budgets, locks, deadlines, or other capacity.
- Hazards / verify — uncertain claims and checks required before action.
- Reserved / DO NOT TOUCH — protected files, data, services, credentials, user decisions, and exact target scope.
- Next action — one exact safe first step for the incoming shift.
- Receipts / rollback — paths, revisions, hashes, backups, commands, and status.
- Security redactions — confirm secrets and irrelevant private material were not copied.
Omit empty prose, but never silently omit the protected-target, hazard, resource-limit, or ownership state. Use none known where ambiguity would be dangerous.
Method
-
Inventory the station
- List relevant sessions and artefacts by date/size.
- Read current plans, blackboards, locks, service state, and receipts when the task used them.
- Resolve which work is complete, active, abandoned, or blocked.
-
Extract user intent and constraints first
- Read authenticated user messages before assistant/tool output.
- Preserve the newest applicable decision.
- Render exact protected targets as
DO_NOT_TOUCH:.
-
Separate state from story
- Record observed facts, decisions, actions, failures, evidence, and open questions distinctly.
- Do not pass guesses as facts.
- Do not copy private reasoning or verbose transcripts when the operational result suffices.
-
Establish ownership
- Name the active owner for in-progress work.
- If ownership cannot be established, mark the item unclaimed; do not imply it is safe to duplicate.
- Clear stale ownership only with evidence that the prior worker is no longer active.
-
Check resources and hazards
- Record remaining budgets, quotas, storage, deadlines, lock/revision state, and recovery boundaries where material.
- Flag anything that could run out, collide, become destructive, or leave the system unrecoverable.
- State what the incoming shift must verify before trusting volatile or high-impact state.
-
Attach receipts
- Prefer exact paths, revisions, hashes, timestamps, test outcomes, backups, and rollback instructions.
- A claim such as “fixed” requires proportionate proof.
-
Write the shortest complete handover
- Make the exact next action executable without reconstructing the whole session.
- Expire or remove stale notes rather than letting old state masquerade as current state.
-
Read it as the incoming shift
- Confirm a fresh model can continue safely without asking what happened.
- Confirm it cannot mistake reserved work for free stock or completed work for outstanding work.
Useful command snippets
ls -lt ~/.openclaw/agents/main/sessions/*.jsonl
jq -r 'select(.message.role=="user") | .message.content[]? | select(.type=="text") | .text' .jsonl
jq -r '.message.content[]? | select(.type=="toolCall") | .name' .jsonl | sort | uniq -c | sort -rn
Quality gate
A handover passes only if a fresh model can answer:
- What is true now?
- What was completed, and where is the proof?
- What remains, and who owns it?
- What failed or must not be repeated?
- What resource or limit is close to exhaustion?
- What must be verified before acting?
- What is reserved or forbidden to touch?
- What exact action should happen next?
- How is rollback performed if that action fails?
If any answer that matters is unclear, the outgoing shift has not finished closing down.
Related skills
Turn a written shift handoff checklist into one shift handoff voice clip per labeled cue. This shift handover voice studio records each handover checklist audio and shift change voice from the list the desk already wrote, then delivers 8 to 20 shift handoff clip files. Use it for shift handoff voice packs that keep one cue on each clip.
Use at the end of any session that discovered durable knowledge (architecture decisions, root causes, setup gotchas, workflow changes, security findings, reu...
Your last session knew things this one does not. Write a handover frame it can read, claim an advisory lock before you touch a shared file, and tell your other sessions what you are working on. Everything lands on your own event log, so the first call needs nobody's permission.
Structured end-of-session protocol for OpenClaw agents. Produces a complete, consistent journal entry at session close — summary, full file surface (read/written/external APIs), one self-caught failure delta, one behavioral fingerprint. Also runs pattern-update for any tracked behavioral patterns that fired this session. Use when a session ends, a task completes, or the user says 'log this,' 'log the session,' 'close out,' or 'write the journal.'
Produce a comprehensive prompt that hands off the current session's work to a fresh session for sub-agent-orchestrated execution. Use when the user wants to...