How it works

The same dev environment.
Different operator. Different location.

An agentic dev system doesn't require a new kind of environment. It requires the same environment — set up so that either a human or an agent can operate it, from anywhere.

The core idea

Three variables. One environment.

Every dev loop has the same three moving parts. What changes when you add agents is who's at the controls and where the environment is running.

W

Who

A human developer or an autonomous agent. The environment doesn't care which — it just needs an operator with the right credentials and context.

W

Where

A local machine or a remote/cloud runtime. The environment is portable — it runs the same way regardless of where it's hosted.

W

When

During active development, in CI, or on-demand. The environment can be spun up at any phase of the loop — interactively or programmatically.

Side by side

Human loop vs. Agent loop

The steps are the same. The operator changes.

Human Developer

Local machine

01

Read the spec or ticket

Human reads, interprets, asks questions

02

Set up the environment

git pull, docker compose up, install deps

03

Reproduce the issue

Open the app, click around, confirm the bug exists

04

Write the code

Editor, terminal, browser — the inner loop

05

Verify it works

Run tests, check the UI, manual QA

06

Open a PR

Push, write a description, request review

Autonomous Agent

Remote runtime

01

Read the spec or ticket

Agent parses structured spec, extracts constraints

02

Set up the environment

Same image, same deps — spun up in an ephemeral cloud runtime

03

Reproduce the issue

Agent runs repro steps, captures screenshots as proof

04

Write the code

Agent edits files, runs the dev server, iterates

05

Verify it works

Agent runs tests, captures demo artifacts, checks acceptance criteria

06

Open a PR

Agent pushes, writes a description, attaches evidence

The steps are identical.

The environment is the same. The toolchain is the same. The only thing that changes is who's driving and where the runtime lives.

The environment

What stays the same

Whether a human is running it locally or an agent is running it in the cloud, these layers are identical.

01

Source Code

git clone / git checkout

Same repo, same branch, same commit

02

Dependencies

package-lock.json / go.sum

Same lockfile, same versions, deterministic install

03

Runtime

Dockerfile / devcontainer.json

Same container image or nix shell, identical toolchain

04

Services

docker-compose.yml

Same database, same queues, same external services

05

Configuration

.env / vault

Same env vars, same feature flags, same secrets (scoped)

06

Dev Server

npm run dev / make serve

Same start command, same port, same hot-reload behavior

What's different

The operator layer

This is the only layer that changes. Everything below it stays the same.

Human operator

InterfaceEditor + terminal + browser
LocationLaptop / local machine
ContextMental model, Slack threads, memory
AuthPersonal SSH keys, browser cookies
VerificationEyes on screen, manual clicks
Feedback loopSeconds — save, switch tab, refresh

Agent operator

InterfaceCLI + API + tool calls
LocationCloud VM / ephemeral container
ContextStructured spec, repo files, tool output
AuthShort-lived tokens, scoped to task
VerificationAutomated tests, screenshot capture
Feedback loopSeconds — run command, parse output, iterate

The handoff

Swapping between human and agent

Because the environment is the same, switching who operates it becomes straightforward. The handoff is a context transfer, not a rebuild.

human

Working in local dev environment

You're coding, debugging, have the app running. You've got context about what you're doing and why.

handoff

Commit. Push. Hand off.

Your code, your branch, your spec — all captured in the repo. The state is portable.

agent

Agent picks up in a remote runtime

Same branch, same deps, same dev server command. The agent reads the spec, sets up the environment, and continues where you left off.

agent

Agent works autonomously

Writes code, runs tests, captures artifacts. The inner loop is the same — just running in the cloud instead of on your laptop.

handoff

PR opened. Artifacts attached.

The agent's work product looks the same as yours would: a branch, a diff, a description, and evidence.

human

You review and continue

Pull the branch, spin up the env, check the work. If it needs more, you pick up where the agent left off. Same environment. Same loop.

Ready to build?

The guides cover each of these problems in detail — with patterns, anti-patterns, and real examples.