DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep AI coding sessions running through SSH drops with Session Kit

Start Claude Code or Codex on a remote host and reconnect later without losing the session.

Short answer: On the remote host, install Session Kit for your user following the README; then run sp new claude or sp new codex to start a session on the host; Close your terminal or let the SSH connection drop. The session keeps running on the host. All steps.

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

  1. On the remote host, install Session Kit for your user following the README.
  2. Run sp new claude or sp new codex to start a session on the host.
  3. Close your terminal or let the SSH connection drop. The session keeps running on the host.
  4. Reconnect over SSH and run kit.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer