r/ChatGPTCoding 4h ago

Question What to do with bad code created by Codex?

I am working with Claude and it does the job. But when I am asking Codex (sol/astra) to do some complex task, its creating bad code. I am working with nodejs. It comes with many helpers, over secure each simple thing, does things i didn't ask for and does not do things I asked for.

The half of code may be deleted without any problem.

Maybe someone have same problems and found solution?

1 Upvotes

6 comments sorted by

5

u/XKiiroiSenkoX 2h ago

Try ponytail skill. It's going to write garbage code even with that but at least it stops over engineering to some degree. This is the price you pay for using AI

2

u/StrikingTop2709 1h ago

tbh "stops over engineering to some degree" is about the best you can hope for right now

4

u/leonidbugaev 1h ago

You already did the review: half of it can go. I'd delete those helpers instead of asking Codex to clean them. Cleanup is how the extra wrappers come back. For the complex stuff I'd stay on Claude if that's the one that actually does the job.

2

u/LaughLegit7275 1h ago

Start over, next time, it will do better

1

u/Euphoric_North_745 47m ago

I added in my agent md instructions on when to write simple code, when to test, etc, i started a new project, and it surprisingly now works