Back to Infrastructure
infrastructureL2 GuidedAgent Runtime & Sandboxing

Dedicated dev environments

Dedicated dev environments move agent execution off the developer's laptop and into isolated cloud-hosted workspaces.

  • ·Dedicated development environments exist for agent execution (separate from developer's primary workspace)
  • ·Basic sandboxing via Docker or equivalent containers is implemented
  • ·Agent credentials are scoped per project (not a single org-wide key)
  • ·Container images for agent environments are versioned and reproducible
  • ·Credential rotation schedule exists for agent-scoped keys

Evidence

  • ·Docker or container configuration files for agent environments
  • ·Credential management configuration showing per-project scoping
  • ·Environment provisioning documentation or scripts

What It Is

Dedicated dev environments move agent execution off the developer's laptop and into isolated cloud-hosted workspaces. Instead of the agent running on the developer's machine with access to their personal credentials and filesystem, it runs inside a cloud environment that is provisioned specifically for development work. GitHub Codespaces, Gitpod, and Coder are the leading platforms for this pattern. Each provides a containerized or VM-based workspace with its own filesystem, its own set of installed tools, and its own credential store - completely separate from the developer's local machine.

The key shift from L1 is that the blast radius of agent mistakes is now bounded by the workspace boundary. An agent running in a Codespace can only affect files within that Codespace. It cannot read the developer's ~/.ssh directory, cannot access the developer's AWS credentials, cannot touch any other project the developer works on. The workspace is the agent's entire world, and the developer can destroy and recreate that world in minutes if something goes wrong.

GitHub Codespaces is the most accessible entry point. Any repository with a .devcontainer/devcontainer.json configuration file can have a Codespace created against it in about 30-60 seconds. The Codespace gets the repository cloned, dependencies installed, and extensions configured automatically. Gitpod follows a similar model with .gitpod.yml configuration. Coder is the self-hosted option for organizations that need their dev environments behind their own perimeter.

Dedicated dev environments do not fully solve the agent runtime problem - they are cloud workspaces for humans that happen to be safer than laptops for running agents, not purpose-built agent sandboxes. They do not provide ephemeral-per-task isolation, network policy enforcement, or the sub-10-second spin-up that purpose-built agent environments offer. But they are a significant step forward from the laptop model and they can be adopted with minimal platform investment.

Why It Matters

  • Credential isolation by default - the workspace contains only the credentials explicitly provisioned for development work, not the full set of credentials on the developer's laptop, eliminating the most common accidental exposure vector
  • Reproducible environments eliminate "works on my machine" for agents - every developer's workspace has the same tools, same dependency versions, same configuration, which means agent behavior is consistent and reproducible across the team
  • Workspace destruction is a safe recovery path - when an agent makes a mess of a workspace, the recovery is "delete workspace, create new one," not "figure out what the agent changed across your filesystem and undo it"
  • Remote collaboration on agent sessions - cloud workspaces can be shared and observed by multiple people, which enables pair review of agent sessions and makes agent behavior auditable in a way that local laptop sessions are not
  • Enables unattended agent runs - because the workspace exists independently of the developer's machine being on, agents can run overnight tasks without the developer's laptop needing to stay awake

Getting Started

6 steps to get from here to the next level

Common Pitfalls

Mistakes teams actually make at this stage - and how to avoid them

How Different Roles See It

B
BobHead of Engineering

Bob wants to move his team from laptop-based agents to a more controlled environment. He has heard about GitHub Codespaces and thinks it might be the right step, but he is not sure how to drive adoption without mandating it and facing resistance. A few developers have already been using Codespaces for their own reasons and seem happy with it.

What Bob should do - role-specific action plan

S
SarahProductivity Lead

Sarah has been tracking developer satisfaction with their tooling and has seen consistent complaints about environment setup time: "I spent two hours getting the new service to run locally." This setup friction is a direct productivity cost and also a reason developers use agent-less workflows for tasks that would be better done with agents. Cloud dev environments could fix the setup problem while also enabling safer agent use.

What Sarah should do - role-specific action plan

V
VictorStaff Engineer - AI Champion

Victor has been running agents locally and has built up a sophisticated local setup. He is resistant to cloud dev environments because he feels his local setup is faster and more customized than anything a Codespace could offer. He is not wrong about his personal experience, but he also recognizes that his setup is not reproducible by other developers.

What Victor should do - role-specific action plan