Overview
Cursor has expanded its long-running agents research preview to all Ultra, Teams, and Enterprise users, enabling autonomous AI agents that can work on ambitious coding tasks for hours or even days. The agents use a custom harness with planning-before-execution and multi-agent verification to produce substantially larger PRs with merge rates comparable to shorter-running agents, representing an early milestone toward self-driving codebases.
What You'll Learn
How long-running AI agents differ from synchronous agents in producing larger, more production-ready code
Why planning before execution is critical for autonomous agents working on long-horizon tasks
How custom agent harnesses address frontier model limitations like losing track of context and partial completion
When to delegate tasks to long-running agents versus working interactively with synchronous agents
How multi-agent verification enables more thorough and reliable autonomous code generation
Prerequisites & Requirements
- Familiarity with AI-assisted coding tools and agent-based development workflows
- Cursor IDE with Ultra, Teams, or Enterprise subscription
- Understanding of pull request workflows and code review processes
Key Questions Answered
What are Cursor's long-running agents and who can use them?
How do long-running agents compare to synchronous coding agents?
What types of tasks can long-running AI agents complete autonomously?
Why do frontier AI models fail on long-horizon coding tasks?
How does Cursor's agent harness make AI models more capable for long tasks?
What is the vision for self-driving codebases at Cursor?
How long do Cursor's long-running agents typically run on tasks?
Key Statistics & Figures
Technologies & Tools
Some links below are affiliate links. We may earn a commission if you make a purchase.
Key Actionable Insights
1Implement planning-before-execution patterns in your AI agent workflows. Long-running agents that propose a plan and wait for human approval before executing produce better results because upfront alignment reduces costly follow-ups and prevents compounding errors from wrong assumptions.This is especially important for autonomous agents working on tasks longer than a few minutes, where a small initial mistake can cascade into a completely incorrect solution.
2Use multi-agent verification where different agents check each other's work to maintain quality on complex tasks. This approach helps agents follow through on larger tasks without losing track of the big picture or stopping at partial completion.Frontier models alone tend to forget context on long-horizon tasks. The multi-agent checking pattern addresses this fundamental limitation of current models.
3Consider delegating quarter-long projects to long-running agents by breaking them into well-specified tasks. Research preview participants reported compressing entire quarter timelines into days, with the ability to run multiple agents in parallel on different projects simultaneously.Best suited for tasks like feature implementation, system refactoring, performance optimization, and test creation where the requirements can be clearly specified upfront.
4Build model-specific harnesses rather than generic agent frameworks. Cursor found that working with every frontier model and building custom scaffolding for each produces better results because different models have different strengths that can be specifically leveraged.A generic one-size-fits-all approach to agent scaffolding misses optimization opportunities. Invest in understanding each model's capabilities and failure modes.
5Prepare for a shift in engineering workflows where code review of large agent-generated PRs becomes a primary activity. As long-running agents produce PRs with tens of thousands of lines, teams will need new tools and processes for reviewing and safely deploying AI-generated code.Cursor is actively developing tools to handle the volume of code being generated and new approaches to deploying it safely to production.