Agent skill · vasilyu1983

ai-coding-agents-sessions

Designs session lifecycle for coding-agent runtimes. Use when implementing resume, transcript restoration, checkpoint rewind, cross-worktree recovery, or session-state persistence.

What it needs

About 11k tokens when loaded.

What this skill does

AI Coding Agents Sessions Use this skill to design or review the session lifecycle for a coding-agent runtime: session IDs, transcript persistence, resume pickers, stale-cache clearing, cross-worktree recovery, and what state must be restored versus recomputed. This skill owns runtime session lifecycle. For persistent repo instructions and always-loaded memory, use ../agents-memory/SKILL.md. ASCII Flow Quick Reference Question Read Outcome ---------- ------ --------- What belongs in a coding-agent session model? references/session-lifecycle-and-resume.md Session IDs, picker flows, stale-cache reset, and resume semantics How should transcripts recover across worktrees and summaries? references/transcript-restoration-and-cross-worktree-recovery.md Restoration boundaries, search, cross-project safeguards, and replay rules How do users decide between continue / rewind / clear / compact / subagent at each turn? references/context-lifecycle-and-branching.md 1M-context branching model, context rot zone, rewind > correction, compact-vs-clear, bad-compact causes, subagent mental test How do forked subagents change session lifecycle (cache, isolation, resume, cost)? references/context-forking.md Blank-vs-forked startup, CLAUDECODEFORKSUBAGENT=1 and /fork surfaces, cache-prefix economics, fork-as-exception rule Which resume path should I use (session ID / picker / ACP re-attach / recipe re-seed)? references/resume-path-decision-tree.md Decision tree, path comparison table, prompt-cache economics in subagent spawning How does OpenAI Codex split Session / Task / Turn protocol state? references/openai-codex-session-task-turn-protocol.md SQ/EQ protocol, response bookmarks, one-active-task invariant, and interruption rules How does Codex persist, resume, fork, and cloud-resume sessions? references/openai-codex-session-persistence.md SQLite-backed session index, codex resume UUID lookup, codex fork branch semantics, codex cloud task-apply When To Use Design resume and continue flows …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills vasilyu1983/ai-coding-agents-sessions

View the source on GitHub

Browse the @skills marketplace