claude-sessions script lets you restore all Claude Code CLI sessions across projects at once

A developer published an open-source shell script called claude-sessions that solves a recovery gap in Anthropic's Claude Code CLI tool. The built-in claude --resume command only lists sessions from the current directory, making multi-project recovery tedious after a system crash. The script reads Claude Code's existing JSONL session files stored locally and aggregates every session from every project into a single fzf-powered picker, sorted newest first. Users can press Enter to reopen a highlighted session in a new iTerm tab or tmux window, with the picker remaining open to restore additional sessions. The tool requires fzf and Python 3, supports Linux via tmux, and is installable with a single curl command from GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in