Agent Session Recovery

•
16
•

Restores and manages orphaned agent sessions following system crashes, tmux failures, or network disconnects.

The recover-sessions skill provides a specialized management layer for agentic coding environments that use tmux and git worktrees. It identifies orphaned sessions where metadata exists but the active process has died, allowing developers to resume tasks with full transcript history or perform bulk cleanup of abandoned sessions. This tool is essential for maintaining a clean development environment and preventing context loss during long-running AI coding operations that span across system restarts or unexpected interruptions.

主な機能

01Summary statistics for active, orphaned, and archived agent states
0216 GitHub stars
03Metadata archiving to keep active agent directories organized
04One-command session resumption with full conversation transcript history
05Automatic detection of orphaned sessions via tmux state monitoring
06Flexible cleanup options for individual sessions or bulk archiving

ユースケース

01Resuming long-running coding agents after a SSH connection drop or terminal crash
02Auditing and cleaning up stale git worktrees and metadata from failed agent runs
03Recovering a complex multi-file refactoring task after an unexpected system reboot