Sessions
Sessions are persistent PTY processes that run in the background. They survive disconnects — start a process, close your terminal, reconnect later.cw run creates a local PTY session. cw launch creates a workspace on the platform. See Platform commands for workspace management.run
Start a new session in a persistent PTY.| Flag | Description |
|---|---|
name | Optional positional name before -- for stable messaging identifier |
--dir | Working directory for the process |
--tag | Tags for filtering and orchestration (repeatable) |
attach
Connect to a running session interactively. Detach withCtrl+B d.
| Flag | Description |
|---|---|
id | Session ID. Omit to auto-select the oldest unattached session |
--no-history | Don’t replay buffered output on attach |
list
Show all sessions with status, tags, age, and command.kill
Terminate a session by ID, tag, or all.logs
View captured output without attaching.| Flag | Description |
|---|---|
--follow, -f | Stream new output in real-time |
--tail | Show last N lines |
send
Send input to a session without attaching.| Flag | Description |
|---|---|
input | Text to send as positional argument |
--stdin | Read input from stdin |
--file | Read input from a file |
--no-newline | Don’t append a newline after input |