termstash
An open-source, small CLI tool for recovering Claude Code sessions lost after a terminal is accidentally closed. It supports two usage modes: running directly via npx and installation as a Claude Code plugin.
Timeline (last 90 days)
termstash is an open-source tool built by developer kbuksakowski for recovering the most recent Claude Code session after a terminal is accidentally closed.
termstash can be run directly with the `npx termstash last` command with no installation step, listing recent Claude Code sessions and giving a command to resume them.
termstash can be installed as a Claude Code plugin with the command `/plugin install termstash --marketplace kbuksakowski/termstash`.
After installing the termstash plugin, users can trigger the recovery flow by telling Claude "I lost my session", and the plugin will locate the lost session and return the command to re-enter it.
termstash solves session "recovery" rather than "prevention": it does not stop the terminal from being closed, nor does it persist session state in real time or provide cross-device sync.
termstash is free and open source, with its code hosted on GitHub (kbuksakowski/termstash).
All Facts (6)
termstash is an open-source tool built by developer kbuksakowski for recovering the most recent Claude Code session after a terminal is accidentally closed.
50%Unverifiedtermstash can be run directly with the `npx termstash last` command with no installation step, listing recent Claude Code sessions and giving a command to resume them.
50%UnverifiedAfter installing the termstash plugin, users can trigger the recovery flow by telling Claude "I lost my session", and the plugin will locate the lost session and return the command to re-enter it.
50%Unverifiedtermstash solves session "recovery" rather than "prevention": it does not stop the terminal from being closed, nor does it persist session state in real time or provide cross-device sync.
50%Unverifiedtermstash is free and open source, with its code hosted on GitHub (kbuksakowski/termstash).
50%Unverifiedtermstash can be installed as a Claude Code plugin with the command `/plugin install termstash --marketplace kbuksakowski/termstash`.
50%