-
Notifications
You must be signed in to change notification settings - Fork 325
Open
Description
Overview
Currently, claude-squad creates worktrees in a fixed location (~/.claude-squad/worktrees/
). To support enterprise workflows where worktrees are organized alongside the main repository, we need configurable worktree paths.
Current Behavior
- Worktrees are created in:
~/.claude-squad/worktrees/<sanitized-name>_<timestamp>/
- This location is hardcoded in
session/git/worktree.go
Desired Behavior
- Allow configuration of worktree location pattern
- Support patterns like:
{repo_root}/worktree/{issue_number}-{title}
- Variables available:
{repo_root}
,{repo_name}
,{issue_number}
,{title}
,{timestamp}
Implementation Details
- Add
worktree_pattern
to config.json - Update
GitWorktree.Create()
to use the pattern - Parse pattern variables and substitute values
- Default to current behavior if not configured
Example Configuration
{
"worktree_pattern": "{repo_root}/worktree/{issue_number}-{title}",
"branch_prefix": "fix/issue-"
}
This would create worktrees at: /path/to/repo/worktree/123-fix-bug/
bokhi, ndbroadbent, mirkancal, amitkot, hakin19 and 3 more
Metadata
Metadata
Assignees
Labels
No labels