mcpbeat Sign in

Remote Compute SSH Agent Skill

Submit recoverable SSH-direct research Runs with live progress cards and model-free monitoring.

2k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
859
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/xuzhougeng/wisp-science --skill remote-compute-ssh

The instruction itself

6 sections, as written by the author

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_context 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.

  • Put the real command in one run_in_context call. Include environment

activation in the command so the Run is reproducible.

  • To watch the Run or wait for later work, call monitor_run exactly 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_run only for one explicit status snapshot; never call it repeatedly

to wait. Use cancel_run when 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 between local and 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 upload, set source_context_id to local, provide the exact

existing absolute local file or directory, and select an SSH destination.

Wisp rejects globs, symlinks, special files, and existing remote destinations.

Call monitor_run once with the returned Run id.

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.

Other skills for the same job

different authors, same section of the catalogue
Lamindb
by christophacham
×3

This skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use when managing biological datasets (scRNA-seq, spatial, flow cytometry, etc.), tracking computational workflows, curating and validating data with biological ontologies, building data lakehouses, or ensuring data lineage and reproducibility in biological research. Covers data management, annotation, ontologies (genes, cell types, diseases, tissues), schema validation, integrations with workflow managers (Nextflow, Snakemake) and MLOps platforms (W&B, MLflow), and deployment strategies.

22k tokens
Lamindb
by ComeOnOliver
×3

This skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use when managing biological datasets (scRNA-seq, spatial, flow cytometry, etc.), tracking computational workflows, curating and validating data with biological ontologies, building data lakehouses, or ensuring data lineage and reproducibility in biological research. Covers data management, annotation, ontologies (genes, cell types, diseases, tissues), schema validation, integrations with workflow managers (Nextflow, Snakemake) and MLOps platforms (W&B, MLflow), and deployment strategies.

41k tokens
Edge Pipeline Orchestrator
by BaggaT236
×1

Orchestrate the full edge research pipeline from candidate detection through strategy design, review, revision, and export. Use when coordinating multi-stage edge research workflows end-to-end.

28k tokens scripts
Resubmit Pipeline
by wanshuiyin

Workflow 5: orchestrate a text-only resubmit of a polished paper to a different venue under hard constraints (no new experiments, no bib edits, no framework changes, never overwrite prior submissions). Use when user says \"resubmit pipeline\", \"重投流程\", \"port paper to <new venue>\", \"resubmit to <venue>\", \"tighten paper for resubmission\", or has a rejected/withdrawn paper to move to a different top venue under tight time budget.

8k tokens
Resubmit Pipeline
by wanshuiyin

Workflow 5: orchestrate a text-only resubmit of a polished paper to a different venue under hard constraints (no new experiments, no bib edits, no framework changes, never overwrite prior submissions). Use when user says \"resubmit pipeline\", \"重投流程\", \"port paper to <new venue>\", \"resubmit to <venue>\", \"tighten paper for resubmission\", or has a rejected/withdrawn paper to move to a different top venue under tight time budget.

8k tokens
Setup
by fcakyon

This skill should be used when user encounters "paper-search MCP error", "Docker not found", "Docker not running", "paper search not working", or needs help configuring paper search integration.

146 tokens
AWS Wechat Article Topics
by aiworkskills

公众号选题|爆款标题|热点追踪|系列策划 — 公众号 AI 选题与标题生成,覆盖热点调研、选题策划、起标题、写摘要、系列排期。面向自媒体编辑、内容运营。触发词(**单独触发仅限对已有标题/摘要的修改**):「改标题」「换个标题」「重起标题」「优化标题」「标题再想想」「换个标题试试」「改摘要」「重写摘要」「优化摘要」「摘要再优化下」。新做选题、起新标题、策划系列/内容日历、追热点都请走 aws-wechat-article-main;需要多环节串联(写+审+排+配图+发)也走 main。

6k tokens zh
807 Regulations Eu Digital Services Act
by jabrena

Use when reviewing, designing, or modifying Java enterprise systems that may support intermediary services, hosting services, online platforms, marketplaces, content moderation, recommender systems, advertising delivery, complaint workflows, transparency reporting, or systemic-risk evidence under the EU Digital Services Act. This should trigger for requests such as Review a Java online platform for DSA controls; Design notice-and-action or appeal workflows; Add recommender, ad transparency, moderation, audit, researcher access, or privacy-safe observability evidence; Assess online-platform transparency controls before production release. Part of Plinth Toolkit

14k tokens

How to use it

Copy the folder

Take xuzhougeng/remote-compute-ssh from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.