Cursor breaks my code every time I add a feature here's what I changed after 6 months of broken builds
spent months fighting this issue where cursor would work great for the first 20 messages of a chat and then suddenly start hallucinating dependencies that didn't exist or referencing functions I deleted three prompts ago. the conversation would get too long and the context window would fill up and it would just start making things up.
the fix that actually worked was so stupid I almost didn't try it. instead of continuing the same chat I just start a new one every 10 messages and paste the last 5 messages back in as context. sounds inefficient but it's actually faster because I don't spend two hours debugging code that was never real in the first place.
also noticed that if I keep the prompts shorter and more specific it holds context longer. the massive "build me everything" prompts are the ones that break the fastest. one thing at a time and the quality stays consistent.
anyone else dealing with this context decay thing or is it just my project getting too big