xuzhougeng/wisp-science/skills/remote-compute-ssh/SKILL.md
remote-compute-ssh
Submit recoverable SSH-direct research Runs with live progress cards and model-free monitoring.
- Source repository stars
- 560
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-07-28
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
Use this skill after choosing an ssh: execution context. Wisp owns the job lifecycle locally: runincontext creates the Run record, stages explicit inputs with persisted byte progress, and starts a detached supervisor on the server. The Runs panel and SQLite record remain authori…
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/xuzhougeng/wisp-science --skill "skills/remote-compute-ssh"Inspect the Agent Skill "remote-compute-ssh" from https://github.com/xuzhougeng/wisp-science/blob/95d2c13d1665d46a388b5bdc998dcce0d5ec2eee/skills/remote-compute-ssh/SKILL.md at commit 95d2c13d1665d46a388b5bdc998dcce0d5ec2eee. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Dispatch workflow
1. Use short runincontext calls for read-only discovery such as nvidia-smi -L, which python3, or module avail. Free-form shell SSH is disabled. Use the interpreter path reported by the context probe; do not assume a python alias exists when the probe found python3. 2. Put the re…
Use short runincontext calls for read-only discovery such asPut the real command in one runincontext call. Include environmentTo watch the Run or wait for later work, call monitorrun exactly once with - 02
Results
SSH-direct v1 does not expand remote output globs or automatically download a remote directory. Do not promise that relative outputspecs will be harvested. When the command writes a result to a known durable server path, it may register that exact path as a remote Artifact refer…
SSH-direct v1 does not expand remote output globs or automatically download a remote directory. Do not promise that relative outputspecs will be harvested. When the command writes a result to a known durable server path…For a small result that must become local, wait until the Run is terminal, then transfer it as a separate quick operation and register the local file. Large outputs should remain remote references. - 03
Transfers from SSH contexts
Use transferbetweencontexts for one exact remote file or directory. The destination may be another selected SSH context or local. Never compose nested ssh, scp, or rsync -e ssh inside runincontext.
Use transferbetweencontexts for one exact remote file or directory. The destination may be another selected SSH context or local. Never compose nested ssh, scp, or rsync -e ssh inside runincontext.For a local download, set destinationcontextid to local and provide the exact new absolute local path. Ask the user when that path is unspecified. Wisp stages the item beside the destination, never overwrites an existin…When the user approves persistent A→B trust, call configuresshtrust first. It creates a dedicated key on A, carries only the public key through Wisp, installs it on B, and verifies the directed edge. The transfer then p… - 04
Cancellation and recovery
cancelrun({"runid":"..."}) changes an SSH Run to cancelling. Wisp verifies the persisted token, PGID, and Linux process start time before sending TERM to the remote process group; it records cancelled only after remote confirmation. If the server is temporarily unreachable, the…
cancelrun({"runid":"..."}) changes an SSH Run to cancelling. Wisp verifies the persisted token, PGID, and Linux process start time before sending TERM to the remote process group; it records cancelled only after remote…Active statuses are submitted, running, and cancelling. Terminal statuses are succeeded, failed, timedout, cancelled, and lost. lost means the remote token/control directory/process identity was definitively missing, no… - 05
Current boundary
This implementation is SSH-direct and assumes a Linux-like server with sh, bash, nohup, setsid, and /proc. Do not daemonize or create a new session inside the job, because that escapes process-group cancellation.
This implementation is SSH-direct and assumes a Linux-like server with sh, bash, nohup, setsid, and /proc. Do not daemonize or create a new session inside the job, because that escapes process-group cancellation.Scheduler lifecycle is not implemented yet. Do not submit sbatch, qsub, or bsub through this direct runner: the Run would only track the short submit command, not the scheduler job. On a shared login node, ask the user…
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
The control directory is `~/.wisp-science/runs/<run-id>` and the command startsRuns scripts
The documentation asks the agent to run terminal commands or scripts.
For a small result that must become local, wait until the Run is terminal,Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 85/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 560 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- xuzhougeng/wisp-science
- Skill path
- skills/remote-compute-ssh/SKILL.md
- Commit
- 95d2c13d1665d46a388b5bdc998dcce0d5ec2eee
- License
- AGPL-3.0
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
Remote compute over SSH
Use this skill after choosing an ssh:<alias> execution context. Wisp owns the
job lifecycle locally: run_in_context creates the Run record, stages explicit
inputs with persisted byte progress, and starts a detached supervisor on the server.
The Runs panel and SQLite record remain authoritative if the conversation ends
or Wisp restarts.
Dispatch workflow
- Use short
run_in_contextcalls for read-only discovery such asnvidia-smi -L,which python3, ormodule avail. Free-form shell SSH is disabled. Use the interpreter path reported by the context probe; do not assume apythonalias exists when the probe foundpython3. - Put the real command in one
run_in_contextcall. Include environment activation in the command so the Run is reproducible. - To watch the Run or wait for later work, call
monitor_runexactly once with the returned Run id. Wisp inserts a live card in the conversation, suspends the tool without additional model calls, and resumes the same agent turn with the terminal result. For fire-and-forget work, report the Run id and end the turn instead. - Use
get_runonly for one explicit status snapshot; never call it repeatedly to wait. Usecancel_runwhen the user asks to stop.
Never monitor a Run with Start-Sleep, sleep, ssh ... ps, kill -0, a
shell polling loop, nohup, background &, or hand-written PID files. Those
duplicate the control plane and can strand the agent turn. A transient SSH
error is stored as last_poll_error; do not resubmit, because Wisp retries the
same idempotent remote handle.
{
"context_id": "ssh:gpu-box",
"title": "Motif enrichment across 2,000 backgrounds",
"command": "source ~/miniforge3/etc/profile.d/conda.sh && conda activate genomics && python motif_enrichment_analysis.py",
"timeout_secs": 14400,
"input_paths": ["scripts/motif_enrichment_analysis.py"]
}
Then, when live monitoring is needed:
{ "run_id": "<id returned by run_in_context>" }
Pass that object to monitor_run once. The call may remain suspended for hours;
it does not consume model tokens while the Run Manager watches the job.
input_paths are project-relative local files. Wisp validates them, copies
them into an isolated inputs/ directory, and flattens them to their basenames.
The command starts in that directory, so the example above can use the staged
script by basename. Upload progress, throughput, and ETA appear in the Run card. For a large dataset already on
the server, reference its absolute remote path in command; do not copy it
back to the laptop just to send it out again.
A remote command or application exiting non-zero is normal exploration after a successful login. Read stderr, correct the command from the probed capabilities, and continue. Stop only when SSH rejects authentication or host trust; do not repeat a rejected login with guessed credentials or SSH options.
The control directory is ~/.wisp-science/runs/<run-id> and the command starts
in its inputs/ subdirectory. stdout and stderr are
tailed into the Run record. The SSH supervisor requires setsid, GNU-compatible
timeout, bash, and /proc; a missing prerequisite fails the Run instead of
running without a wall-time limit. Wisp maps the supervisor timeout marker to
timed_out.
Results
SSH-direct v1 does not expand remote output globs or automatically download a
remote directory. Do not promise that relative output_specs will be
harvested. When the command writes a result to a known durable server path, it
may register that exact path as a remote Artifact reference:
{
"output_specs": [
{
"glob": "ssh://gpu-box/home/me/project/results/motif_enrichment_all.tsv",
"kind": "table",
"residency": "remote"
}
]
}
For a small result that must become local, wait until the Run is terminal, then transfer it as a separate quick operation and register the local file. Large outputs should remain remote references.
Transfers from SSH contexts
Use transfer_between_contexts for one exact remote file or directory. The
destination may be another selected SSH context or local. Never compose
nested ssh, scp, or rsync -e ssh inside run_in_context.
For a local download, set destination_context_id to local and provide the
exact new absolute local path. Ask the user when that path is unspecified.
Wisp stages the item beside the destination, never overwrites an existing
path, and removes partial staging data after failure or cancellation. Call
monitor_run once with the returned Run id.
When the user approves persistent A→B trust, call configure_ssh_trust first.
It creates a dedicated key on A, carries only the public key through Wisp,
installs it on B, and verifies the directed edge. The transfer then prefers
rsync when both servers provide it and falls back to scp. If the user does not
want server SSH configuration changed, select the relay route; Wisp downloads
to a private local temporary directory and uploads with B's separately stored
credentials.
Cancellation and recovery
cancel_run({"run_id":"..."}) changes an SSH Run to cancelling. Wisp
verifies the persisted token, PGID, and Linux process start time before sending
TERM to the remote process group; it records cancelled only after remote
confirmation. If the server is temporarily unreachable, the Run stays
cancelling and retry continues after reconnection or app restart.
Active statuses are submitted, running, and cancelling. Terminal statuses
are succeeded, failed, timed_out, cancelled, and lost. lost means
the remote token/control directory/process identity was definitively missing,
not merely that one SSH poll failed.
Current boundary
This implementation is SSH-direct and assumes a Linux-like server with sh,
bash, nohup, setsid, and /proc. Do not daemonize or create a new session
inside the job, because that escapes process-group cancellation.
Scheduler lifecycle is not implemented yet. Do not submit sbatch, qsub, or
bsub through this direct runner: the Run would only track the short submit
command, not the scheduler job. On a shared login node, ask the user for a
dedicated compute host or explain that scheduler-aware submit/poll/cancel is a
separate capability still needed.
Alternatives
Compare before choosing
event4u-app/agent-config
design-review
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
K-Dense-AI/scientific-agent-skills
dask
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.
K-Dense-AI/scientific-agent-skills
neurokit2
Use NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, variability, and complexity. Trigger when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.
K-Dense-AI/scientific-agent-skills
biopython
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.