feat(kugetsu): add git worktree isolation per session #22
Reference in New Issue
Block a user
Delete Branch "feat/issue-19-worktree-per-session"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of issue #19 Phase 3 implementation
- Each issue session gets isolated git worktree to prevent workspace conflicts - Worktree created on 'kugetsu start', removed on 'kugetsu destroy' - Worktree path: ~/.kugetsu/worktrees/{sanitized-issue-ref}/ - Branch naming: fix/issue-{number} or fix/{identifier} - Worktree always recreated on start (guaranteed clean state) - 'kugetsu list' now shows worktree path - 'kugetsu prune' also cleans orphaned worktrees - 'kugetsu continue' runs opencode with --workdir pointing to worktree - Update SKILL.md to v2.2 with worktree documentation Part of issue #19 Phase 3 implementation