Feature request: list/resume Claude Code sessions across all project directories

Resolved 💬 1 comment Opened May 19, 2026 by oren-hecht Closed Jun 18, 2026

Problem

claude --resume and claude --continue only operate on sessions in the
current working directory. There's no built-in way to see or resume sessions
across all projects on a machine.

If I don't remember which directory I was in when a conversation happened, my
only options today are:

  • cd around guessing, running claude --resume in each candidate, or
  • write a custom script that walks ~/.claude/projects/*/*.jsonl, reads each

file's ai-title entry, and reconstructs the original project path from the
encoded directory name (which is lossy when paths contain hyphens).

Proposal

A built-in command or flag for a global session picker, e.g.:

claude --resume --all # picker across every project dir
claude sessions list # non-interactive listing
claude sessions list --json # for scripting

Each entry should show the same info as today's per-dir picker (AI title,
last-modified time, message count) plus the originating project directory.

Why

  • Easy to lose track of which dir a useful conversation lived in.
  • The session data is already on disk and already has AI-generated titles —

the picker UI just needs to look beyond cwd.

  • The lossy /- encoding of project paths makes a reliable

user-space workaround impossible without also storing/reading the real cwd
from inside the JSONL.

Environment

  • claude-code CLI, Linux

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗