---
name: pitchstation-remote-work
description: Use the canonical PitchStation remote-work toolkit for single-box supervision or Git-backed fleet development and independent review. This two-file download documents the legacy host-local helper; use pitchstation-devbox for provisioning and lifecycle changes.
---

# Remote work: toolkit and legacy helper

A Dev instance (devbox) is an existing cloud workbench. For substantial development
and review, the canonical tool is **`tools/devbox-fleet/`**, with its own
`pitchstation-remote-work` skill and `bin/fleet` CLI. Read the
[Dev instances guide](https://pitchstation.ai/devbox-guide.html), the
[fleet guide and tutorial](https://pitchstation.ai/fleet-guide.html), and the bilingual
operator playbook at `docs/platform/devbox-remote-work-playbook.html` in a checkout.
Use `pitchstation-devbox` for provisioning, sizing, start/stop, source transport and
credential rules. Read the target project's `AGENTS.md` and `CLAUDE.md` first.

Live remote launch, credential transfer and publication examples:
**Not verified in this release**. Help, source and local fixture commands were
checked; fixture publication used a stub client, with no real remote request.

## Install the canonical toolkit

From the repository root:

```sh
scripts/install-local-skills.sh pitchstation-remote-work
# Or refresh all repository skills:
npm run skills:install
tools/devbox-fleet/bin/fleet --help
```

The installer puts the complete toolkit and its skill in both
`~/.claude/skills/pitchstation-remote-work` and
`~/.codex/skills/pitchstation-remote-work`. `CLAUDE_SKILLS_DIR` and `CODEX_SKILLS_DIR`
override these roots; Codex also respects `CODEX_HOME`. The installed command is
`bin/fleet` beside that skill, with a local playbook at
`docs/devbox-remote-work-playbook.html`. Refresh after pulling changes.

**Single-box mode** (`fleet local`) supervises an independent command queue, persists
state and can replace one report. **Fleet mode** uses GitHub plan/result branches to
coordinate dependencies, independent authors and checkers, review rounds and
integration across existing boxes. Its commands are `new`, `check`, `launch`,
`status`, `steer`, `land`, `doctor` and `handoff`; use their `--help` for arguments.
Boxes exchange work through GitHub branches; they do not need SSH access to one
another. Operator SSH handles setup and diagnostics.

A build has two review rounds and one heavy job per box at a time. Setup, plan
changes, landing on main and deployment each need a person or supervising session
with the applicable authorization. Never commit `.env*` files, including templates;
the fleet runner excludes them from package commits and refuses integrations that
change them. Preserve independent author/checker assignments across dependencies.
Check actual health, publication and alert delivery before claiming travel readiness.

## What this two-file download provides

`/downloads/pitchstation-remote-work-SKILL.md` and
`/downloads/pitchstation-remote-work-remote_work.py` remain a **legacy host-local
kit**. Save the Python download as `remote_work.py` beside this file. It requires
Python 3.9+ on POSIX and uses only the standard library. It supervises trusted argv
jobs on one host and optionally replaces an already-owned report; it supplies no
fleet scheduler, Git transport, independent review or integration. Installing the
canonical skill replaces this legacy skill entry; the repository installer does
not install this two-file kit.

## Run a prepared local queue

Run on the selected host, with an absolute private task directory outside tracked
source. Replace `/absolute/tasks/example` with the actual approved directory:

```sh
python3 remote_work.py --help
python3 remote_work.py init /absolute/tasks/example --title 'Example task'
# Review manifest.json and replace its example job with trusted argv/cwd values.
python3 remote_work.py start /absolute/tasks/example
python3 remote_work.py status /absolute/tasks/example
python3 remote_work.py render /absolute/tasks/example
```

`init` creates a version-1 manifest and an example workspace. Jobs specify `id`,
`argv` and an absolute existing `cwd`, with optional `requested_model` and
`requested_effort`. The manifest also holds a public `title`, optional `links`,
`max_parallel`, `heartbeat_seconds` and `stale_after_seconds`. Supply commands from
trusted operator input; the helper does not expand a shell, `~` or `$PWD` in job
arguments. It is a process supervisor: supply the project's required sandbox and
authentication settings yourself. Record the caller's requested model separately
from evidence of what ran. Commands in one queue must be independent.

The task directory contains private manifests, logs and `state.json`, plus a
sanitized `report.html`. Publish only the report. It omits commands and raw log
bodies, but public titles, job labels and links are intentional disclosures.
Exit zero records command success; acceptance and release remain separate checks.
`start` detaches the supervisor from SSH; no reboot hook is installed. Inspect
saved state and actual processes before recovery; the helper refuses to start an
already-started task again.

## Publish an existing owned report

Resolve the intended owner and audience and retain one owned share slug. Use an
already-configured `share-to-pitchstation` client on the remote host. Credential
transfer remains an explicit `pitchstation-devbox` `env-sync` choice. Keep publisher
configuration and the client outside the task directory, owned by the executing
user or root and not writable by group or others. The configuration accepts no credentials:

```json
{
  "client": "/absolute/skills/share-to-pitchstation/pitchstation.py",
  "slug": "OWNED_SHARE_SLUG",
  "interval_seconds": 60,
  "max_attempts": 3,
  "backoff_seconds": 30,
  "timeout_seconds": 20
}
```

```sh
python3 remote_work.py start /absolute/tasks/example \
  --publisher-config /absolute/config/publisher.json
# After completion, explicitly refresh the same share if needed:
python3 remote_work.py publish /absolute/tasks/example \
  --publisher-config /absolute/config/publisher.json
```

Choose either the plain `start` above or the publisher-enabled `start` for a fresh
task. The helper calls the sharing client's `replace` without an announcement note,
uses a minimum 30-second interval and bounded retries, and makes a final publication
attempt before exiting. Inspect publisher status separately from command outcomes.
This helper sends no owner alert email. Keep one report writer; inspect the served
content and its timestamp before saying it is current. Files owned by the same OS
user are not isolated from each other merely because they are in separate directories.

## Verify and hand off

Record source revision, actual test outcomes, findings, blockers, final report URL
and next action. Keep private logs separate. The helper supports explicit operator
records tied to an existing local evidence file:

```sh
python3 remote_work.py observe /absolute/tasks/example JOB \
  --model MODEL --effort EFFORT --evidence /absolute/evidence.txt
python3 remote_work.py assert /absolute/tasks/example verified \
  --evidence /absolute/evidence.txt
```

These are attestations, not independent validation of evidence or model provenance.
Changes after acceptance require new evidence. Distinguish passed, failed, skipped
and unavailable tests. Follow project test isolation and keep worker sandboxes.
Preserve state before waiting for review. Laptop-off continuity needs an observed
remote controller, workers and publisher; an SSH disconnect, reboot, cloud stop,
idle shutdown or expired login can affect them differently. Never fake activity to
defeat idle policy, blindly relaunch possibly live jobs, or infer commit, push,
landing or deployment permission from task execution.
