Skip to content

Workflow

Claude Code Session Handoff with Origin

Close Claude Code sessions with enough context for the next agent to resume without replaying the chat.

Qi-Xuan LuUpdated 5 min read

Article packet

01

Workflows

02

Claude Code users doing multi-session work

03

5 min read

01

/handoff writes a Markdown session log and updates project status.

02

Durable decisions, lessons, gotchas, and facts become MCP captures.

03

/brief reads the handoff-maintained status file before loading Origin context.

01

Quick answer

Run /handoff before ending meaningful Claude Code work. It writes a Markdown session log, updates project status, and stores durable decisions, lessons, gotchas, and facts as MCP captures.

Origin turns session ending into a concrete artifact boundary. The session log preserves the narrative thread, the status file tracks Active and Backlog work, and granular captures become searchable memory.

02

When this problem appears

A session can end with working code but no durable explanation. The next agent may repeat old investigation or miss the reason a path was chosen.

03

Write a useful handoff

Keep it action-oriented and grounded in what changed.

  • Let /handoff preview pending captures from the current session before closing.
  • Confirm the resolved space so the next session searches the right project context.
  • Let the skill scan git context since the last handoff when the cwd is a repo.
  • State the goal and current status.
  • Capture decisions and why they were made.
  • Record gotchas or failed paths future agents should avoid.
  • Name open threads, Active work, Backlog items, and next steps.
  • Mention files or commands only when they orient the next agent and are not obvious from git.
  • Start the next session with /brief; it reads the handoff-maintained status file, then loads relevant Origin context.

What /handoff writes

~/.origin/sessions/<date>-<slug>.md
~/.origin/sessions/_status/<project>.md
~/.origin/sessions/_status/handoff-<project>.json
Origin MCP captures in the daemon DB

04

What to check next

A handoff is not a victory lap or a full transcript. It should make the next session easier to start.

Try the local memory loop

Install Origin, connect your AI client, and verify that capture, recall, and handoff work on your machine.

FAQ

Should every Claude Code session end with /handoff?+
No. Use it for meaningful work that will continue later.
Is this the same as Claude Code resume?+
No. Use Claude Code resume or continue when you want the same transcript. Use Origin /handoff for durable project status and cross-session or cross-tool context.