Skip to main content

TUI session picker for Claude Code --resume

Project description

claude-resume

A TUI session picker for Claude Code --resume.

Browse, search, and resume previous Claude Code sessions from any project — without remembering session IDs.

Python 3.10+ License: MIT

Features

  • Session discovery — Scans ~/.claude/projects/ for all sessions across every project
  • Real-time search — Filter by project name, first prompt, or git branch
  • Project scoping — Toggle between current project and all projects (Ctrl+T)
  • Sort modes — Cycle through Modified / Messages / Project (Ctrl+S)
  • Session detail — View full metadata with Space
  • Delete sessions — Remove old sessions with d
  • Auto cd — Automatically changes to the session's project directory before resuming
  • Fast cache — Fingerprint-based cache for instant startup after first load
  • CLI passthrough — Extra arguments are forwarded to claude

Installation

pip install claude-resume

Or install from source:

git clone https://github.com/jinwoo/claude-resume.git
cd claude-resume
pip install -e .

Usage

claude-resume

CLI Options

claude-resume [OPTIONS] [-- CLAUDE_ARGS...]

Options:
  -g, --global      Start in global (all projects) mode
  -l, --local       Start in local (current project) mode
  --no-cache        Force reload sessions without cache

Examples:
  claude-resume                     # Pick a session to resume
  claude-resume -g                  # Show all projects by default
  claude-resume --no-cache          # Ignore cache, rescan sessions
  claude-resume -- --verbose        # Pass --verbose to claude

Key Bindings

Key Action
Enter Resume selected session
Space Show session detail
/ Focus search input
Escape Clear search
Ctrl+T Toggle scope (current project / all)
Ctrl+S Cycle sort (Modified / Messages / Project)
d Delete session (with confirmation)
q Quit

How It Works

  1. Scans ~/.claude/projects/*/sessions-index.json for indexed sessions
  2. Falls back to parsing .jsonl transcript files (reads first 50 lines + last line for efficiency)
  3. Filters out sidechains and sessions without user messages
  4. On selection, cds to the session's project directory and execs claude --resume <id>

Requirements

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_resume-0.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_resume-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file claude_resume-0.1.1.tar.gz.

File metadata

  • Download URL: claude_resume-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for claude_resume-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4e2c9b6f64bb7c0daf8bc628e816ad8540b422c90e56541e023a118170a32dd8
MD5 272c43dc51942fd85fd9e58e73c7f267
BLAKE2b-256 fb38c3dd98c0cee88df6b81f11d9b5999b0392459579a5de7397cf1a0cae0cc7

See more details on using hashes here.

File details

Details for the file claude_resume-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: claude_resume-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for claude_resume-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1f30c3c769d3f405812213b211635a6cf647e0d5d987a7e749be17643211b42
MD5 ce70dc01835bc0b392fdffeb9326fce1
BLAKE2b-256 17b06a27636612f07bfbc6e30c904fb84393ff372f345384ae30038441e6400f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page