agentleFS
jsvillalbatjsvillalbat/sevito-skills/skills/remote-agents/SKILL.md

remote-agents

Skill0 starsChanged 3 months agoMITView on GitHub

Runs a long or expensive coding-agent task headlessly on a remote SSH host (e.g. claude -p or codex exec) instead of the local machine, so the job survives disconnects and doesn't block the local machine while it runs. Tracks job state as files on the remote host, polls status, and pulls results back once done. Use when a task will run long, needs to keep going after closing the laptop, or should run somewhere other than the current machine.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. CodeAlive-AI/pragmatic-orchestration★ 45same name
    2. JairoTorregrosa/jaiskills★ 11same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If both claude and codex are set up on the remote host, review with whichever engine did not implement — mirrors the reasoning in …

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Remote Agents

A long-running coding-agent task tied to the local session dies the moment the laptop sleeps, the network drops, or the session ends. This skill submits the job to a remote host as a detached process instead — it keeps running independent of the connection, and file-based state means checking on it later is just reading files, not maintaining a live session.

When to use this

  • The task will run long enough that keeping a local session open for it is wasteful or risky (network drop, laptop sleep).
  • The work should survive you closing the laptop and checking back later.
  • The task should run on a different machine than the current one (more resources, a specific environment, isolation from local state).
  • Not for short interactive work — the setup overhead (self-contained prompt, submit/poll/collect cycle) isn't worth it for anything that finishes in a couple of minutes with you watching.

Instructions

1. Write a fully self-contained prompt

The remote job gets zero context from this session — only what's in the prompt you hand it. It must include:

  • The task itself, stated completely (no "as discussed above" — there is no above).
  • Verification commands the job should run to confirm its own work (see verify-before-done for what counts as real evidence).
  • Any constraints (files it must not touch, style/conventions to follow).
  • A REPORT contract: ask the job to print a clearly delimited block at the end so results are machine-parseable later, e.g.:

    REPORT_START
    status: <done|blocked|partial>
    summary: <what was done>
    verification: <what was run and what it showed>
    REPORT_END

A job that runs unsupervised and produces unparseable prose output is much harder to collect results from later — the contract is what makes collect.sh useful.

2. Submit the job

scripts/submit.sh <host> <job-id> <remote-work-dir> <claude|codex> [-- extra CLI args...] <<'PROMPT'
<the fully self-contained prompt from step 1>
PROMPT

This copies the runner script to the host, writes the prompt there, and launches the job as a detached, nohup'd process so it survives the SSH session ending. Pick a job-id you'll remember (a short slug, not a random UUID) — you'll use it for every subsequent command.

3. Poll status

scripts/status.sh <host> <job-id>

Reports RUNNING, DONE, FAILED (nonzero exit — check logs), or UNKNOWN (no state found — check the host/job-id). Safe to run repeatedly; each call is a cheap SSH round-trip reading one file.

4. Debug a failed or stuck job

scripts/logs.sh <host> <job-id> [lines]

Tails the remote job's output log. Check this before resubmitting — a FAILED status with no investigation just repeats whatever went wrong the first time.

5. Collect results once DONE

scripts/collect.sh <host> <job-id> [local-out-dir]

Pulls the full output log locally and, if the job printed a REPORT_START/ REPORT_END block per the contract in step 1, extracts it to report.txt separately from the raw log.

6. Cross-provider review (optional, for higher-stakes jobs)

If both claude and codex are set up on the remote host, review with whichever engine did not implement — mirrors the reasoning in codex-judge: same-model review inherits the same blind spots. Submit a second job whose self-contained prompt includes the diff and a review request, using the other engine.

7. Report back

State: job id, host, final status, what the collected REPORT block said (not just "check the remote host" — actually read and relay it), and whether verification evidence was included or the job reported it couldn't verify.

Scripts

  • scripts/remote-runner.sh — runs on the remote host; launches the detached job and writes status/output files. Copied there automatically by submit.sh.
  • scripts/submit.sh — local: pushes the prompt + runner to the host and starts the job.
  • scripts/status.sh — local: reads the job's current status.
  • scripts/logs.sh — local: tails the job's remote output log.
  • scripts/collect.sh — local: pulls results back and extracts the REPORT block.

These are a reference implementation — reviewed for correct shell syntax and tested locally for argument validation, but not exercised end-to-end against a real remote host (that requires infrastructure this skill can't assume). Read them before trusting them against a host you care about, and adapt the claude/codex invocation lines if your CLI's actual flags differ from what's assumed here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.