Coordinate sub-agents to monitor PRs and fix prod bugs
A Cursor Projects coordinator agent delegates to sub-agents, watches new PRs and production bugs, spins up agents to fix issues, and surfaces questions to the user.
Cursor's write-up on scaling long-running autonomous coding.
Cursor's write-up on scaling long-running autonomous coding.
Cursor ran hundreds of concurrent agents on one project. Flat self-coordination through a shared file with locks, then optimistic concurrency, failed. They switched to planners that explore the code and create tasks, and workers that each grind on one task and push. A judge agent decided at the end of each cycle whether to continue, and the next cycle started fresh.
A browser built from scratch ran close to a week and produced over 1 million lines across 1,000 files. A Solid-to-React migration took over three weeks and passed CI but still needs careful review.
Prompting mattered more than the harness or model. Agents sometimes ran far too long, and periodic fresh starts were still needed to counter drift.
I want a background agent to work on [large task, e.g. migrating all API handlers to the new validation library] in my repo [repo] for an extended stretch. Break it into small checkable steps, work through them one by one, run tests after each, and commit after each step that passes. Stop when all handlers are done or after [number, e.g. 3] consecutive failures, and leave me a progress log.
A Cursor Projects coordinator agent delegates to sub-agents, watches new PRs and production bugs, spins up agents to fix issues, and surfaces questions to the user.
Ran a Cursor agent continuously for 24 hours to build a project management tool; the app fully works but is not production ready.
The author had ChatGPT take the Session Buddy extension source from Chrome, port it to Safari and install it, taking about 20 minutes.