Skip to content
BENIBIX Learn

claude respawn Command

Also known as claude respawn, claude respawn --all, Restart a background session

It restarts a background session and keeps its chat.

Think of it like

It is like you wake a friend who fell asleep. They go on from the same page.

Example

Lucy updates Claude Code while four sessions run. She runs claude respawn --all, and each one carries on with the same chat on the new version.

Why it matters

You get a fresh process or a new version, and lose none of the work so far.

Definition

claude respawn starts a background session again and keeps its chat. It works on one that is running or one that has stopped. Use it when a session stops, or stops answering. Add --all to start each running session again at once, so they all get a new version of Claude Code.

Example code

bash
claude respawn --all
Restart each one on the new version.
respawn gives one session a fresh process.

Common mistake

Using claude rm and starting over when a session is stuck. respawn keeps the chat. rm takes the session off the list.

Key takeaways

  1. 1
    Restarts one. Or --all.
  2. 2
    Chat kept. Same session.
  3. 3
    New version. After an update.

Compare

Learn it properly