Files
ruflo/plugins/ruflo-ruos
chaitanya-y20 13af5f1208 chore(plugins): give every plugin manifest a repository field
44 of the 48 `plugins/*/.claude-plugin/plugin.json` manifests had no
`repository`, while the four that do already point at the repo URL their
`homepage` names. The field is what the directory listing and
`npm view` read, and its absence is invisible until something reads it.

Add it to the 44 that lack it, then make `scripts/audit-plugin-manifest.mjs`
enforce it so the next plugin cannot ship without one:

- check 6 in the script header, the violation in `auditManifest`, and the
  clean-run summary line. A manifest may carry the repository as a string or
  as an object's `url`; anything else is reported as missing, and a value that
  is not an http(s) URL is reported separately.
- the required-field lists in `create-plugin` and `validate-plugin` skills, so
  a scaffolded plugin passes the gate it is told to satisfy.

Verified with the repo's own gates:

- `node scripts/audit-plugin-manifest.mjs` scans 48 manifests, clean.
- removing the field from one manifest reports `repository field: missing or
  empty` and exits 1; setting it to `ruvnet/ruflo` reports `repository is a URL`
  and exits 1; restoring it exits 0.
- `node scripts/check-plugin-manifests.mjs` is unchanged by this diff (its two
  nested-manifest findings belong to `ruflo-ai-team/directory` and
  `ruflo-x-gateway/directory`, which this change does not touch).
- `node scripts/audit-plugin-secrets.mjs` clean, 48 manifests.

No plugin version is bumped: the installed artifact's behaviour does not change
and no user-visible surface reads the field from an installed copy, so there is
nothing for a version bump to deliver. The `Plugin version bump` workflow will
flag the 44 manifests it sees as shipped files, and this PR needs the
`skip-plugin-version-check` label rather than 44 unrelated version bumps that
would collide with each plugin's own release cadence.

Closes #4774
2026-11-05 09:25:38 +05:30
..

ruflo-ruos

Run ruflo swarm agents on your own ruOS cloud desktops. The plugin can:

  • place an agent on a desktop;
  • stream the agent's output back;
  • show the agent in ruflo's swarm state;
  • hand finished work back for your review.

The plugin is optional. ruflo works the same without it.

Design and threat model: ADR-405.

Transports

Transport When Configure
ruOS fleet MCP / REST (default) The only path from outside your ruOS tenant (laptops, workstations, CI) In Claude Code: the connected mcp__ruos__* tools. In a terminal: RUOS_MCP_URL + RUOS_MCP_TOKEN, or the @cognitum/ruos login (~/.config/ruos/credentials.json)
Per-tenant SSH :2222 Only desktop to desktop inside your tenant's Fly 6PN, i.e. when ruflo runs ON one of your ruOS desktops --transport ssh, RUOS_SSH_KEY, optional RUOS_SSH_USER, RUOS_FLY_APP. Peers come from ~/.claude/federation/peers.json

Mint a desktop:control token with the narrowest lifetime. A read-only token can list desktops but cannot exec, start or stop them.

  • The plugin never contacts the desktop executor on :17870, which has no per-tenant auth (ruOS ADR-070).
  • It never calls desktop_delete or secret_delete.
  • It never logs your token.
  • With no credentials, every networked command exits 2 and makes no request.

Jobs. --jobs auto (the default) uses the live ruOS jobs API (ADR-105: long-poll, 64 KiB chunks) when your fleet answers it, and otherwise polls desktop_exec. The poll path is a detached nohup runner under ~/.ruflo-ruos/runs/, read by byte offset about 2 KiB at a time, because desktop_exec output is head-capped at about 4 KiB.

Commands

Command What it does
/ruflo-ruos:hosts Lists your desktops: state, heartbeat, and the ruflo agents on each
/ruflo-ruos:run Runs claude -p on a desktop, streams the output, and records the agent and its claim
/ruflo-ruos:view Delegates to /ruos view if installed, otherwise to a view-only desktop_share link
/ruflo-ruos:deploy Read-only hand-off: branch, HEAD, dirty and ahead counts of a repo, plus a summary for a human to review, merge and deploy. Never pushes, deploys or publishes.

Skill: ruos-host-run, the session path that uses the connected fleet MCP. Agent: ruos-host-operator.

CLI

CLI="node plugins/ruflo-ruos/scripts/cli.mjs"
$CLI status                                   # config + next auto-stop, no network
$CLI hosts
$CLI run --desktop "Work Desktop" --prompt-file task.txt --model sonnet --timeout 900
$CLI run --desktop <id> --prompt-file task.txt --start    # wakes a stopped desktop (billable)
$CLI stop --desktop <id> --run <runId> --confirm
$CLI desktop-stop --desktop <id> --confirm
$CLI attach --desktop <id> --run <runId>     # re-read a run after a restart (HOME persists)
$CLI logs --run <runId>
$CLI build --prompt-file task.txt             # exact desktop_exec strings for the session path
$CLI record start|output|end --run <runId> ...
$CLI deploy-info --desktop <id> --repo projects/app

Status line (mod)

When the ruflo mod (ruflo-mods) is loaded, this plugin's mod adds a ruos segment to ruflo's status line, e.g. ruOS 2 agents · Work Desktop, and clears it when no agent is running. It reads only .claude-flow/ruos/hosts.json, makes no network calls, and draws nothing without ruflo-mods. Verify it with claude plugin test plugins/ruflo-ruos.

Swarm state

Remote agents are recorded with ruflo's own tools: agent_spawn with config.host = {kind: "ruos", desktopId, desktopName, transport, runId}, then agent_update, then claims_claim/claims_release on ruos-run-<runId>. The plugin itself writes only to .claude-flow/ruos/:

  • events.jsonl: lifecycle events, with ids and sizes only;
  • audit.jsonl: one record per run (desktop, command sha256, start, end, exit, bytes), because ruOS does not audit the detached output;
  • hosts.json: the current host snapshot;
  • runs/<runId>.log: the run output, mode 0600.

Cost and auto-stop

ruOS stops cloud desktops at 23:00 America/Toronto on weekdays. desktop_keepawake does not override this.

  • A run that could cross the stop is refused unless you pass --ignore-autostop.
  • A stopped desktop is started only with --start.

Verify

bash plugins/ruflo-ruos/scripts/smoke.sh     # structure, security greps, full node --test suite
node plugins/ruflo-ruos/scripts/bench.mjs    # adapter overhead vs a raw local call