session-closeout
Session closeout (Orca IDE + Claude Code)
Self-Evolving Skill: This skill improves through use. If a limit, a record format or an Orca flag changed, or a workaround was needed: fix this file and the script immediately, don't defer. Only update for real, reproducible issues.
Use this at the end of a working session, when the user wants it findable later (a recall name), understandable later (a handoff), and possibly gone now (its terminal closed to free memory). Naming and closing are independent: name without closing, or name and close. One command, scripts/orca-closeout, does both, safely. It follows Orca's bundled guide (orca skills get orca-cli) and Claude Code's own session records.
Decide first: keep, close, or sleep
| The user wants | Do | What survives |
|---|---|---|
| A name only; keep working or keep the tab | orca-closeout --title "…" |
Everything |
| This session's terminal gone, to free memory | orca-closeout --title "…" --close |
The transcript. Resume with the printed claude --resume <id>, or from Orca's Agent Session History |
| The whole workspace paused, to resume later as it was | Name it, then ask the user to put the workspace to Sleep in Orca | Every terminal and agent session in it. Orca's guide: "Use workspace Sleep, not close, when the terminals and agent sessions should resume later". There is no CLI command for Sleep |
Never use orca terminal close --worktree … --all here: it closes every terminal in the workspace, other sessions' included, and deletes their resume records.