Hasty Briefsbeta

Bilingual

How Cursor sets up their cloud agent environment

6 hours ago
  • The development environment is a product for agents, and must be designed to match cloud and local development.
  • To enable cloud agents, Cursor made the repo work on Ubuntu VMs, added dependencies to a Dockerfile, and implemented security features for secret management.
  • A custom CLI called 'anydev' simplifies build and run commands, making it easier for agents to test code reliably.
  • Cursor Cloud MCP was built to allow agents to inspect and heal their own environments, detecting setup failures and other issues.
  • An automation called 'Cloud Doctor' periodically checks for failures, does root cause analysis, and opens PRs to fix issues.
  • Cloud Doctor also analyzes agent traces to identify misleading skills or slow workflows, then improves the environment for future agents.
  • As a result, cloud agents now author more than half of Cursor's merged PRs, up from one in ten in December.
  • To assess codebase readiness for cloud agents, consider whether agents have access to the same tools and data as developers, can find relevant skills, and can test core workflows.

Related

Loading…