Skip to content

compozy session move-to-profile

Copy a stopped session into another profile and archive the original

564 pages in CLI Reference

On this page6

Usage

compozy session move-to-profile <id> <profile> [flags]

Examples1

  1. Move a stopped session to the "work" profile

    compozy session move-to-profile sess_abc work

Options1

--help-h
help for move-to-profile

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

Synopsis

Copy a stopped user session into another profile and archive the original. The copy is a fork owned by the target profile and carries the conversation; the original keeps its profile and history, and past usage stays with it. A worktree is released and its branch checked out again in a new worktree owned by the target profile. Refused for a running, archived, or child session, live descendants, unarchived descendants outside its subagent archive family, or a worktree with uncommitted changes. Stopped subagents in its archive family are archived with the original. Archived, stopped descendants stay in the source profile. To place a session in a folder, use session move.

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 session move-to-profile <id> <profile> -o json