Claude Code in a named session
Inputs: Claude Code, session name claude, logging off.
# Start the session in the background tmux new -d -s claude # Run the agent inside it tmux send-keys -t claude: 'claude' Enter # Watch it. Ctrl-b then d leaves it running tmux attach -t claude
The session exists before the agent starts, so closing the terminal later leaves both running. Ctrl-b then d detaches on purpose.