Back to Blog
AI News & Analysis

Give coding agents a sandbox, not your keys or write access

What happened AWS's Strands team has released Strands Factory as open source. It is a reference design for an AI system that does everyday engineering work. That includes sorting incoming issues, repr...

Abstract diagram of two separate blocks joined by a narrow gate, with a third block behind a locked barrier.
SG
Saksham Gupta
Founder & CEO, EduBild
December 2, 2026
3 min read
AI NewsProduction TrustAI AgentsAI Governance

What happened

AWS's Strands team has released Strands Factory as open source. It is a reference design for an AI system that does everyday engineering work. That includes sorting incoming issues, reproducing bugs, writing fixes, reviewing code changes and running scheduled clean-up jobs. InfoQ reported the release on 1 December 2026. The team says the project is still experimental.

The security design is the useful part. The agent runtime holds the credentials, sessions and memory, and it has no shell, so it cannot run commands itself. Commands the AI model writes run in a separate sandbox, which is a locked-off workspace. The agent refuses to start without one. On GitHub, the agent acts like an outside contributor. It proposes changes through a copy of the repository (a fork), a person must approve before anything is merged, and allow-lists limit where it can write.

Why it matters for enterprise teams

Most coding-agent pilots start the same way. Someone gives the agent a token so it can read and write the repository. It works well in the demo. Then your security team asks what happens if the agent leaks that token, or runs a bad command with it.

That question usually stops the pilot. It should. A model that reads issue text, web pages and code comments can be tricked by what it reads. If the same process also holds your secrets and can write to your main branch, one bad instruction becomes a real incident.

The Strands design answers this by splitting the jobs. The part that holds secrets cannot run commands. The part that runs commands holds no secrets. Neither can change production code alone, because a person approves the final step.

This matters for global capability centres and large IT teams in particular. They often hold code for many business units. One agent with broad access across those repositories is a large risk. Narrow access per team is far easier to defend in a security review.

Two cautions are worth stating. First, this is a reference design from one vendor, and its authors call it experimental. Second, the design relies on setup choices around it: a dedicated cloud account, a narrowly scoped GitHub identity, and branch protection that requires human approval. If your team skips those, the split alone will not protect you.

What we'd do

We would treat the Strands split as a template, whichever cloud or tools you use. When we work with a team on AI agents, we would apply these six steps before an agent touches a real repository.

  1. Keep secrets out of the agent's reach. The part of the system that talks to the model should hold no keys for your code hosting, build tools or databases. Credentials sit in a separate service that checks each request.
  2. Run all commands in a sandbox. The sandbox has no route to production systems and no stored secrets. Reset it after each task, or keep it only for one issue.
  3. Make the agent a contributor, not an owner. It works on a fork or its own branch. It never writes to the main branch.
  4. Require human approval before merge. Turn this on in your code platform's branch protection settings, so it does not depend on the agent behaving well.
  5. Limit where the agent can write. Use an allow-list of repositories and folders per team. Start with low-risk ones, such as documentation, tests and dependency updates.
  6. Add a per-team off switch and a log. Each team should be able to stop the agent at once. Every action should be recorded so a reviewer can see what it did and why.

The Strands design also has a second checker. When the agent says it is done, a second agent with the same tools rechecks the claims and can send the work back for up to three attempts. We like the idea. It catches careless mistakes cheaply. But it does not replace a person, because both agents can share the same blind spot.

Finally, we would measure the pilot before widening it. Track how many agent changes people accept unchanged, how many they edit and how many they reject. Track the time reviewers spend per change. If review time grows faster than the time saved, the pilot is not paying off yet. Our process builds these checks in from the first week, so the handover to your team includes the controls and not just the agent.

Next step

If your team has coding agents with unsafe repository access in pilot but not in production, book a discovery call.

Share this article
SG

Saksham Gupta

Founder & CEO, EduBild

Saksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.