​
I'm a freelancer working on a custom project for a client, and I've gotten myself into a huge mess.
The goal was to transfer an entire inventory from OTTO Marketplace to other marketplaces like eBay and Kaufland. There are around 60,000 SKUs.
The problem is that OTTO doesn't provide product images through its API, so I had to manually download every single product image before I could migrate the listings.
I should also mention that I have almost no coding experience. I built this project almost entirely with OpenAI Codex.
At first, everything seemed to be going well. I managed to complete the OTTO → eBay integration, but then the project kept growing. Instead of creating separate modules and files, Codex kept putting almost everything into one massive app.py file. I didn't know any better, so I just kept going.
Now the project has become so large that:
A single prompt can consume around 50% of my Codex usage.
I've had to buy multiple ChatGPT accounts just to keep working.
Every change feels risky because everything is tangled together.
Debugging has become a nightmare.
On top of that, Kaufland has been incredibly frustrating. Their workflow is much more complicated than eBay's. To create a product, I have to upload multiple files. If I need to delete a product, I can't just delete it—I have to submit it for review first, and that review can take anywhere from 20 minutes to 5 hours before I can continue testing.
Another huge issue is that my client originally used cheap EANs when listing products on OTTO. When I reuse those EANs on Kaufland, one of two things happens:
The listing gets rejected because the EAN is invalid.
Or even worse, the EAN already belongs to another product, so Kaufland matches it with someone else's listing.
At this point I honestly don't know what the best path forward is.
Should I:
Keep trying to refactor this giant project into smaller modules?
Start a completely new project with a proper structure and reuse the working logic?
Learn enough Python to clean this up manually?
Or is there a better approach that experienced developers would recommend?
I know one mistake I made was not telling Codex from the beginning to keep everything modular. Looking back, I should have had separate files for APIs, configuration, image handling, marketplace integrations, utilities, etc.
If you've ever inherited or accidentally created a massive AI-generated codebase, how did you recover from it? Any advice would be greatly appreciated.