compozy session reparent
Nest a top-level session under another session, or make it top-level again
564 pages in CLI Reference
Usage
compozy session reparent <id> [flags]Examples2
Nest a top-level session under another session
compozy session reparent sess_child --parent sess_parentMake an adopted child top-level again, or take over a stopped spawned worker
compozy session reparent sess_child --top-level
Options3
- --help-h
- help for reparent
- --parentstring
- Parent session ID to nest the session under
- --top-level
- Make an adopted child or stopped spawned worker top-level
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
Adopt a session that has no parent as a child of another user session in the same workspace and profile, or make a previously adopted child top-level again. --top-level on a stopped spawned worker takes it over as a normal user session: its spawn TTL, parent auto-stop, creator wake, budget, and permission narrowing end. Subagents and continued or forked sessions keep their lineage.
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 session reparent <id> -o json