Skip to content

feat: support multiple Claude directories via config#16

Merged
nahime0 merged 4 commits intoillegalstudio:mainfrom
nikicat:feat/custom-claude-dirs
Mar 26, 2026
Merged

feat: support multiple Claude directories via config#16
nahime0 merged 4 commits intoillegalstudio:mainfrom
nikicat:feat/custom-claude-dirs

Conversation

@nikicat
Copy link
Copy Markdown
Contributor

@nikicat nikicat commented Mar 26, 2026

Summary

  • Add claude_dirs config option to specify multiple Claude base directories to scan
  • When unset, auto-detect from CLAUDE_CONFIG_DIR env var (with ~/.claude fallback)
  • Fixes session discovery for users with custom CLAUDE_CONFIG_DIR

Test plan

  • Verify sessions are discovered from multiple directories when claude_dirs is set in config
  • Verify auto-detection works when CLAUDE_CONFIG_DIR is set but claude_dirs is not configured
  • Verify default ~/.claude fallback still works with no env var or config

🤖 Generated with Claude Code

nikicat and others added 4 commits March 26, 2026 10:38
Users with custom CLAUDE_CONFIG_DIR or multiple Claude installations
can now configure which directories to scan via the `claude_dirs`
config option. When unset, auto-detects from CLAUDE_CONFIG_DIR env
var (plus ~/.claude fallback).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reduce nesting in DiscoverSessions by extracting the per-directory
scan loop into discoverInDir and the worktree cache logic into
enrichWorktree. Promote wtInfo to package-level type.
@nahime0 nahime0 merged commit b74355f into illegalstudio:main Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants