Skip to content

compozy task profile set-worktree

Set a task worktree policy

For people running agent work5 pages in this section

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_run

Options

  -h, --help          help for set-worktree
      --mode string   Worktree mode: inherit, none, ref, or per_run
      --ref string    Attached worktree reference for ref mode

Options 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.

FormatCommand result
humanInteractive terminal rendering
jsonMachine-readable JSON rendering
jsonlOne JSON record per line when supported
toonCompact agent-readable rendering

Example:

compozy task profile set-worktree task_123 --mode per_run -o json

On this page