Agent experience is the new developer experience

Open original

This article argues that to get useful work from AI coding agents, teams must build a structured environment—context, tools, permissions, tests, and review loops—that guides stateless models and enforces deterministic feedback. It covers seven principles, from minimal and tested context to sandboxed credentials and self-validating work, so agents can onboard per task, prove their output, and operate safely at scale.

  • Agents are stateless and need minimal, tested context (small rules/skills pointing to code) instead of a sprawling AGENTS.md
  • Environments must be fully deterministic—locked dependencies, scripts, seed data, auth—so agents either work or fail clearly, no "I think this works" commits
  • Agents should self-validate via tools like Playwright, Chrome DevTools MCP, and screenshot/accessibility checks, since burning extra tokens on closed-loop checks is cheaper than wasting human reviewer time
  • Safety and access control need to be system design, not prompt hygiene—sandboxed credentials, scoped file/network access, approval gates, and audit trails so nontechnical users can't accidentally cause damage

Builder.io argues that letting AI agents loose on real codebases without proper infrastructure is a recipe for wasted effort and risky changes. Unlike human developers, agents arrive stateless, unaware of your repo’s quirks, legacy bugs, or migration quirks. They’ll blunder into the same dead ends unless you give them clear, minimal context—think small, transparent rules and tested skills that point back to the code itself, not a sprawling AGENTS.md file. On top of that, you need a fully deterministic workspace. Lock down dependency versions, scripts, seed data, auth flows and local services so an agent either compiles, runs tests, or stops dead—no more “I think this works” commits. Then equip it with tools like Playwright, Chrome DevTools MCP, automatic branch previews and even screenshot checks. Agents should prove their own work: run unit tests, capture flows, validate accessibility trees. It’s cheap to burn extra tokens running closed-loop checks; it’s expensive to waste a human reviewer’s time. Last, treat safety and access control as system design, not prompt hygiene. Sandboxed credentials, file-system and network scoping, environment-variable approval gates and human-in-the-loop checks must block high-risk actions. Decide who can spin up agents, what models they hit, which systems they touch and how every action is audited. That way, nontechnical PMs or marketers can safely use agents without accidentally nuking production or gaining root.

Ask about this article