compozy task profile set-worktree
Set a task worktree policy
566 pages in CLI Reference
On this page5
Usage
compozy task profile set-worktree <id> [flags]Examples3
Create a fresh worktree for every future run
compozy task profile set-worktree task_123 --mode per_runBind future runs to an existing ready worktree
compozy task profile set-worktree task_123 --mode ref --ref feature-docsOutput example
compozy task profile set-worktree task_123 --mode per_run
Options3
- --help-h
- help for set-worktree
- --modestring
- Worktree mode: inherit, none, ref, or per_run
- --refstring
- Attached worktree reference for ref mode
Inherited options3
- --json
- Emit JSON output
- --output-ostring
- Output format: human, json, jsonl, or toon (default "human")
- --profilestring
- Act as a profile for this command
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