Skip to content

feat: detect multiple Claude Code directories#54

Merged
muness merged 1 commit into
masterfrom
feat/multi-directory-claude-code
Jan 24, 2026
Merged

feat: detect multiple Claude Code directories#54
muness merged 1 commit into
masterfrom
feat/multi-directory-claude-code

Conversation

@muness

@muness muness commented Jan 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds detection for multiple Claude Code directories (~/.claude*)
  • Shows each directory separately in bottle integrate --list
  • Users can target specific directories via CLAUDE_CONFIG_DIR env var

Example Output

$ bottle integrate --list

Platform Integrations:

  Claude Code  installed (~/.claude)
  Claude Code  available (~/.claude-artium)
  Claude Code  available (~/.claude-work)
  OpenCode     available (opencode.json)
  Codex        installed (~/.codex/)

Commands:
  bottle integrate <platform> Add integration
  bottle integrate --remove <platform> Remove integration
  CLAUDE_CONFIG_DIR=~/.claude-work bottle integrate claude_code Target other Claude directory

Test plan

  • Run bottle integrate --list with multiple Claude directories
  • Run CLAUDE_CONFIG_DIR=~/.claude-work bottle integrate --dry-run claude_code
  • Verify backwards compatibility with default ~/.claude

🤖 Generated with Claude Code

Users with multiple Claude Code directories (~/.claude, ~/.claude-work,
etc.) can now see all of them in `bottle integrate --list` and target
specific directories using CLAUDE_CONFIG_DIR environment variable.

Changes:
- Add detect_directories() to find all ~/.claude* directories
- Add is_installed_at() to check specific directories
- Update is_detected() and is_installed() to respect CLAUDE_CONFIG_DIR
- Show each Claude directory separately in --list output
- Improve UX copy: "detected" → "available", "not detected" → "not found"
- Update help text and README with usage examples

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@muness muness merged commit 5254e9b into master Jan 24, 2026
2 of 4 checks passed
@muness muness deleted the feat/multi-directory-claude-code branch January 24, 2026 04:01
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.

1 participant