Command reference ยท Claude Code
/stop
Stops the current background session.
Only available while attached to a background session; the transcript and any worktree are kept. To detach without stopping, use /exit.
โ WHEN TO USE IT?
End a session running in the background
/stop
โ WHEN NOT TO?
Only detach but keep the session running
/stop ends the session; the transcript and worktree are kept, but the work does not continue.
Better: /exit
SOURCES
- Claude Code docs (official) โ code.claude.com