Skip to content

feat: add worktree option to ClaudeAgentOptions#1

Merged
Mng-dev-ai merged 1 commit into
mainfrom
feat/add-worktree-option
Mar 15, 2026
Merged

feat: add worktree option to ClaudeAgentOptions#1
Mng-dev-ai merged 1 commit into
mainfrom
feat/add-worktree-option

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • Add worktree option to ClaudeAgentOptions (bool | str | None)
  • True creates a git worktree with auto-generated name
  • String value creates a worktree with the specified name
  • Maps to the CLI's -w, --worktree [name] flag

Test plan

  • test_build_command_with_worktree_bool — verifies --worktree flag without name
  • test_build_command_with_worktree_name — verifies --worktree my-feature with name
  • All existing tests pass

Support the --worktree CLI flag for creating git worktrees per session.
Accepts True for auto-generated names or a string for explicit naming.
@Mng-dev-ai Mng-dev-ai force-pushed the feat/add-worktree-option branch from c7b424b to a10ea61 Compare March 15, 2026 07:14
@Mng-dev-ai Mng-dev-ai merged commit f375889 into main Mar 15, 2026
4 of 9 checks passed
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