Passing a prompt into the CLI agent as an arg causes duplication

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

If I pass a prompt into the CLI it acts as if it’s continually receiving this prompt many times in a row and the session is permanently borked.

Steps to Reproduce

just run it like so- cursor-agent "This is a test prompt"

Expected Behavior

it should act as if it receives a single prompt and move on

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

cursor-agent --version
2026.01.02-80e4d9b

For AI issues: which model did you use?

Opus

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This is a known issue, and the team is already working on a fix.

Temporary workaround: use interactive mode instead of passing the prompt as an argument:

cursor-agent
# then enter your prompt in interactive mode

A similar bug was documented here: CLI weird prompt repetition after response when I supply the prompt as an argument