← Blog

Handing coding agent work across an IST and US team: who starts it, where it runs, how it is handed over

Teams split between India and the US can keep coding agents working through both workdays, but only if the handoff is about branches and notes, not about someone else's machine. A handoff routine for agents on their own cloud machines: schedules in each owner's time zone, a handoff note the agent keeps, and what the other side reviews in the morning.

A team with engineers in Bengaluru or Pune and in New York or San Francisco has an obvious idea once it starts using coding agents: one side’s evening is the other side’s morning, so let the agents work through the gap. The US engineer hands a task to an agent before logging off; by the time the India team starts, there is a branch to review. And the other way round.

The idea is sound. What usually goes wrong is the handoff. The agent ran on someone’s laptop, which went to sleep. Or it ran on a shared machine nobody owns, so nobody knows what it was told. Or the reviewer on the other side has to log into a colleague’s environment to see what happened. This post sets out a routine that avoids those problems, with each agent on its own cloud machine.

The rule: hand over work, not machines

Every agent runs on its own workspace, a persistent cloud computer that keeps its disk and keeps working when its owner’s laptop is closed. Each workspace has one owner, the person who started the agent. The handoff to the other time zone happens through Git: a branch, a pull request, and a note in the repository.

This is not only tidiness. With the Sandscale CLI (1.4.1), only a workspace’s owner can run commands in it with sandscale workspace exec, using their own sign-in. The reviewer on the other side does not need, and does not get, access to the colleague’s machine. They need the branch.

Before logging off: start the agent with a handoff in mind

The person handing over sets up the run:

sandscale workspace ssh agent-billing-refactor

On the workspace, in a tmux session so the run does not depend on the SSH connection, start Claude Code or Codex with the task. The task description should include the handoff rules, or point to them in AGENTS.md:

## Handoff runs
- Work on the branch named in the task. Commit and push after each step that
  passes the focused tests.
- Keep HANDOFF.md at the repository root up to date:
  - Task, as given
  - Done (with commit hashes)
  - Stuck or unsure (what you tried)
  - Next steps
- Write all times in UTC.
- When the task is done, open a draft pull request and stop.
- Do not merge, deploy, or change CI configuration.

UTC in the note matters more than it looks. Half the team reads “done at 9” as morning and the other half as night.

Cap the run, then bring the machine back for the owner

Two workspace settings make an unattended run predictable. Both are set by the owner, on their own workspace:

sandscale workspace update --ws-id WORKSPACE_ID --ttl-seconds 36000
sandscale workspace update --ws-id WORKSPACE_ID --autostart-schedule "CRON_TZ=Asia/Kolkata 0 9 * * 1-5"
  • --ttl-seconds is the maximum runtime since the workspace started, so a run that gets stuck does not run all week. Your organization’s lifecycle policy can shorten it.
  • The autostart schedule is a cron expression with an optional time zone. Here it starts the workspace at 09:00 India time on weekdays, for an owner in India. A US owner writes their own zone, for example CRON_TZ=America/New_York. Each schedule follows its owner’s day, not the team’s.

A running workspace counts toward your plan’s hours whether the agent is working or waiting, so the cap is also how you keep usage in line. Check what is in force with sandscale workspace get --ws-id WORKSPACE_ID. The workspace also stops after a period of idleness; before relying on a long unattended run, try a short one and confirm the workspace is still running after you disconnect.

In the morning: review from the branch

The reviewer on the other side starts from the repository, not from the machine:

  1. Read HANDOFF.md on the branch. It should say what was done, what is unsure and what is next.
  2. Read the commits in order. Small commits with clear messages make this fast.
  3. Run the tests yourself, on your own machine or your own agent’s workspace, from the pushed branch.
  4. Comment on the draft pull request. If the work should continue, say so in the pull request, and the owner (or the reviewer, on their own workspace) picks it up.

If the reviewer needs to see the running app, the owner can leave a note on how to start it, and the reviewer runs it on their own workspace and opens it with sandscale workspace port-forward. Our post on port forwarding a dev server from a workspace covers that.

What makes this work, and what does not

Works: one owner per agent machine; small pushed commits; a handoff note in UTC; a cap on every unattended run; review from the branch on the reviewer’s own machine.

Does not work: shared logins to one “agent box”; agents that only commit at the end; handoffs over chat that the agent never saw; leaving runs uncapped; reviewers fixing things directly on the colleague’s machine.

Accountability across time zones

Because each agent acts as its owner, everything it starts, every command run in its workspace (recorded without the command text) and every secret it uses is in the organization’s audit log under that person’s name. When the other side asks “who told the agent to do this”, the answer is in the log and in HANDOFF.md, not in someone’s memory of a call at the end of their day.

Start small

Pick one task type that is well specified and easy to review, such as dependency upgrades, test fixes or small refactors behind tests. Run it across one handoff for a week. When the morning reviews are quick, add a second agent, on its own machine, owned by the person who starts it.

For the schedule settings in more detail, see overnight coding agent runs. For keeping a run alive when connections drop, see when the laptop sleeps or the connection drops.

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