Skip to content

offrig 1.0.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 00:26
· 49 commits to main since this release
ab31154

The first release. offrig has run real work since 2026-10-02, and since 2026-10-07 two
projects have used it at once, each in its own lane: training runs on job pods and
singing renders on jam pods. This release adds downloadable Windows binaries, structured
errors and exit codes, and a handbook. Everything below the next list was built before the
first release and ships in it.

  • Windows release binaries. Each version tag builds offrig.exe, offrig-mcp.exe and
    offrig-app.exe in CI into offrig-<version>-windows-x64.zip, with SHA256SUMS. The
    workflow stages a draft release and never publishes it; a person checks the draft first.
    Windows only, because offrig relies on Windows' OpenSSH, %APPDATA% and Zed's paths.

  • Side-car errors carry a code. Every tool failure, including bad arguments and an
    unknown tool, returns ok:false, a stable code, the error text, a next_action and
    retryable. error and next_action are unchanged, so existing callers keep working.
    Budget refusals have their own code, budget_exceeded.

  • CLI exit codes: 0 success, 1 something to fix on your side, 2 a runtime
    failure. Bad arguments now exit 1 instead of clap's 2.

  • CLI log levels: -q (errors and a command's own results only), -v (each RunPod
    call and its timing, on stderr) and --debug (failed response bodies and full error
    chains). The API key and any Bearer token are redacted at every level, and a panic
    prints one line unless --debug is set.

  • offrig-mcp --help and --version answer instead of starting to serve stdio.

  • The app has its icon, in the window and on the .exe.

  • scripts/verify.sh and scripts/verify.ps1 run the format check, clippy, the tests
    and a smoke run of each binary in one command.

  • Every project can see the others' pods. offrig_status lists each other offrig
    pod with its lane, project, GPU, price and status, and the open plan behind it: plan id,
    note, deadline and committed worst case. The other project's store is read strictly
    read-only, leaving no files behind. Pods offrig did not create are only counted and
    named. Pods carry OFFRIG_LANE, and on side-car launches OFFRIG_PLAN and
    OFFRIG_DEADLINE, as environment variables visible in RunPod's console.

  • A failed launch says what it cost. offrig_job gives the failure's code,
    retryable, and whether a pod was rented and billed. The new code pod_not_ready means a
    pod was rented but never became ready, and was terminated; no_capacity means nothing was
    rented. rented is filled as soon as the pod exists. A job_id that is really a plan id
    gets a message naming the right call.

  • Turning auto-stop off now survives a restart. It used to be saved as a missing key,
    which reloads as the 30-minute default. It is now saved as auto_stop_idle_minutes = "off"; numbers, including 0, are still minutes.

  • Coverage of at least 90% of lines, enforced. The tests grew from about 250 to more
    than 450 and cover 94% of lines. CI fails below 90% (cargo llvm-cov --fail-under-lines 90), and codecov.yml sets 90% targets for the project and for each change.

  • CI adds an OSV scan of Cargo.lock, and uploads coverage to Codecov over OIDC.

  • A handbook and landing page at https://mcp-tool-shop-org.github.io/offrig/.

  • Launch follow-ups from the first real runs of the hardware-limits build (issue #15).

    • A narrowed plan waits for capacity instead of failing. offrig_plan takes
      wait_minutes (stored with the plan, shown in the reply; 0 fails at once), else the
      profile's wait_for_gpu_minutes, and the job profile now defaults to 20 minutes.
      Nothing is rented while waiting; the wait is cut to the plan's remaining time less a
      five-minute reserve, so it stays inside the plan's deadline and adds nothing to its
      worst case. Each retry is reported: offrig_job shows progress.capacity_wait and a
      step naming the check. The no capacity error now says how to set a wait.
    • offrig_job derives the step of a booting pod from the pod's state on each call (what
      RunPod reports, and whether sshd answers on the published port), instead of reading the
      launch thread's last event, which could be minutes stale on a slow host. The thread's
      own last step is kept beside it as progress.launch_step.
    • The host's CUDA version is measured: after ssh is up the launch runs nvidia-smi once
      through the lane, reads CUDA Version: 12.8 or the newer CUDA UMD Version: 13.4, and
      fills rented.cuda_version (rented.cuda_source says nvidia-smi). A host below the
      plan's floor keeps the loud warnings entry; nothing is terminated. If nvidia-smi
      gives nothing, rented.notes says the floor is unchecked.
  • Job-tool gaps from real runs (issue #12).

    • offrig_get creates missing local parent folders instead of refusing with "is not a
      directory", as offrig_put already does on the pod side. A path that exists but is a
      file is still refused.
    • offrig_exec action=run runs a short command synchronously with a timeout (default
      30 s, at most 120 s) and returns stdout, stderr, exit_code and timed_out. The
      command is sent as base64 and run under timeout with stdin closed; output is capped
      at 64 KB per stream. name is now optional (only start, status and stop need it).
    • offrig_exec action=status collapses carriage-return progress lines in its log tail to
      their last frame, and takes save_log to copy the job's whole log to a local file.
  • Lane names in the plan, stale ssh blocks, and a container disk size (issue #6 and a new
    need from a slow-/workspace host).

    • offrig_plan shows the lane's ssh_alias and the pod_name its launch will create
      (for example offrig-ai-jam-sessions and offrig-ai-jam-sessions-jam), so a session
      can confirm its lane before launching without reading lanes.toml. offrig_status
      shows ssh_alias on each open plan too.
    • offrig_shutdown removes the lane's own ~/.ssh/config block once the pod is gone, but
      only when the block's label names that plan's pod. Another lane's block, and a block
      already rewritten for a newer pod, are never touched. A launch that fails and terminates
      its pod does the same. The reply reports ssh_block_removed. A pod ended by the
      watchdog at its deadline still leaves its block, as before; the next launch rewrites it.
    • offrig_plan takes container_disk_gb (1 to 2000), overriding the profile's
      container_disk_gb for that plan. The plan stores it and the launch sends it as
      containerDiskInGb; the reply and offrig_status show the size in force. The disk is not
      priced into the worst case (offrig prices GPU time only).
  • Hardware limits on a plan (issues #9 and #10). A plan could land on a fallback card the
    work could not use: a job plan rented an A100 host on a CUDA 12.8 driver, and the job's
    CUDA 13 PyTorch failed after setup. Worst-case pricing also always used the profile's top
    price ($3.49/hr), so a 3.5 h pod expecting a $2.09 card committed $12.22 instead of $7.32.

    • Profiles gain min_cuda (oldest host CUDA; the pod create sends every version at or
      above it as allowedCudaVersions, and a job profile uses the newer of this and its
      image's floor) and min_vram_gb (least total VRAM; smaller offers are never chosen).
      Both default to unset, so existing config.toml files load unchanged. The job profile
      now sets min_cuda = "13.0".
    • offrig_plan takes max_price_hr (total $/hr; dearer offers are left out and the worst
      case is max_hours x min(max_price_hr, dearest listed price left)) and no_fallback
      (only the profile's first GPU family; the two RTX PRO 6000 Blackwell editions count as
      one). A plan with nothing left is refused with the reason for each dropped GPU. The reply
      lists the GPUs that were left out.
    • The plan stores its GPU list, price and CUDA floor, and offrig_launch now rents only
      from them. Before this the launch built the pod from the profile's full list and ignored
      what the plan priced.
    • offrig_job (and the launch result) report the GPU type and, when the pod API reports
      it, the host CUDA version rented. A host older than the plan's floor, a GPU outside the
      plan's list or a price above the plan's produces a warnings entry and a WARNING
      next_action; nothing is terminated automatically. offrig_status shows each open
      plan's GPU list, price and CUDA floor, and each pod's GPU.
    • Unverified: whether the pod API reports the host's CUDA version, and under what field
      name. offrig reads machine.cudaVersion if present and says so in rented.notes when it
      is not, rather than treating a missing report as a pass.
  • A per-project default side-car port (issue #11). The shell driver's default port, 11439,
    was shared by every project on the machine, so another script taking it silently took a
    running side-car down. A lane now has a side-car port derived from its slot the same way
    its tunnel port is: 11700 + slot (11700 to 11763), a range above every lane tunnel
    and runner port (11500 to 11627), the plain lane and the local Ollama. Nothing is
    stored in lanes.toml; existing registries work unchanged.

    • offrig-mcp --sidecar-port --project <dir> prints the project's port (allocating its
      lane if it has none), or OFFRIG_SIDECAR_PORT when set. That value is refused when it is
      not a port, is below 1024, or is 11434, 11435, 11436 or inside the lane tunnel range.
    • --check also exits 1 when the port is held, naming the port and, if an offrig side-car
      answers there, the project it reports. The probe is a request the driver refuses before
      calling any tool, so a running side-car is not touched.
    • offrig_status reports the lane's sidecar_port.
    • Not in this repository: the HTTP driver itself (serve) lives outside it, so it still
      has to read the port from --sidecar-port and log why it loses a port. See the pull
      request.
  • One lane, one live plan (issue #7). A lane has one SSH alias, so a second pod in it
    re-pointed the alias and sent the first plan's offrig_put, offrig_exec and
    offrig_get to the wrong pod. offrig_launch now refuses while the lane has an open
    plan or any live pod it owns (lane <tag> has a live pod <name> (plan <id>); shut it down first), checked again under the store lock at the commit so two launches cannot both
    pass. offrig up and the app (plain lane) refuse a pod of another profile in the lane
    the same way; the same profile's pod is still reused.

  • offrig_put, offrig_exec and offrig_get take an optional plan_id instead of
    silently using the first open job plan. With several open job plans and no plan_id they
    refuse and list the plans (id, profile, pod name). With a plan_id they act only on that
    plan's pod, after checking its name is the one the plan owns, which a lane's other pod
    fails. One open job plan and no plan_id works as before.

  • offrig_status lists each open plan with its lane and pod name beside the project, and
    every job-tool reply (and offrig_job) states the project and plan_id it acted on.
    A model turn (offrig_ask) no longer picks an open job plan's pod for its tunnel.

  • Per-project lanes (issue #2): concurrent side-cars from two projects no longer collide.
    Each project gets its own SSH alias (offrig-<tag>), tunnel port (from 11500, never
    11434, 11435 or 11436) and pod names (offrig-<tag>-<profile>), recorded in
    lanes.toml in the config directory and allocated under a lock on the project's first
    plan. A plan records its lane; the launch check, status, shutdown, runner and ssh/tunnel
    paths use that lane and match only its pods. The tunnel's orphan reclaim kills an ssh
    only when its forward and alias are the lane's own, and is now testable without touching
    real processes. Shutdown refuses a pod whose name is not the plan's lane's.

  • The plain lane is unchanged: the CLI, the app and Zed keep alias offrig, port 11435
    and pods offrig-<profile>. Plans made before lanes keep running on it.

  • OFFRIG_CONFIG_DIR points offrig at another config directory (tests and sandboxes).


Download: offrig-1.0.0-windows-x64.zip (Windows x64). Check it against SHA256SUMS. It holds offrig.exe, offrig-mcp.exe and offrig-app.exe. Setup: Getting started.