Learning Timeline
Key Insights
Benefits of YOLO Mode
YOLO mode allows the AI to run terminal commands, install libraries, and modify files automatically without requiring 'Yes/No' input from the user at every step. This significantly accelerates the workflow for experienced developers.
Editor Flexibility
This CLI feature is highly useful for advanced engineers who don't want to leave their favorite editors like Vim or JetBrains, but still want to leverage the power of generative AI from Cursor.
Prompts
E2E Test Automation Prompt
Target:
Cursor CLI
let's add end-to-end tests with Playwright for testing submitting prompts in the chat. Make it good. Make it great.
Step by Step
How to Run Cursor Agent via CLI in YOLO Mode
- Open your terminal or Command Line Interface (CLI) of choice (such as your built-in Terminal, Vim, or the terminal within JetBrains).
- Type a prompt for Cursor Agent to start the task, for example: 'let's add end-to-end tests with Playwright for testing submitting prompts in the chat'.
- Provide a 'broad task' command to the AI so it can independently plan the necessary steps.
- When Cursor asks for confirmation to run terminal commands or install packages, look for the interaction mode options.
- Select 'YOLO mode' to allow the AI to make decisions without asking for confirmation repeatedly.
- Click or select 'Auto run all commands' to grant full permission for the AI to execute all commands automatically.
- Monitor the AI as it manages its 'to-dos', installs dependencies, and builds configuration files automatically until the task is complete.