Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Cursor 4 min read Case study mediumAdept

How we set up our cloud agent environment · Cursor

Cursor's cloud agents now author more than half of PRs merged to its monorepo, up from roughly one in ten in December, after the team made the cloud VM environment match local development and simplified how agents build and test code. The setup includes an Ubuntu-based Docker image with security controls such as egress restrictions, scoped and proxied git access, and secret scanning/redaction; an `anydev` CLI that starts services and supervises long-running builds; and Cursor Cloud MCP plus Cloud Doctor to diagnose unhealthy environments and fix misleading skills or slow workflows. The practical takeaway is to treat the agent development environment as a product: give agents the same tools and data as developers, document real workflows as skills, and make sure they can test core workflows end-to-end.

Related posts

  • Running AI agents in GitHub Actions with Docker Sandboxes

    Docker mediumAdept

    GitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon. Outside that VM it is limited by a network allowlist, a read-only token and a safe-output job that may only touch src/**. In the worked example, a Copilot agent on an ubuntu-24.04 runner runs a Java 21 Testcontainers/PostgreSQL suite, adds a regression test exposing a case-sensitive email uniqueness bug, applies a one-line normalization fix, and opens a draft PR. The run took about 11 minutes, and setup needs Docker credentials as secrets plus a KVM-capable host for self-hosted runners.

  • We gave cloud agents a phone to QA

    incident.io mediumAdept

    incident.io's Cursor cloud agents now QA React Native pull requests by driving an iOS simulator (EAS Simulator) or Android emulator in the cloud against a per-agent copy of the Go backend with seeded Postgres data, tunnelled back to the agent's VM, and attach claims linked to screenshots and a session recording. Making the app drivable required fixing the accessibility tree across 163 files (roles, testIDs, labels, enforced by lint), deep links for 100+ Expo Router routes, and a dev-only seeded sign-in. Runs take about 11 minutes median, and QA-only runs cost around $7 each. Over two weeks, 42 PRs were QA'd and agents increasingly started runs on their own PRs, while humans still decide whether a change is correct.

  • Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World

    Docker mediumAdept

    Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting. The gateway can also hide added servers' tool definitions from tools/list so they stay discoverable without bloating the context window. A code-mode tool lets agents write JavaScript that composes tools from several MCP servers inside a Docker sandbox, keeping intermediate results out of the model and cutting per-turn token usage. The features ship in Docker Desktop 4.50 and are on by default, and cagent can expose such agents to ACP-enabled editors like Zed and Neovim.

  • A Virtual Agent team at Docker: How the Coding Agent Sandboxes team uses a fleet of agents to ship faster

    Docker mediumAdept

    Docker's Coding Agent Sandboxes (sbx) team runs a "Fleet" of seven autonomous Claude Code skill-based agent roles: build engineer, project manager, product owner, CLI tester, performance tester, upgrade tester and software engineer. These roles test across macOS, Linux and Windows, triage and deduplicate issues, post daily release notes, and open bug-fix and tech-debt PRs from CI. Skills are written as personas rather than scripts, and they compose by loading foundational skills. Each one is developed and debugged locally before the same file is wired into GitHub workflows. Fixes run through a "Ralph-loop" that pairs separate worker and reviewer Claude invocations, iterating up to five times on SHIP/REVISE. Humans keep the merge decision.

  • Agentic Coding on Railway: A Practical Guide for 2026

    Railway mediumAdept

    Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop. Five workflows are walked through: scaffolding and deploying a service, adding Postgres with migrations, creating preview environments, debugging failed deploys from structured logs, and agents testing their own PRs against preview URLs. Long-running migrations, multi-service ordering and cost reasoning still stall. The advice is to scope agent tokens to non-production environments, require human approval for production promotions, set spend alerts, watch for revert loops, add observability via MCP, and write business constraints where the agent can read them.

The quest for software engineering knowledge.

Look:
Layout: