A services team is rarely working on one codebase. The same engineer may touch two or three client repositories in a week, and now each of them has coding agents that clone, install, run tests and open pull requests. On a developer laptop, all of that lands in one place: client A's repository next to client B's, both clients' cloud credentials in the same shell profile, one SSH agent holding keys for every Git host.
Clients have started asking how their code is handled when agents are involved. "The agent runs on the developer's laptop" is a hard answer to defend. This checklist is for the team lead who wants a better one. It uses Sandscale as the example; most of the principles apply whatever you use.
1. One machine per agent, and never two clients on one machine
The rule that makes the rest easy: each agent gets its own machine, and a machine only ever holds one client's code.
With Sandscale, that machine is a workspace, a persistent cloud computer with its own disk. Name them so the client is obvious:
sandscale workspace create --name acme-agent-1 --template-id TEMPLATE_ID
sandscale workspace create --name globex-agent-1 --template-id TEMPLATE_ID
sandscale workspace list
The engineer connects with sandscale workspace ssh acme-agent-1, clones the client's repository there, and starts the agent there. Their laptop holds no client code at all, and neither agent can see the other client's files, because they are on different machines.
For the riskiest commands, such as installing dependencies from a branch nobody has read, a sandbox gives a second boundary. Each one is its own Firecracker microVM with networking off unless your organization's policy allows a mode, and when you upload a project into one with sandscale sandbox instances-project, the server leaves out files your .gitignore ignores and files on its deny-list, including .env files, private keys and cloud credentials.
2. Keep each client's secrets apart
Client credentials are where mixing does the most damage. Put them in Vault, under a path per client, and write them from standard input so they never sit in shell history:
sandscale vault secret put secret/acme/staging-db --field password
sandscale vault secret put secret/globex/npm --field token
No Sandscale command prints a Vault value back. A sandbox gets values at start with --vault-env, read as the person starting it, and Your Vault policies decide every read and change. Write them so the engineers on the Acme project can use secret/acme/... and nothing under secret/globex/...; an agent acting as one of those engineers then cannot reach the other client's secrets either.
3. Decide who can start, see and stop what
On the Team plan, the account becomes an organization with members, roles and groups, and single sign-on with your identity provider. Each member's role decides what they can start, see and stop. A few rules worth writing down:
-
Agents act as people. An agent connected through
sandscale mcpacts with the signed-in person's own access, never more. There is no separate, all-powerful agent account to protect. -
Workspaces have owners. Only a workspace's owner can run commands in it with
sandscale workspace exec, with their own sign-in; an API key is refused. A teammate reviews through the branch and the pull request, not by logging into someone else's agent machine. - There is a stop button. Every organization has a kill switch that stops its agents at once. Agree who may use it.
4. Have the record a client may ask for
Sandscale keeps a hash-chained audit log of every action: sign-ins, sandboxes and workspaces started and stopped, commands run, files moved, secrets used, approvals, policy changes and kill switch use, with who did it, when and where. Every plan can read it:
sandscale audit events-list --from 2026-12-01T00:00:00Z --to 2026-12-02T00:00:00Z --json
On Team, the organization can be divided into projects, the log can be filtered by project with --project-id, and it can be exported for a period as evidence for your own assessments. Sandscale does not claim a certification on your behalf; that stays with you and your assessor. See how Sandscale isolates and governs agent work for the controls in one place.
5. Know where the work runs
Clients' contracts sometimes say where their code may be processed. Sandscale's workloads, and their data, run in the United States (N. Virginia) and stay in the region they were created in. Check that against each engagement before you move its agents, and keep the answer in the project's onboarding notes so nobody has to guess later.
6. Write the rules where the agent reads them
Each client repository gets its own AGENTS.md, so the agent's instructions do not leak between clients either:
## Working on this repository
- This machine is for Acme only. Do not clone other repositories here.
- Secrets come from the environment; never write values into files or commits.
- Work on a branch named agent/<ticket>; open a pull request for review.
- Run the focused tests before saying a change is done.
7. Plan the exit on day one
At the end of an engagement, the client's code and access should leave with it. Because everything for that client lives on its own machines and under its own Vault path, the exit is a short list:
- Make sure every branch the agents worked on is pushed or deliberately dropped.
- Delete the client's workspaces.
sandscale workspace delete --ws-id WORKSPACE_IDremoves the workspace and its disk for good, and asks before it runs. - Destroy the client's secrets:
sandscale vault secret destroy secret/acme/staging-dbremoves the secret and all its versions. - Remove client-specific members or group access.
- Keep the audit log for as long as your agreement says, and export it if the client asks.
Compare that with the laptop version of the same exit: asking every engineer to find and delete every copy of the client's repository and every credential, and hoping they did.
The short version
One machine per agent, one client per machine, secrets per client in Vault, people (not agents) holding the access, and a record you can show. The agents get more done because they are not sharing anything, and the team lead gets an answer to the client's question that holds up.
For how a team divides work between agents, see a team workflow for coding agents. For what a good agent audit log records, see audit logs for AI coding agents.
Originally published on the Sandscale blog.
Top comments (0)