Ssh long session

From InternScience/DrClaw · View interactive version

Ssh long session is an AI agent skill from the GitHub repository InternScience/DrClaw. Manage long-running remote SSH jobs through tmux and inspect their output safely.

How to use this skill

Skill file

SSH Long Session

Use this when a remote command may run longer than one response window.

When To Use

Main Tools

  1. start_remote_tmux_session
  2. get_remote_tmux_session_status
  3. list_remote_tmux_sessions
  4. terminate_remote_tmux_session

Recommended Flow

  1. Use normal exec for short remote commands.
  2. For a long job, call start_remote_tmux_session with:
  1. Save the returned session_id in your reasoning and user response when relevant.
  2. Later, call get_remote_tmux_session_status(session_id=...) to inspect progress.
  3. Prefer the returned log tail. The tool only falls back to tmux capture-pane if the log is unavailable.
  4. When the job is no longer needed, call terminate_remote_tmux_session.

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.