Bulk refactoring on cursor over 100 repos

I need to perform a mass refactoring across 100 repositories in my company. The changes are minimal—just adding a few packages and making some simple configurations. However, since this affects over 100 repositories, I’m wondering if Cursor can handle it efficiently.

Currently, I’m opening all these repositories in a single workspace and asking Cursor to apply the changes to five at a time. So far, everything is working as expected. However, I’m looking for a more elegant solution.

Is it possible to run the Cursor agent from the CLI? If so, I could execute a batch command in the terminal to apply the changes across all repositories at once. If not, would it be feasible to have over 100 repositories in my workspace and let Cursor handle the refactoring? Or would that introduce too much context, making it difficult for Cursor to process effectively?

It’s possible to ask Cursor to write a script that detects the remaining files needing modifications and have the output contain instructions needed to apply updates. Then ask it to run the script over and over (25 runs at once of course, unless you can bulk them) until the results are as expected. Be aware that it might start creating new folders and files randomly so it should be pointed very well on the target files.