r/t3code • u/ianpascoe_ • 20h ago
I built an open-source CLI and MCP server to offload parallel coding-agent builds and tests from my laptop
Running concurrent test suites or Rust and TypeScript builds across several coding-agent Worktrees at once saturates laptop CPU and RAM.
I built offrig, an MIT-licensed CLI with no hosted control plane, to run those commands in remote Sandboxes while your local git Worktree remains the source of truth:
- Every git Worktree gets its own persistent remote Sandbox forked via copy-on-write from a shared lockfile-keyed Deps Snapshot. Remote-only paths such as
node_modules,target/, and.venvstay warm inside the remote Snapshot so new Worktrees skip cold installs. - Run
offrig mcpto expose a built-in stdio MCP server with 19 tools, bounded head-and-tail output capture, secret redaction, and a--read-onlyflag. - Run
offrig skill installornpx skills add spiritledsoftware/offrigto install the bundled agent skill. - Run
offrig shim install pnpm cargoto wrap local commands. Shims run locally while your laptop has headroom and route to a remote Rig when CPU, RAM, or concurrency slots cross your configured limits. If the remote Rig is unreachable before start, the Shim falls back to the local binary. - When an agent runs code generation or a formatter inside a Sandbox, offrig applies Write-back to your local Worktree on exit. If you edited the same file locally during the Run, offrig aborts Write-back with exit code 124 and leaves your Worktree untouched.
- You choose the compute Provider: your own Linux machine over SSH or Tailscale, local Docker or OrbStack, a self-hosted Cloudflare Containers Gateway, Modal, E2B, Daytona, Boat, or Fly Sprites.
Install: curl -fsSL https://offrig.dev/install.sh | bash or brew install spiritledsoftware/tap/offrig
Documentation and llms.txt: https://offrig.dev
GitHub: https://github.com/spiritledsoftware/offrig
6
Upvotes
2
u/randomguy3993 18h ago
That video gave me ellipsis
2
u/badhiyahai 16h ago
Dude add instavm.io to the sandbox providers and I would use it. That's my favorite among these.