Unified conversation history across all project directories

Resolved 💬 3 comments Opened Mar 10, 2026 by RGladson Closed Mar 13, 2026

Problem

Claude Code stores conversation history per-project directory under ~/.claude/projects/. The claude -r (resume) picker only searches history.jsonl, which doesn't index all sessions — especially those started from different working directories.

In my case, I have 171 session files on disk across 16 project directories, but only 120 are indexed in history.jsonl. This makes it hard to find past conversations.

Proposed Solution

One or more of:

  1. A setting to default all sessions to a single project directory (e.g., ~) regardless of the working directory when claude is launched
  2. A unified search across all project directories when using claude -r, not just the current project's history.jsonl
  3. A --search-all flag for claude -r that searches session content across all project dirs

Current Workaround

Manually grepping session .jsonl files:

grep -rl "search term" ~/.claude/projects/*/*.jsonl

This works but is clunky and doesn't integrate with the resume picker.

Environment

  • Claude Code on Arch Linux
  • Multiple project directories accumulating over time

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗