Before You Let an AI Agent Loose, Ask What It Can Reach

Before anyone lets an AI agent loose, ask one question first: what can it reach if something goes wrong?

On most teams the honest answer is "everything the engineer can." The agent runs on a laptop with browser sessions, SSH keys, cloud credentials and private repos sitting right there. Then it reads issues, emails and docs written by people you've never met. That isn't a sandbox. It's a copy of the engineer's access.

That combination is the problem. The agent has the same reach as the person who set it up, and a lot of what it reads can be treated as instructions. A note hidden in a GitHub issue or an email can send it toward private data or toward actions nobody meant to approve. When that happens, the business pays for it: customer data exposed, an unapproved production change, and your team pulled off planned work to find out what the agent touched and explain it to customers and leadership. You wouldn't hand a new vendor a logged-in laptop and a free run of the inbox. An agent that acts on your behalf shouldn't get that either.

This is a practical guide: six questions to ask about an agent you already run, then the controls that should sit around it before you let it act.

Why an AI agent sandbox should be the default

Most agent tasks need a repo, a ticket and a narrow set of tools. They don't need the rest of someone's machine: the browser sessions, the keys, the unrelated files and the open path onto the company network.

Luis Héctor Chávez and Manish Mehta, in Replit's November 2, 2026 security advisory, "Make managed cloud environments the default for AI agents," lay out the controls well. You can start on them with the tools you already run. Replit sells managed environments, but the controls apply wherever your agent runs. The useful part is the design: the agent works in a place the organization controls, with credentials, permissions, network access and production changes handled outside the agent's reach.

One point in that advisory is easy to miss. Moving the work to the cloud doesn't, by itself, fix this. A local tool that only sends prompts to a cloud model still runs code on the laptop. A remote agent that's been handed production credentials and an open network has the same problem in a new place. The workspace has to come with the controls, not just a different host: a dedicated, task-scoped place to work, separate from the employee's machine.

Start with six questions about one agent

Don't try to fix every agent at once. Pick the one that already reads email, tickets or a repo, and answer these six questions about it before you change anything.

  1. Where does it run today, a laptop or its own workspace?
  2. What credentials can it reach without asking?
  3. Can it raise its own permissions?
  4. What can it reach on the network, and is that wider than the task?
  5. Does a person approve anything that touches production, money or customers?
  6. Where is the audit trail, and have you tested that the kill switch actually stops it?

It's a small check, and it fits a team with one agent as well as a team with many. Any answer you can't give, or don't like, points to the control you need first.

Six controls to put around the agent

Here's the short version I use. Each control answers one of the questions above.

Give the agent its own workspace, not someone's laptop

Stand up a workspace that's only for the agent. Don't let it inherit a home directory, a browser session or unrestricted network access from an employee's machine. If something goes wrong, you should be able to stop or rebuild that workspace without rebuilding someone's laptop.

Keep personal agent accounts off production and off customer systems. If the agent is doing company work, it should run in a company-controlled environment.

Keep credentials out of its reach

The agent shouldn't find keys in files, in environment variables or in memory it can read. When it needs access, it asks, and something outside the agent decides whether to allow the request. Holding a valid identity isn't the same thing as being allowed to use it.

Scope permissions to the task, and don't let the agent raise its own

Give each run only the resources and operations that job needs. Then lock the policy so the agent can't widen its own access or change the rules that govern it. If it can raise its own permissions, the scope you set at the start is only a suggestion.

Deny network and data flows by default

Start from deny, then allow the paths the task actually needs. Allowing GitHub shouldn't mean allowing anything on GitHub. An agent that's allowed to read a repo isn't, by default, allowed to publish private data to a public place on the same service. Spell out the destinations, not only the brand of the tool.

Have a person approve anything that touches production, money or customers

Let the agent propose the change. A person approves the high-impact actions, and the approval should show the actual action being authorized, not a vague summary of it. Possession of a credential isn't approval.

Keep the audit trail where the agent can't edit it, and test the kill switch

Record what the agent did, and what was allowed or denied, in a place the agent can't change. Then test that the kill switch actually stops it. Stopping the first process isn't enough if access it already handed off keeps working. In my experience, a kill switch nobody has tested isn't a control. It's a hope.

Least privilege, pointed at agents

This is the least-privilege thinking we already apply to people and vendors, now pointed at software that acts on your behalf. It's the same question I keep coming back to on AI vendor risk: whose controls are you trusting, and have you checked them?

If you already use a vendor's environment, that question still applies. Ask them to show that the agent can't read service credentials, bypass network controls, expand its permissions, change the audit trail or make an unapproved production change. Then test the kill switch yourself.

The short version

If an agent can reach everything the engineer can, you haven't scoped it. You've copied a person's access onto software that acts on its own. Give it its own workspace. Keep credentials, permissions, network paths and production changes out of its hands. Have a person sign off on the high-impact work, and keep a record the agent can't edit.

The list is the easy part. The hard part is usually finding the access an agent has already handed off, and proving the kill switch reaches it.