{"version":"2.1.119","anchor":"cli-commands-for-background-session-management","canonical_anchor":"cli-commands-for-background-session-management","heading":"CLI Commands for Background Session Management","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.119\/e\/cli-commands-for-background-session-management","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.119","markdown":"### CLI Commands for Background Session Management\n\n**What**\n\nA suite of new top-level CLI commands for managing background sessions without entering the interactive fleet view.\n\n**Usage**\n\n`claude attach <id> # Attach to a running background session claude kill <id> # Stop a background session claude logs <id> # Show recent output from a session claude rm <id> # Remove worktree and job state for a stopped session claude respawn <id> # Respawn an exited session` **Details** - After backgrounding a session, these commands are displayed as a quick reference - `claude kill` retains the worktree (if used); prints `\"worktree retained at <path>\"` with a hint to use `claude rm <id>` for full cleanup - `claude rm` removes both the worktree and job state files - `claude respawn --all` respawns all exited sessions at once **Evidence** Session management commands (search for `\"claude attach <id>\"`, `\"claude kill <id>\"`, `\"claude rm <id>\"`, `\"claude logs <id>\"`)"}