r/t3code • • 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 .venv stay warm inside the remote Snapshot so new Worktrees skip cold installs.
  • Run offrig mcp to expose a built-in stdio MCP server with 19 tools, bounded head-and-tail output capture, secret redaction, and a --read-only flag.
  • Run offrig skill install or npx skills add spiritledsoftware/offrig to install the bundled agent skill.
  • Run offrig shim install pnpm cargo to 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

8 comments sorted by

2

u/randomguy3993 18h ago

That video gave me ellipsis

1

u/ianpascoe_ 14h ago

Fair point... I definitely overdid the strobe speed on that provider flash reel. Going to tone down the background flashes before I post it anywhere else.

2

u/badhiyahai 16h ago

Dude add instavm.io to the sandbox providers and I would use it. That's my favorite among these.

1

u/ianpascoe_ 14h ago

Good call on instavm.io! Just checked their API and Firecracker microVMs + native OCI image snapshots/forking actually map almost 1:1 onto offrig's 3-layer Snapshot model.

Everything sits behind one narrow Provider trait in Rust, so I'm going to open an issue to add an instavm Provider. Anything specific about how you use InstaVM (custom OCI images, persistent volumes, egress rules) that you'd want supported from day one?

2

u/badhiyahai 9h ago

Thanks, Ian. For day one I’d start with a custom OCI base image, install dependencies once, then fork that snapshot into two worktrees and run a real build and test in parallel. That’s the first flow I’d want to try. I’d leave volumes and egress settings for later.

1

u/ianpascoe_ 1h ago

I'll ping you here once it's ready to try.

1

u/ianpascoe_ 14h ago

Here's the link to the issue if you'd like to comment:
https://github.com/spiritledsoftware/offrig/issues/67