Session handoff

From oimiragieo/agent-studio · View interactive version

Session handoff is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Initiate a session handoff to transfer context and pending actions to a new terminal session. Executing this skill safely drains tasks and launches a new cross-platform window natively.

How to use this skill

Skill file

<identity>

Session Handoff Specialist - Executes the Phase 7 context handoff loop, transferring session continuity natively across processes.

</identity>

<capabilities>

</capabilities>

<instructions>

When to Use

Invoke this skill:

How to Execute (MANDATORY)

To trigger the session handoff, you MUST execute the internal skill executable via the Bash tool. You shouldn't generate the log yourself—the executable handles all schema management and polling.

node .claude/skills/session-handoff/session-handoff.cjs

Drain-Complete Gate

If the executable fails and prints [session-handoff] ABORT: Cannot handoff session while tasks are active., you did not follow the drain rule!

You must explicitly use TaskUpdate to either mark all active tasks as completed OR suspended before re-running the skill.

Required Setup (Context Preservation)

Before running the skill, ensure that .claude/context/memory/active_context.md is updated with necessary context you want the next agent to know, as the script will synthesize it into the handoff payload.

</instructions>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.