Who it is forA developer who runs AI coding agents on a remote Linux host and works from a laptop over SSH that sometimes drops.
The problemWhen the SSH connection or terminal closes, the agent session in that window is lost or hard to find again.
The outcomeSessions keep running on the host. After reconnecting, you open the picker and type the number of the session you want.
What you need first
- Linux with systemd, or macOS 14 or newer
- shpool 0.11.0, the stock build
- Claude Code, Codex, or both
- One trusted Unix account with per-user service access
- Python 3.10+ on Linux or Python 3.11+ on macOS, plus Bash 4+
Steps
- On the remote host, install Session Kit for your user following the README.
- Run
sp new claudeorsp new codexto start a session on the host. - Close your terminal or let the SSH connection drop. The session keeps running on the host.
- Reconnect over SSH and run
kit. - Type the session number to return to the session.
Prompt for your agent
On the remote host <host>, install Session Kit from https://github.com/dob323/session-kit using the latest release artifact, run `session-kit services enable`, then start a session with `sp new claude`. Verify with `kit` that the session is listed and still running after the SSH connection is closed and reopened.
Caveat. Session Kit runs on a Linux or macOS host with systemd or launchd services, so a host without those will not work as described.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for dob323/session-kit and "Keep AI coding sessions running through SSH drops"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer