A pattern shows up when a team takes Claude Code, Codex or Cursor off the laptop and has not yet given the agent a machine of its own: the agent pushes a commit, CI runs the tests, the agent reads the result, edits, and pushes again. CI becomes the loop.
CI is a good merge gate. It is a poor inner loop. The longer argument is in why a coding agent’s edit-test loop should not wait on CI. For GitLab, we also wrote GitLab CI as the merge gate, with tests on the agent’s machine. This post is the short split, and how to get the machine.
What belongs on the agent’s machine
The checks the agent needs after every small edit: the unit tests for the package it touched, the linter, the type checker, the command it just broke. Those should run in a shell the agent already has, on a disk that already has the clone and the tools, without a commit and a queue.
What belongs in CI
The full suite, the merge policy, and anything you want a second, clean environment to say before a person merges. CI still runs on the pull request. It does not need to be the thing the agent waits on after each typo.
Give the agent the machine
A Sandscale workspace is a persistent cloud computer for that loop. Sign up. The Quickstart says you start on the Free plan: 100 awake vCPU-hours a month, 3 boxes at once, and up to 2 vCPU per box. Free includes one workspace, which is enough to take one agent’s loop off CI. A running machine counts toward the plan’s hours whether the agent is busy or waiting; paused time does not count, per the pricing page.
curl -fsSL https://sandscale.dev/install | sh
sandscale login
sandscale workspace templates-list
sandscale workspace create --name agent-tests --template-id TEMPLATE_ID --ttl-seconds 28800
sandscale workspace ssh agent-tests
Clone the repository, install the tools, and tell the agent to run its tests there. Leave the pipeline on the pull request as the gate. Stop the workspace when the task is done.