CursorShomil Jain, Joshua Warner & Andrew ZhaiExplainer
Bootstrapping Composer with autoinstall
Summary
RL training depends on runnable environments, because broken setup can consume tokens and compute without producing a reward signal or can make a task unsolvable. Composer autoinstall addresses this by using earlier Composer models to turn unconfigured repository checkouts into working mock environments. A Cursor agent first proposes 10 commands and expected outputs, while a separate Composer agent configures the checkout, mocks dependencies, and is evaluated against three selected commands. The process can create placeholder files, images, database tables, MinIO configurations, Docker containers, and startup scripts, restarting up to five times before discarding an environment. In a Celo monorepo experiment, the agent installed dependencies including Foundry and eventually mocked a user to run a minimal application; Composer 2 later scored 61.7% on Terminal-Bench versus 47.9% for Composer 1.5.
Context
RL training requires runnable environments. If setup is broken, a model may spend tokens debugging instead of solving problems, and an unsolvable environment can waste compute without producing a reward signal.
Approach / What changed
Autoinstall uses two agents and two stages: a Cursor agent proposes commands and expected outputs, then a separate Composer agent configures the repository, mocks missing dependencies or services, and is tested against three selected commands. The process is retried up to five times before an unsuccessful environment is discarded.
Takeaways
The first stage proposes 10 setup, test, or launch commands and describes the output expected from a correctly configured environment.
Autoinstall can create mock files, images, database tables, MinIO configurations, Docker containers, and startup scripts for missing project dependencies or long-running processes.
In the described benchmark, Composer 2 scored 61.7% on Terminal-Bench, compared with 47.9% for Composer 1.5.
Source and freshness
- Source
- cursor.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.