Refactoring a Codebase with Cursor

Hello devs,

I’m wondering if there’s any workflow / Cursor product that will attempt to upgrade my codebase when to a new package version.

Use Case
I’ve got to upgrade from Material UI v4 to Material UI v5 and there are a few breaking changes involved. I’d like to have Cursor attempt to make the upgrades for me throughout entire directories.

Perhaps this is currently possible, but if it is, I can’t find any info on this.

TIA!

4 Likes

I don’t think it’s possible yet but it would be awesome. I frequently have to do tasks that require repetitive stuff across a lot of files. Refactoring, changing apis, restructuring data, renaming stuff, etc. AI assistants are pretty useless at the moment for those sort of tasks that need to be done across a bunch of files.

1 Like

Agreed, this would be sweet. My current example is the Next JS 15 upgrade, it has a codemod but it doesn’t cover everything and it results in lint errors all over my codebase. Fixing them is rote work but since it’s throughout the whole codebase doing so wastes a lot of time - would be pretty sweet if I could just tell the LLM to do this boring work.