← ClaudeAtlas

respawnlisted

Use when the user invokes /respawn, or asks to hand this session off to a fresh one in the same window, reset context without losing state, or continue seamlessly after the context fills up.
mdorf/agent-skills · ★ 0 · AI & Automation · score 70
Install: claude install-skill mdorf/agent-skills
# Respawn Hand this session off to a fresh agent in the same window. Two moves: write a complete handoff to a stash file that the next session ingests automatically, and show it to the user for review. The user then runs `/clear`; a UserPromptSubmit hook injects the stash at the first prompt of the fresh session, with a visible confirmation (sessions that start with nobody typing, like app-relaunch warm sessions, cannot consume it, and ongoing conversations in other windows are skipped). ## Step 1: Compose the handoff Write it for an agent with zero context. Include, in this order: 1. **Task and goal**: what this session is doing and why. 2. **State**: what is already done, with evidence (files changed, commits, test results, decisions the user approved). 3. **Open items**: what remains, in priority order, with enough detail to act on each. 4. **Next step**: the single concrete action the new agent should take first. 5. **References**: paths, URLs, ticket/PR numbers. Reference artifacts (plans, PRDs, commits, diffs) instead of duplicating their content. 6. **Suggested skills** the next agent should invoke, if any. Redact secrets (API keys, passwords, personal data). If the user passed arguments, treat them as what the next session will focus on and tailor the handoff accordingly. ## Step 2: Prepend the resume preamble The stash must open with instructions to the NEXT agent, above the handoff body: ``` You are resuming a session via /respawn. The previous agent in this