Trigger a cursor background agent programatically or from the terminal

:waving_hand: Hey folks, I’ve tried searching the forums and existing documentation without success but feel free to let me know if this is a feature already supported.

I would like to be able to invoke an agent programmatically or via a terminal command, or even a cursor command …

My use-case: I want to produce dev-tooling based on a background agent, to write tests instead of devs for example. So far, with a well-written mdc I can generate the tests I want. The problem is that I don’t want the devs who are going to use it to have to open the agent menu and add the necessary rules and files themselves. I’d like them to be able to launch a command, a cli or similar, and the rest is done for them.

Is this something that’s currently possible, or that’s being developed?

1 Like

I think currently Cursor doesn’t support that.
I’m looking forward for that feature too