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.
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 - Recency-first default — Default sort puts the most recently used session on top; the resumability ranking (human depth × recency, demoting one-turn and stale sessions) is one
Ctrl+Saway - 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-j/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
- Scans
~/.claude/projects/*/sessions-index.jsonfor indexed sessions - Parses
.jsonltranscript files in a single pass (exact message counts and first prompt), caching each file by(mtime, size)so unchanged transcripts are never re-read - 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
- On selection,
cds to the session's project directory andexecsclaude --resume <id>
Requirements
- Python 3.10+
- Claude Code installed
- Textual (installed automatically)
License
MIT
Metadata
Release files for claude-resume 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| claude_resume-0.1.11.tar.gz | 15.3 kB | Without provenance | Details for claude_resume-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claude_resume-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for claude_resume-0.1.11-py3-none-any.whl |
Total release size: 30.8 kB
Release files / claude_resume-0.1.11.tar.gz
| Download URL | claude_resume-0.1.11.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a92dbc9f4769067bb2292ea4665447c9b386144a91a5a39371eb6bacbbbbad4
|
|
BLAKE2b-256 checksum How to use checksums |
0c809a34ff2318a76fbc9874cf1d2ec7f111ccab6348848622d6546542ee6f04
|
| 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.11-py3-none-any.whl
| Download URL | claude_resume-0.1.11-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
862281ff3b2c42e354539478d2041c4fe374a227fc9718065baa30c3a703c6ca
|
|
BLAKE2b-256 checksum How to use checksums |
8bd47c4296110094a18ee873a141ebaa8083e4d2dcd5f218508fe18febb9352b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for claude-resume 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.