compozy task profile set-worktree
Set a task worktree policy
compozy task profile set-worktree
Set a task worktree policy
compozy task profile set-worktree <id> [flags]Examples
# Create a fresh worktree for every future run
compozy task profile set-worktree task_123 --mode per_run
# Bind future runs to an existing ready worktree
compozy task profile set-worktree task_123 --mode ref --ref feature-docs
# Output example
compozy task profile set-worktree task_123 --mode per_runOptions
-h, --help help for set-worktree
--mode string Worktree mode: inherit, none, ref, or per_run
--ref string Attached worktree reference for ref modeOptions inherited from parent commands
--json Emit JSON output
-o, --output string Output format: human, json, jsonl, or toon (default "human")Output Formats
The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.
| Format | Command result |
|---|---|
human | Interactive terminal rendering |
json | Machine-readable JSON rendering |
jsonl | One JSON record per line when supported |
toon | Compact agent-readable rendering |
Example:
compozy task profile set-worktree task_123 --mode per_run -o json