I wasted 4 months asking an AI chatbot to do my code reviews wrong
I kept feeding the whole 3,000 line file into ChatGPT and asking it to review the code, and I always wondered why the suggestions were so generic and missed obvious problems. Last week a coworker in Denver pointed out that I should only paste the specific function plus its callers and its tests, and honestly the output changed overnight. The model was drowning in my giant file and never had room to actually reason about one thing. I tried this on a 40 line helper last Tuesday, and it caught a null check bug I had missed for weeks. Has anyone else noticed that less context in the prompt gives way better reviews from these tools?
Picturing your 3,000 line file shoved into the chat window like a clown car, the model just blinking at the pile and guessing. You basically gave it a haystack and asked where the needle was, and it panicked and pointed at a random straw. The part that gets me is the 40 line helper catching a null bug you missed for weeks, because of course the little guy got the full attention it needed. Honestly the whole thing sounds like telling a friend "read my novel and find the typo" when you meant one paragraph.