
Remote Compute
Use when the user asks to run, submit, monitor, or cancel a job on a remote machine...
Install
npx skills add ai4s-research/open-science --skill remote-compute -g -a claude-code -y- Repository
- ai4s-research/open-science2.1k
- Category
- Engineering
- Updated
- 3d ago
- License
- See repository
- Context cost
- Mediumabout 2,494 tokens
- Runs scripts
- Yes, review before use
What it does
Use when the user asks to run, submit, monitor, or cancel a job on a remote machine over SSH, their own GPU/CPU server, a workstation, or a Slurm cluster ("the cluster", a login node, "my 3090 box", "the compute server"). Picks a saved machine, runs the work directly over SSH (or via Slurm when present), tracks it, and fetches results back into the workspace.
Remote compute over SSH
Run heavy work on the user's own machines over SSH with their own keys or their own interactive sign-in, you never install anything remote and never handle credentials yourself. A machine may be a plain server (CPU or GPU, no scheduler) or a Slurm cluster.
0 · Always run ssh through the app's config
Every ssh, scp and rsync below passes -F "$OPENSCIENCE_SSH_CONFIG". Write
it as $SSHCFG after defining it once per command you send:
SSHCFG="${OPENSCIENCE_SSH_CONFIG:+-F $OPENSCIENCE_SSH_CONFIG}"
That config makes your connection reuse the one the app already authenticated, which is what lets clusters with two-factor authentication work at all: the user signs in once, and every command after that needs no password or code. Without it, such a host refuses every command you send.
When a host asks for credentials
Many institutional clusters require a password or a one-time code on EVERY new
connection. If a command fails with a permission or authentication error
(Permission denied, no supported authentication methods), do NOT retry, and
do not report the failure yet: call the ssh_connect tool with that host.
It asks the desktop UI to prompt the user, and returns once the shared
connection is up, then retry your command unchanged.
Two errors that sign-in cannot fix, so do not call the tool for them: a host-key
error (Host key verification failed, the user must verify the fingerprint in
their own terminal once) and a network error (unreachable, timed out, unknown
host).
