List recent Claude Code sessions across all project directories, sorted by real last-activity time A developer created a bash script, claude-history.sh, that lists recent Claude Code sessions across all project directories, sorted by the last activity timestamp recorded inside each transcript rather than file modification time. The script parses only the head and tail of each potentially large JSONL transcript to extract the working directory, title, and timestamp, and includes options to adjust the count, projects directory, and display session IDs for resuming. | /usr/bin/env bash | | | List the most recent Claude Code sessions across all directories. | | | | | | Sessions live at ~/.claude/projects/