# CI vs the agent's own machine: where each kind of check belongs

> Keep CI as the merge gate. Put a coding agent's edit-test loop on a machine of its own. A short split, and a signup path to give Claude Code, Codex or Cursor that machine.

Keep CI as the merge gate. Put a coding agent's edit-test loop on a machine of its own. A short split, and a signup path to give Claude Code, Codex or Cursor that machine.

December 3, 2026 · 2 min read · The Sandscale team

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](https://sandscale.dev/blog/agent-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](https://sandscale.dev/blog/gitlab-ci-as-the-merge-gate-agent-tests-on-its-own-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](https://sandscale.dev/workspaces) is a persistent cloud computer for that loop. [Sign up](https://cloud.sandscale.dev/auth/signup?utm_source=blog&utm_campaign=spike-3dec). The [Quickstart](https://sandscale.dev/docs/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](https://sandscale.dev/pricing).

```sh
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.

**On this page**

1. What belongs on the agent’s machine
2. What belongs in CI
3. Give the agent the machine

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [December 3, 2026 · **A cloud workspace for one developer vs a machine per coding agent** · Cloud IDEs were built around one person and their editor. A team running Claude Code, Codex or Cursor needs a machine per agent. A short contrast, then a signup path to try the second shape.](https://sandscale.dev/blog/a-cloud-ide-vs-a-machine-per-coding-agent)
- [December 3, 2026 · **Cursor Cloud Agents and a workspace your team administers** · A sourced reading of Cursor's Cloud Agents docs, formerly called Background Agents, and what still sits with the team when the agents also include Claude Code or Codex, on machines you run.](https://sandscale.dev/blog/cursor-background-agents-and-your-own-workspace)

---
Source: https://sandscale.dev/blog/ci-vs-the-agents-own-machine
