Cursor Agent chat becomes extremely slow on projects with large codebase.
Disabling Codebase Indexing fixes the slow chat.
I then performed a Compute Index and chat seems better.
I then asked if we should add anything to .cursorignore and it recommended the following.
These directories are large (node_modules is 656MB, .next is 434MB, .git is 97MB) and don’t need to be indexed for coding purposes. While it appears .git and node_modules might already be excluded by default, explicitly listing them ensures they’re ignored. This should significantly improve Cursor’s performance and reduce indexing time.
node_modules/
.next/
.git/
build/
I wanted to submit this as a bug in case others are experiencing similar issues and I will see if it helps with slow chat and OOM issues.