You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The local and all commands hardcode ~/.claude/projects as the path to find local Claude Code sessions. Users who store their Claude config in a non-default location (e.g. XDG-style paths, symlinked setups, or custom directories) have no way to point this tool at the right directory.
Claude Code itself respects the CLAUDE_CONFIG_DIR environment variable to override the default ~/.claude directory. This tool should do the same.
Proposed solution
Add a get_claude_config_dir() helper that checks os.environ.get("CLAUDE_CONFIG_DIR") and falls back to Path.home() / ".claude". Replace the two hardcoded Path.home() / ".claude" references in local_cmd and all_cmd with calls to this helper.
Problem
The
localandallcommands hardcode~/.claude/projectsas the path to find local Claude Code sessions. Users who store their Claude config in a non-default location (e.g. XDG-style paths, symlinked setups, or custom directories) have no way to point this tool at the right directory.Claude Code itself respects the
CLAUDE_CONFIG_DIRenvironment variable to override the default~/.claudedirectory. This tool should do the same.Proposed solution
Add a
get_claude_config_dir()helper that checksos.environ.get("CLAUDE_CONFIG_DIR")and falls back toPath.home() / ".claude". Replace the two hardcodedPath.home() / ".claude"references inlocal_cmdandall_cmdwith calls to this helper.Specifically:
local_cmd:projects_folder = Path.home() / ".claude" / "projects"becomesget_claude_config_dir() / "projects"all_cmd:source = Path.home() / ".claude" / "projects"becomesget_claude_config_dir() / "projects"--sourcehelp text on theallcommand to mention the env varNote
Scope is limited to the
~/.claudedirectory paths.~/.claude.jsonis left unchanged since it already has--org-uuidas an explicit override.I have a working implementation with tests and am happy to open a PR if this approach looks good.