I want to build a coding tool where I can provide it with a description of the issue (including text, error screenshots, and the repository URL). The tool should then locate the relevant parts of the codebase, use the Cursor agent to make the necessary changes, test the result (based on some instructions I provide), and keep iterating until the issue is fixed—then commit the changes.
I want the whole process to be fully automated, without any human intervention.
Is it possible to run Cursor automatically via an API (from the terminal or programmatically through code) to achieve this?