Skip to main content

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.

PyPI version Python Downloads License: MIT

Features

  • Session discovery — Scans ~/.claude/projects/ for all sessions across every project
  • Real-time search — Filter by project name, git branch, or message content (every prompt you typed, not just the first). Prefix with r: to search only the last assistant response
  • Project scoping — Toggle between current project and all projects (Ctrl+T)
  • Agent filtering — Hides agent/automation sessions (subagents, dispatched tasks, slash-command, heartbeat) by default; toggle with a
  • Resumability ranking — Default sort surfaces the sessions most worth resuming (human depth × recency); demotes one-turn and stale sessions
  • Sort modes — Cycle through Resumable / Modified / Messages / Project (Ctrl+S)
  • Readable rows — Strips filler openings ("can you please…"), middle-truncates long prompts, color-codes recency, and groups by project (in Project sort)
  • 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
  • Incremental cache — Per-file cache; only changed transcripts are re-parsed, so a new session elsewhere no longer triggers a full rescan
  • 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
  -a, --include-agents Include agent/automation sessions, hidden by default
  --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)
a Toggle agent/automation sessions (hidden by default)
Ctrl+S Cycle sort (Resumable / Modified / Messages / Project)
d Delete session (with confirmation)
q Quit

How It Works

  1. Scans ~/.claude/projects/*/sessions-index.json for indexed sessions
  2. Parses .jsonl transcript files in a single pass (exact message counts and first prompt), caching each file by (mtime, size) so unchanged transcripts are never re-read
  3. Filters out sidechains; classifies a session as agent/automation when no genuine human first prompt exists (slash commands, dispatched tasks, heartbeats, command output are not "genuine"), hiding those by default
  4. On selection, cds to the session's project directory and execs claude --resume <id>

Requirements

License

MIT

Metadata

Release files for claude-resume 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-resume 0.1.8
File Size Uploaded
claude_resume-0.1.8.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-resume 0.1.8
File Interpreter ABI Platform
claude_resume-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / claude_resume-0.1.8.tar.gz

Download URL claude_resume-0.1.8.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f8cd87c57994b90afd4a4b0fa48fb18e169d031ab9ec4b1350267e3103d3bce5
BLAKE2b-256 checksum
How to use checksums
5145b77f27896950090725c17b58988254775755d0bd90a5e89fb55a854c3f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / claude_resume-0.1.8-py3-none-any.whl

Download URL claude_resume-0.1.8-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
580a566fd4e7ae7f20ce1c1a8fa9cb329167205bc87c268e9d216450989ff14a
BLAKE2b-256 checksum
How to use checksums
27e08da1aec60c433b06585f3c253ed2ea8f8fc10c0790cd5d02c7e46c6e7f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page