I Moved My AI Agents' CI From GitHub Actions to RWX. Nearly 3x Faster
My AI agents were waiting more than twenty minutes for CI. That’s the median. One in ten pull requests waited the better part of an hour.
And some were waiting, the machine they were running on was choking, with a load average of sixty to eighty on sixteen cores, because agents were compiling the same Rust project and running thousands of tests on the same box.
I wanted to move CI out of GitHub Actions, and the agents’ heavy builds and tests off my machine. One tool promised to do both, and I was skeptical it would work. So I ran it for two weeks on a real project with real agents, and I measured it against GitHub Actions and against running everything locally.
The results? CI became nearly three times faster, and for the slowest pull requests, five times faster. And with the agents’ builds and tests running somewhere else, my machine spent half as much time overloaded, with the same number of agents working.
I’m still using it. But it’s not for everyone. You’ll see where it’s faster, where its main selling point did nothing for me, and what it costs. And by the end of this video, you’ll know whether it’s for you.
GitHub Actions vs RWX Speed
RWX is a platform for running faster CI workflows, and it also gives agents sandboxes: remote environments, defined the same way as CI, where they can run any command against their local changes. We’ll start with the workflows.
Faster is easy to claim, so we need something to compare it with first.
The project I tried it on is Agent Deck, a workspace for running many coding agents in parallel. It’s mine, it’s written in Rust, and it has over eight thousand tests, so its CI is anything but trivial. Give it a try, and if you find it useful, star it on GitHub. It helps more people find it.
What matters here is that its CI runs on GitHub Actions, so that’s where we start, on the same commit we’ll run on RWX later. Normally, a push to a pull request starts it. I’m starting it by hand, so we don’t need to change any code just to get a run.
gh workflow run ci.yml --ref main✓ Created workflow_dispatch event for ci.yml at main
To see runs for this workflow, try: gh run list --workflow="ci.yml"This genuinely takes a while, so I’ll fast forward. Assume every wait from here on does the same. Once it’s done, let’s see the jobs.
gh run view 41960106818 | head -20The output is as follows.
✓ main CI · 41960106818
Triggered via workflow_dispatch about 13 hours ago
JOBS
✓ changes in 5s (ID 127024202630)
✓ build-release in 4m48s (ID 127024240505)
✓ fmt in 41s (ID 127024240521)
✓ clippy in 3m18s (ID 127024240569)
✓ devbox in 1m29s (ID 127024240573)
✓ nix in 8m59s (ID 127024240591)
✓ desktop-browser in 12m7s (ID 127024240598)
✓ security in 22s (ID 127024240602)
✓ build-macos in 18m26s (ID 127024240603)
✓ desktop-driver in 9m36s (ID 127024240612)
✓ desktop-web in 1m12s (ID 127024240629)
✓ cross-version in 4m35s (ID 127024240632)
✓ windows-cross-check in 2m53s (ID 127024240633)
✓ e2e-build in 7m27s (ID 127024240644)
✓ test in 10m24s (ID 127024240668)Focus on the Linux jobs, since those are the ones RWX can take over. RWX has no macOS or Windows runners, so build-macos stays on GitHub Actions no matter what. The Linux jobs needed almost fourteen minutes to reach a verdict, and the tests alone took over ten.
And this is already the optimized version. The original workflow was one big serial job. Splitting it into parallel jobs, compiling the tests once, and running them in shards cut more than a third of the time. That cost nothing, didn’t require a new vendor, and you can do it today. Keep that in mind before you rewrite anything.
Now RWX. There, a pipeline is a graph of tasks, and each task declares what it uses: the code, the toolchain, the output of other tasks. Because RWX knows each task’s inputs, it can cache by content. If the inputs didn’t change, the task doesn’t run. You don’t write cache keys, and you don’t maintain path filters that decide what to skip. I took the Linux part of Agent Deck’s CI and rewrote it as such a graph.
In the project itself, pull requests trigger it from GitHub. Here, I’ll start it from the CLI so we don’t need a pull request. Even though I’m starting it from my laptop, rwx run doesn’t run anything locally. It sends the definition to RWX’s cloud, together with whatever the remote doesn’t have yet, and waits for the result.
rwx run .rwx/ci.yml --waitThe output is as follows.
Run is watchable at https://cloud.rwx.com/dot/runs/01a1a9b2517a779fbe6a915c4f3dec3c
Run result status: succeededThe whole run took eight and a half minutes, against almost fourteen for the Linux jobs on GitHub Actions. The tests took under seven minutes instead of over ten. Faster, though not by a mile, and on machines the same size as GitHub’s runners. The setup tasks, like system packages and test tooling, came straight from the cache, because earlier runs already built them and the cache is shared across the whole account. The rest is compiling and testing, in parallel.
This run used the four-CPU setup Agent Deck uses for its pull requests. But one run proves little, so I let the agents use it for real, across more than two hundred CI runs. We’ll get to those numbers at the end.
RWX Content-Based Caching Explained
RWX’s main selling point is content-based caching: a task whose inputs didn’t change doesn’t run. Let’s see it by running the same pipeline again, without changing anything.
rwx run .rwx/ci.yml --waitRun is watchable at https://cloud.rwx.com/dot/runs/01a1a9c2c5737f989b93e737434992c8
Run result status: succeededSeconds. Every task was a cache hit, so nothing executed. That’s content-based caching in its ideal form, and it’s also something nobody does in real life. Nobody reruns CI on code that didn’t change.
The everyday version is a flaky test failing. RWX doesn’t cache failed tasks, so a rerun repeats only what failed and takes everything else from the cache. GitHub Actions can rerun only the failed jobs too, but each of those jobs repeats its own setup before it gets to the test you care about. So the difference is tasks versus jobs. It’s real, but it’s much smaller than “seconds versus minutes”. And a faster rerun is not a fix. Flaky tests need fixing, and the ones you can’t fix should go. A test you can’t trust is worse than no test at all.
There’s a catch, and it hit this project hard. Some Agent Deck tests need the Git history, so the clone keeps the .git directory, and every new commit changes it. That means every task after the clone misses the cache on every commit, even when the files are identical. In this repository, content caching barely helped. The speed came from fast machines and the task graph. A project whose tasks have narrow, well-defined inputs would see much more of it.
What I used the most while porting the pipeline was something else. Let me change a file without committing it.
printf '\n// rwx demo: an uncommitted change\n' >> src/main.rs
rwx run .rwx/ci.yml --waitIncluded a git patch for uncommitted changes
Run is watchable at https://cloud.rwx.com/dot/runs/01a1a9c538e97b9c9ef8232e20b3bfd9
Run result status: succeededNo commit, no push. The CLI uploaded the uncommitted change as a patch, and the whole CI ran against it. It took about as long as the first run, because every task after the clone had to run again, which is the catch I just described.
GitHub Actions has nothing like it. It runs what’s pushed, so the same check there means a commit, a push, and a full run. But is that really a problem? How often do you need to avoid pushing? Push to a scratch branch, start the workflow by hand like we did earlier, and you get the same run with the same result. The only cost is a messy commit history, and a squash merge cleans that up. I used it a lot while writing the RWX pipeline, and it was convenient, but it’s a nice-to-have, not a reason to switch.
That’s CI. Now let’s look at something that’s actually new.
RWX Sandboxes for AI Agents
RWX sandboxes run commands remotely without moving the agent. That’s different from cloud agents, which move the agent itself into a remote box. Here, the agent keeps editing files locally, and whatever commands it sends to the sandbox, builds and tests for example, run on a remote machine. The agent stays where it is. The execution moves.
The sandbox is defined the same way as CI, with the same tasks and the same toolchain. If a test passes in the sandbox, it should pass in CI, as long as you keep the two definitions aligned.
Let’s see it with an agent, since that’s who sandboxes are for. This is Claude Code working on Agent Deck, whose instructions tell agents to compile and test in the sandbox. The prompt is an ordinary task, and it says nothing about RWX.
[user]
In the upgrade dialog, change the hint "Enter or Esc closes" to "Enter or Esc to close".The agent changed the code and the three snapshots that show the hint, here, on my machine. Then it ran the upgrade dialog’s tests with rwx sandbox exec, which started a sandbox, pushed the uncommitted changes to it, and ran the tests there. Then it ran the project’s checks, which sent clippy and the fast test suite to the same sandbox.
[agent]
I changed the upgrade dialog's closing hint from "Enter or Esc closes" to "Enter or Esc to close". All tests and checks pass;
nothing is committed yet.
- Code: I changed both hints in src/upgrade_dialog.rs:777-778. The longer one, shown when the dialog's content scrolls, now reads
"PgUp/PgDn scroll · Enter or Esc to close". It still fits the narrowest allowed dialog width.
- Snapshots: I updated the three snapshots that show the hint (upgrade_dialog_002, 003 and 015 under tests/snapshots/).
- Tests: all 25 upgrade-dialog tests passed in the RWX sandbox. cargo xtask affected-checks --run (fmt, clippy and cargo
test-fast) also passed: 8643 tests, 0 failed.
...Over eight and a half thousand tests, plus clippy across the whole workspace, and none of it compiled on my server. The sandbox is a sixteen-CPU machine with sixty-four gigs of memory, and the whole task, from the prompt to the report, took under eight minutes, starting the sandbox included.
The sync works in both directions. Before every command, the uncommitted changes go up. After it, anything the command changed in the project comes back. Files Git ignores, like build output in target, stay in the sandbox, which is what you want, since nobody needs gigabytes of compiled binaries flowing back after every test run. Here, nothing came back, because the agent had already updated the snapshots itself, locally.
That sync has a cost. Every command syncs first, and after every sync, Cargo recompiles the project’s own crates, even if the sandbox built everything a minute earlier. So small, frequent commands like formatting are faster locally, which is why the project’s checks keep cargo fmt on the machine. The sandbox pays off on the big ones.
The agent also left the sandbox running when it finished. That’s on purpose, its instructions say so, and we’ll get to why later. It stops itself after five idle minutes, and since a sandbox is billed per second for as long as it’s active, idle or not, you pay for those minutes. Stopping it by hand isn’t fully reliable either. I’ve seen rwx sandbox stop time out and leave a sandbox running more than once, so check with rwx sandbox list afterwards.
That’s the mechanism. Now to the part that matters most. What happened when agents used it for real, for two weeks?
Running AI Agents on RWX
This is where the numbers from the start of the video come from: the same project and the same agents, measured with RWX and without it.
That’s Agent Deck, and it’s developed mostly by agents, spread across several development servers. Each server usually runs several pieces of work in parallel, each done by a team of agents with different roles: an orchestrator, a coder, a reviewer, an auditor, a tester, and one for releases. Every change is built and tested before it’s allowed to be committed, and every pull request goes through CI. That building, testing, and CI is what moved to RWX.
I measured one of those servers, a sixteen-core box, because so far it’s the only one where I collect metrics and traces. On it, I ran three batches of real work. Five pieces of work in parallel with RWX doing CI and running the agents’ builds and tests in sandboxes. Then five in parallel with everything local and CI on GitHub Actions. Then ten in parallel on RWX again, for over a week. Everything was traced with OpenTelemetry and sent to Honeycomb, so the numbers you’re about to see come from what the agents actually did, not from a benchmark.
CI first, measured across over two hundred CI runs, forty-four on GitHub Actions and the rest on RWX. On GitHub Actions, a pull request waited a median of twenty-two minutes for a Linux verdict, and one in ten waited forty-eight or more. On RWX, with every task on four CPUs, the same size as GitHub’s runners, it was seven and a half minutes at the median and under ten at the ninetieth percentile. That’s nearly three times faster at the median, and five times faster for the slowest runs.
Then the checks agents run before committing, most of all the project’s main test suite, eight and a half thousand tests that take a few minutes to compile and run. In the sandbox, its median stayed under three minutes whether five agents were busy on the server or ten. Run locally, the same suite took about forty percent longer than in the sandbox at the median, and more than twice as long at the ninetieth percentile, because a local run competes with every other agent on the box. The sandbox was not faster because RWX’s machines are magic. It was faster because it didn’t have to share.
And the server I measured. With the same number of agents busy, the load was a quarter to three quarters of what it was when everything ran locally, and the box was overloaded about half as often. That part is no surprise. The work moved to someone else’s machines, so of course mine got lighter. The real question is how often it moved, and we’ll get to that when we talk about cost.
The agents got faster checks and a machine that stays usable.
RWX Sandbox Limits and Failures
Moving agents’ builds and tests to RWX sandboxes lowered the load on my server, but it didn’t remove the limit. More agents fit before the box gets overloaded, but not as many more as you might hope. With ten or more agents busy at once, the server still hit the same peaks as before. Some work can’t leave the machine, usually because it needs credentials you don’t want in someone else’s cloud. In Agent Deck, that’s the tests that run real coding agents with my own logins. They stay local, and when several of them overlap, they alone are enough to saturate the box.
Two more things went wrong along the way, and both are worth knowing before you try this. First, agents didn’t use the sandbox just because I asked. A rule in the project’s instructions wasn’t enough, and some agents decided that running a single test didn’t count as heavy work and ran it locally. It took instructions in the exact place each agent reads its task, and “every command that compiles” instead of “heavy commands”. Second, RWX keys a sandbox by branch, so a coder and a tester working on the same branch share one, and one agent stopping it killed the other’s command. I fixed that by not stopping sandboxes at all and letting them time out. Out of more than a thousand sandbox commands, about one percent failed because of RWX itself, almost all of them from that collision.
So it worked. Builds and tests left the machine, CI got faster, and the agents stopped tripping over each other. The question is whether it’s worth the money.
RWX Cost vs Your Own Hardware
RWX charges per second of CPU. During the batch with ten pieces of work in parallel, it came to about ninety dollars a day, which is close to three thousand a month for one project. About four fifths of it was sandboxes, and the rest was CI.
Divide that compute by the seconds in a day, and you get roughly fifteen CPUs busy around the clock. A whole sixteen-CPU machine’s worth, running constantly. That answers the question from earlier. The offloading wasn’t the occasional spike. It was a second server, all day long. If the work leaves your machine that often, you need more hardware with RWX or without it, and the only question is whose hardware you pay for.
So what does that capacity cost elsewhere? A VM in AWS with sixteen virtual CPUs, running all month at on-demand prices, is a bit over five hundred dollars. A dedicated server from a hosting provider, with sixteen cores and thirty-two threads, is around three hundred. And a mini PC with the same sixteen cores costs about sixteen hundred dollars once, which over three years, with electricity, comes to around sixty a month. Any one of them covers the average load for a fraction of that bill. Sized for the worst moment, with seven sandboxes running at once, AWS would actually cost more than RWX. But that moment lasted a few hours in a week, and two machines of your own would have covered almost everything else.
The obvious defense is that RWX charges only for the seconds you use. But how finely you’re billed isn’t the problem. If AWS billed per second, that VM would cost the same, because it would be busy the same hours. It’s the price. An hour of CPU on RWX costs more than five times what it costs on AWS, and many times more than a server you rent or buy. Fine-grained billing only wins when the machine would otherwise sit idle most of the time, and against AWS, that means idle more than four fifths of the time. My agents had a sandbox running more than half the time. There were long stretches with nothing running, but when something did run, it was usually one or two sandboxes, and that’s steady enough for owned or rented capacity to win.
That changes if you run one agent, or a few, now and then. The sandbox then sits unused most of the day, you pay only for the minutes it works, and RWX can easily come out cheaper. But that’s an individual. In a company, even if everyone uses agents only occasionally and a few at a time, it’s multiplied by the number of people, and you’re back to a load that rarely stops.
On comparable hardware, your own machine isn’t slower either. It keeps the build warm between commands, with no sync and no recompiling after every upload. What you give up is the work of running it: provisioning, updates, disks filling up with build output, and keeping the environment close enough to CI that a passing test means something.
And if you have more machines, you don’t need remote execution at all. You run the agents on those machines, a few per box, with their commands local. What’s left is deciding which agent goes where, and leaving enough headroom that two agents bursting at the same time don’t fight. That’s a far simpler problem than the one RWX solves.
So why am I using it? Because my hardware is limited, and I didn’t want to build that myself. If I were paying for it at this load, I’d rent VMs or buy machines, because either is many times cheaper. The sandbox makes sense when you can’t or won’t add hardware, for agents that have no machine of their own, and for peaks beyond the capacity you have.
CI is a different comparison. With ten pieces of work in parallel, CI was running about a tenth of the time here, and a bigger fleet would keep it busier. But you don’t compare hosted CI with a bare VM. You compare it with other CI services, and they all charge many times what a VM costs. Next to those, RWX holds up. On the same commits, a CI run cost about a third of what it would on GitHub Actions at private-repository prices, and it finished in half the time. The sandbox is the odd one out. It’s priced like CI, but it competes with machines.
Let’s put it all together.
RWX Pros and Cons
Starting with the downsides. RWX is Linux only. There are no macOS or Windows runners. Agent Deck’s pull requests got faster only after I moved the macOS build to run after merging, because before that, the macOS job decided how long a pull request waited, and RWX can’t touch it.
There’s vendor lock-in, but not where you’d expect. GitHub Actions is proprietary too, though its syntax has other implementations, and RWX’s has none. That matters less than it sounds. Agents rewrite pipelines cheaply in either direction, so leaving would cost about as much as moving in did. What you can’t take with you are the features nothing else has, like sandboxes and CI runs on uncommitted changes, and whatever you built around them.
And its sandboxes are expensive. They’re priced like CI, and an hour of CPU costs more than five times what AWS charges on demand. They came to about four fifths of a bill of three thousand dollars a month, many times more than the hardware they replace.
Content-based caching, the core of the pitch, did almost nothing in this repository. Projects with narrow, well-defined task inputs will see more of it, but don’t assume yours is one of them.
And there are rough edges. Stopping a sandbox sometimes times out and leaves it running, and agents on the same branch share a sandbox and can kill each other’s commands.
Now the upsides, and they’re why I’m still using it. CI is nearly three times faster. Seven and a half minutes instead of twenty-two, and per run, it cost less than GitHub Actions would at private-repository prices.
Sandboxes are the new thing, and they work. Agents stay where they are, their builds and tests run in an environment defined like CI, and the machine they run on stays usable. Not one of more than six hundred checks fell back to running locally.
And it’s cheap to adopt. Agents ported the pipeline in minutes, the sandbox plugged into the project’s existing checks, and running CI against uncommitted changes made debugging the new pipeline painless.
So that’s RWX after two weeks of agents hammering it: CI nearly three times faster, caching that did little in this project, and sandboxes that took the builds and tests off my server but are priced like CI, which only makes sense when you can’t add hardware.
Should You Switch to RWX?
So who is RWX for? Teams with Linux-only projects where CI time is a real bottleneck, especially with many pull requests written by agents. Teams running many agents on machines they can’t or won’t scale, whose checks are mostly builds and tests rather than calls to real services. And individuals running an agent or two now and then, for whom paying by the second beats owning another machine. All of them have to accept the lock-in.
Who isn’t it for? Teams whose CI is already fast enough. Restructuring GitHub Actions got me more than a third for free. Projects that need macOS or Windows on every pull request. Agents whose tests need credentials or services that live where the agents run. And anyone running agents around the clock who can add machines, because those machines are much cheaper.
I’m keeping it for Agent Deck, because the project fits the first group almost perfectly and my hardware is limited. That doesn’t mean you should switch. For most teams, the better first step is to make what they already have faster. Move to RWX when you’ve done that and CI is still what your agents are waiting on.







