I gave Claude Code, Codex, and Gemini CLI the same messy old codebase, and only one fixed it without breaking something else

I gave Claude Code, Codex, and Gemini CLI the same messy old codebase, and only one fixed it without breaking something else

Published Dec 6, 2026, 7:30 AM EST Anurag is an experienced journalist and author who’s been covering tech for the past 5 years, with a focus on Windows, Android, and Apple. He’s written for sites like Android Police, Neowin, Dexerto, and MakeTechEasier. Anurag’s always pumped about tech and loves getting his hands on the latest gadgets. When he's not procrastinating, you’ll probably find him catching the newest movies in theaters or scrolling through Twitter from his bed. A few years ago, I built a personal discovery feed as an alternative to social media. It pulled articles and videos from a bunch of websites and presented them in an endlessly scrollable feed without requiring an account. I wrote most of the code myself, back when AI coding agents weren't really a thing. Over the years, several websites stopped working, new articles stopped appearing consistently, and some features no longer behaved as I originally intended. I'd also forgotten why I made several decisions when writing the code. More recently, I wanted to revive this project because I felt I was spending too much time scrolling through social media without learning anything new. I gave Claude Code, Codex, and Gemini CLI separate copies of the application and asked them to fix it. All three managed to resolve problems with the app, but only one agent did so without breaking something that already worked. I had forgotten how parts of my app worked Years of undocumented decisions The idea behind the app was to discover things I wouldn't ordinarily come across on social media. I didn't want a conventional RSS reader that simply listed articles in chronological order, either. A news publication can put out dozens of articles in a day, whereas an independent blogger might publish something once a week. I wanted both to have a reasonable chance of showing up in my feed. How the app fetched, sorted, and distributed articles was just as important as where it sourced them from. I had written much of the application incrementally, adding features and making changes whenever I encountered a problem. I didn't always go back and clean up the older code, nor did I bother documenting many of my decisions since I was the only person using the app. Now that I'm going through the code again, some of the stuff that made perfect sense to me back then looks like complete gibberish. If I want to fix one thing, I have to look at several other parts of the code. For instance, changing how the app sorts articles could mess up the scrolling logic and cause the same articles to appear twice. Similarly, changing how the app refreshes content could shuffle the entire feed when I'm halfway through scrolling. I deliberately avoided telling the three coding agents how to fix the app. I described the problems I was experiencing, explained what I originally wanted from the app, and left them to explore the codebase. Claude Code and Codex came surprisingly close Different approaches to the same problems One of the things Claude Code did particularly well was figuring out why a piece of code existed before deciding whether to change it. In an old codebase like mine, there are several instances where the same thing could have been implemented in a much simpler way, but I had deliberately chosen a more complicated approach to accommodate something else. Codex also understood many of these decisions, but I noticed a lot of difference in how the two agents approached debugging. Codex would sometimes get stuck trying variations of the same solution when something didn't work. It eventually figured things out in most cases, but there were times when I wondered why it hadn't abandoned its current approach and investigated another part of the codebase. Claude Code, specifically Opus 5.5, was much better at recognizing when a problem needed looking beyond the function or module where it first encountered an error. It’s important in an app like mine, where a problem with the articles appearing in the feed could originate anywhere from the fetching mechanism to the frontend's rendering logic. Gemini CLI also managed to identify and resolve several problems with the app. But between the three agents, I found Claude Code's implementation decisions more thoughtful. Codex came very close, and I would have been perfectly happy with much of the code it produced had it not been for a regression I discovered when testing the application afterward. Fixing one feature shouldn't break another Getting it right the first time Testing an app like this requires more effort than just checking whether new articles appear on the home page. I also need to know whether I can scroll through several pages of content without seeing duplicates, whether articles from smaller websites still make it into the feed, and whether the application continues to work when one of its sources goes offline. These are things I would ordinarily take for granted when using the app. Both Codex and Gemini CLI introduced regressions that I had to explicitly ask them to fix. They eventually managed to resolve those issues, but that also depended on me knowing the application well enough to identify what had gone wrong. If I had handed them a codebase someone else wrote, I could have easily missed a change in behavior that didn't produce an obvious error. The models matter, too I used GPT Sol 6.2 with Codex, Opus 5.5 with Claude Code, and Gemini 4 Neon with Gemini CLI. Of course, the results could be different with other models or even a different codebase. What's exciting for me is that I can now go back to several of my abandoned projects without having to spend an entire weekend figuring out what I wrote years ago.

Original Source

Read the full article at Xda-developers →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.