How does Cursor's agent mode work?
Cursor's agent mode (Cmd+Shift+I or the Composer with agent enabled) can autonomously make changes across multiple files, run terminal commands, read error output, and iterate until a task is complete. You describe what you want in plain English, and the agent plans a sequence of edits, executes them, and shows you a diff before applying. It's best for well-defined tasks with clear success criteria.