← Blog

A team workflow for coding agents: who starts them, who approves, who reviews, who stops them

When a team runs Claude Code, Codex or Cursor agents every day, someone has to own each step. A simple division of roles, a naming convention, and the Sandscale commands and controls behind each step, with no code to write.

One developer with one coding agent needs no process. A team where everyone runs a few agents a day does, because the questions change. Not “is the agent good?”, but: who started this machine, what is it working on, who said it could touch the billing code, who is reviewing the pull request, and why is it still running on Friday?

This post is a lightweight workflow for those questions, for teams using Claude Code, Codex or Cursor with one machine per agent. It assigns each step an owner and shows what in Sandscale backs it up. Adapt the roles to your team; the point is that each step has one.

The roles

You do not need new people, just clear hats:

  • Task owner. The person who starts an agent on a task. They own the machine, the run and the result until it is merged or dropped.
  • Approver. Someone other than the task owner who signs off on actions your policy marks as risky.
  • Reviewer. The person who reviews the agent’s pull request, as they would a colleague’s.
  • Admin. One or two people who set the organization’s policies and can stop everything.

1. Start: one task, one agent, one machine

The task owner creates a workspace for the task and names it after the task, so anyone can tell what it is from the list:

sandscale workspace templates-list
sandscale workspace create --name pay-1423-refund-rounding --template-id TEMPLATE_ID --ttl-seconds 28800

A convention like <ticket>-<short-name> is enough. --ttl-seconds caps how long the workspace runs after it starts; the CLI’s help says it is checked against, and clamped to, your organization’s lifecycle policy. create asks for confirmation before it does anything.

Each agent gets its own workspace: its own Firecracker microVM, disk, ports, CPU and memory. Two agents never share a checkout, a port or a pile of credentials, and one bad run cannot break another.

If the team prefers to drive agents through tools rather than shells, connect each person’s Claude Code, Codex or Cursor to Sandscale’s MCP server as in the Quickstart. The remote server’s config holds no secret, so a project-level .cursor/mcp.json can be committed, and each person signs in as themselves. That matters for this workflow: every action is tied to a named person, not a shared key.

2. Approve: decided in advance, not in the moment

The worst time to decide whether an agent may run a database migration is when it asks. Decide beforehand, write it into policy, and let the platform hold the line:

  • Policies set which templates, sizes and run times members may use, and which agents may run. See approvals and policies.
  • Approval gates make a person sign off before an action happens. Approvers decide in the console’s approvals inbox, with a reason, and nobody approves their own request. Approvals come with every plan.

Keep the gated list short. If approvers see ten requests an hour, they stop reading them. Our post on designing approvals people do not rubber-stamp goes deeper, and writing a policy for coding agents has a template.

Secrets are part of this step too. A run that needs a token gets it from Vault, injected at run time and kept out of prompts and logs, and only the secrets that task needs.

3. Watch: the task owner checks in, without hovering

The task owner can check on a running agent without opening a shell, with workspace exec, which runs one command as them and returns its output:

sandscale workspace exec --ws-id WORKSPACE_ID --command '["sh", "-c", "cd ~/app && git log --oneline -5"]'

To see the settings the server applied, after any clamping by policy:

sandscale workspace get --ws-id WORKSPACE_ID

On Pro and up, Agent Cloud lets you watch an agent work live, pause or stop it, and get a branch and a pull request back.

4. Review: a pull request like any other

The agent’s work comes back as a branch and a pull request, never as “it is on the machine”. The reviewer treats it like a colleague’s change, with one extra question: did the agent change anything it was not asked to, such as tests, CI files or its own instruction files? Our checklist for reviewing an agent’s pull request lists what to look at.

To see the running app before reading the diff, the reviewer forwards the dev server from the agent’s machine:

sandscale workspace port-forward pay-1423-refund-rounding 3000

5. Stop: the owner closes the loop

When the pull request is merged or dropped, the task owner stops the workspace:

sandscale workspace stop --ws-id WORKSPACE_ID

The disk is kept, so the owner can come back to it, and compute stops being used. A running workspace uses the plan’s vCPU-hours whether the agent is busy or waiting, which is why stopping is a step with an owner and not an afterthought. When the task is truly finished, sandscale workspace delete --ws-id WORKSPACE_ID removes it; it asks first, because it is destructive.

A quick weekly look at sandscale workspace list catches the machines nobody closed.

6. When something goes wrong: the admin

  • Stop everything. Every organization has a kill switch that stops its agents at once. Agree in advance who may pull it, and practise once. See our post on designing a kill switch.
  • Find out what happened. Every action lands in the organization’s hash-chained audit log, with who did it, when and where. Every plan can read it in the console; Team and Enterprise can export it.

The whole workflow on one card

Step Owner What backs it up
Start a machine for a task Task owner One workspace per task, named after it, with a time to live
Risky actions Approver Policies and approval gates; nobody approves their own request
Secrets Task owner, within policy Vault, injected at run time
Check progress Task owner workspace exec, workspace get, Agent Cloud
Review Reviewer A pull request and a forwarded dev server
Stop Task owner workspace stop, then delete when done
Incidents Admin Kill switch and audit log

None of this needs code. It needs each step to have a name next to it. With one machine per agent and a clear owner for each step, a team can run more agents without losing track of them, and get more done.

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

Keep reading