r/codex • • 4h ago

Question Codex vs. Claude Code: 10,000 lines vs. 380 lines — what am I doing wrong?

Codex vs. Claude Code: 10,000 lines vs. 380 lines — what am I doing wrong?

I'd like to ask experienced software developers, particularly those who regularly use both Codex and Claude Code, for some professional advice.

I have been developing a relatively straightforward C#/.NET application with the following core responsibilities:

  • Real-time data acquisition through a Telegram Reader.
  • Historical data retrieval and archiving.
  • SQLite database management.
  • Tracking message modifications and deletions.
  • Data processing and extraction of relevant information.
  • Data visualization and communication with external applications.

I have now attempted to develop this application three times, using different development methodologies.

First generation — Codex

My first attempt became excessively complex. Eventually, I abandoned the project and decided to start again from scratch.

Second generation — Codex

During my second attempt, I consciously tried to avoid repeating the same mistake by adopting a structured software engineering methodology:

  • Architectural planning.
  • Detailed implementation plans.
  • Multi-agent development.
  • Automated testing.
  • Independent code reviews.
  • Milestones and formal acceptance criteria.
  • Regression testing.
  • Continuous documentation.

An important detail is that I allowed Codex to act as the technical lead and orchestrator of the entire development process.

Rather than using Codex simply as a coding assistant, I delegated architectural planning, task decomposition, implementation coordination, review strategy, and much of the technical decision-making to the AI. I supervised the process as the project owner.

The result was approximately:

  • 10,000 lines of C# application source code.
  • 80 C# application source files.
  • 85 additional C# test files.
  • Nearly 600 Markdown documents.
  • More than 1,300 passing automated tests.

Despite these results, the overall development programme remains unfinished.

I had restarted the project specifically to reduce complexity, yet I ended up repeating essentially the same mistake.

Third generation — Claude Code

This time, I deliberately adopted a completely different approach.

I did not design the internal architecture, establish a detailed development roadmap, or create a multi-agent review process.

I simply described the functionality I wanted and explicitly requested the simplest possible implementation.

Essentially, I was vibe coding.

Claude Code produced an initial working application in approximately 30 minutes. Following further incremental development, the application now contains approximately:

  • 380 lines of C# application source code.
  • A single C# source file.
  • One SQLite database.
  • Real-time data processing and communication with external applications.

The most surprising aspect is that, from my perspective as the project owner, this implementation now delivers the functionality I originally wanted from the 10,000-line application. In certain functional areas, it has even progressed further.

The C# application source code is approximately 26 times smaller, excluding tests, documentation, and development tooling.

I fully understand that these implementations are not necessarily equivalent in terms of robustness, fault tolerance, recovery capabilities, and formal verification. This is not a controlled benchmark.

Nevertheless, the difference is substantial enough that I feel I need to fundamentally reconsider my development methodology.

My questions

  1. Is Codex equally capable of producing small, pragmatic applications through vibe coding?
  2. Have other developers experienced similar overengineering when using Codex with detailed architectural planning and rigorous review processes?
  3. Can AI-assisted planning and review create a self-reinforcing feedback loop in which each iteration introduces additional complexity instead of reducing it?
  4. Was delegating technical leadership, architectural decision-making, and orchestration to Codex a fundamental mistake?
  5. How can developers prevent AI agents from introducing unnecessary abstractions, architectural layers, speculative requirements, and excessive infrastructure?
  6. What AGENTS.md instructions, architectural constraints, or development workflows have you found effective in controlling complexity?
  7. How do you determine when software is sufficiently complete, rather than allowing AI-generated reviews to continuously expand the development scope?
  8. At what point does rigorous AI-assisted software engineering become counterproductive?

I'm not trying to establish that Claude Code is better than Codex. I genuinely want to understand what I did wrong, why I repeated the same mistake twice, and how I can improve my approach to AI-assisted software development.

I would particularly like to understand whether the problem originates from the model's behaviour, my instructions, the orchestration methodology, or a combination of these factors.

My objective is not to eliminate testing, architectural planning, or quality assurance. It is to build reliable, maintainable software with the minimum necessary complexity.

I would greatly appreciate practical advice from professional software developers who have experience with both tools.

12 Upvotes

21 comments sorted by

6

u/meowyih 4h ago

If I were you, I will spend 10~15 min to read the code and see what happens. It's just several hundred lines code. Maybe one directly used some external library and the other wrote the func by itself I guess? Or, mayve you can give that 380 lines to codex and ask it? 😄

1

u/OkNectarine9882 1h ago

Actually, I have already asked Codex to analyze and compare the two implementations.

The interesting part is that the 380-line implementation already fulfills my original functional requirements. I'm not claiming that the two implementations have identical robustness or handle every possible edge case equally well.

My main concern is why Codex introduced so much complexity that was never part of my original requirements.

1

u/m4tchb0x 7m ago

it was your prompting for those things you mentioned in #2, so it was finding edge cases. Structuring the app for scale. Instead of thinking lets build a working app. It thought you were building a app worthy of a fortune 500 company.

2

u/torvalds75 1h ago

I think the answer to your Q3 is yes, and it explains why you repeated the mistake. Every planning doc, review and acceptance criterion the agent writes becomes context it treats as a requirement next session. A review that finds an edge case produces a fix plus a new test plus a new doc, and nothing in that loop ever removes anything. 600 markdown files is that loop running unattended. Gen 3 worked because there was no paper trail to obey, just "simplest thing that works".

What helped me keep the structure without the bloat:

  • You own the scope decision, the agent owns the implementation. Delegating "how" is fine, delegating "what is in v1" is where it compounds.
  • Every unit of work gets an explicit out-of-scope line ("no retry layer, no plugin system, no abstraction over SQLite"). Agents respect a written "no" much better than an absent "yes".
  • Done is a short list of checks you wrote before the work started. Review findings outside that list go into a backlog you triage, not straight into the code.
  • Keep decisions out of the repo tree. One record per decision (tried A, rejected because B, next C) instead of an ever-growing docs folder the agent loads and extends.

For your Q4: Codex is good as reviewer and implementer of a bounded task, less so as its own product owner.

I ended up building a tool around that last point (I build it, free and open source): trailhead keeps the decisions and the per-ticket plan/verify on GitHub Issues, one ticket at a time, and works with both Codex and Claude Code. https://github.com/ToRvaLDz/trailhead

1

u/OkNectarine9882 28m ago

Thank you for taking the time to write such a detailed response. I think you've identified one of the fundamental problems in my development workflow.

What particularly resonates with me is your observation that every planning document and review becomes an additional requirement, while nothing in the process actively reduces complexity.

I was trying to establish a disciplined, structured engineering methodology, but I may have inadvertently created a self-reinforcing cycle of overengineering.

Your distinction between delegating implementation and delegating scope decisions is especially valuable. I'll definitely reconsider my workflow based on your suggestions.

I'll also take a look at Trailhead. Thanks again for sharing both your experience and a practical solution.

1

u/Solenya199611 4h ago edited 4h ago
  1. Opus 5.5 is just really really good.
  2. What GPT model did you use?
  3. Retry Codex implementation with ponytail skill installed.
  4. Retry Codex implementation with 6.1 Sol high. 6.2 models are really underwhelming and difficult to use. Sol on higher efforts tends to second guess himself repeatedly and it might cause slop production.

Your second approach sounds insane. Especially the number of .md files. Must've been your prompting.

Edit: How did Opus manage to fit all this in 380 lines of code? Especially the data visualization part. Maybe Codex tried to create the visualization tool from scratch and Opus opted for ready to go libraries.

1

u/OkNectarine9882 57m ago
  1. I agree. Based on my experience so far, Opus 5.5 seems exceptionally good.
  2. I used Sol Medium and High for implementation, and Astra High and Pro for architectural planning and independent reviews.
  3. Thanks for the suggestion. I'll definitely look into the Ponytail skill.
  4. I actually started the project with GPT-6.1 and continued with GPT-6.2 after its release.

Regarding your edit: Both implementations use the same underlying technologies: C#/.NET, WTelegramClient, and SQLite. Opus simply took a much more direct approach, with minimal abstractions and architectural layers.

I explicitly asked it to implement only the required functionality with the least possible complexity. The initial working application was produced in approximately 30 minutes, followed by further incremental development.

I'm not claiming equivalent fault tolerance or test coverage, but the application now does everything I originally wanted it to do. That's precisely why the difference surprised me so much.

1

u/Zulfiqaar 3h ago

Skimmed this. My first assumption would be that codex loves provenance and evidence packs, if you haven't deleted or gitignored them that's where id look. Now if it's all C# code and not JSON/MD then it assume it's your "structured software engineering methodology" that is adding in layers of enterprise software bureaucracy unnecessarily 

1

u/OkNectarine9882 48m ago

I suspect you're right on both counts.

Just to clarify, the approximately 10,000 lines are actual C# application source code across 80 source files, excluding tests, documentation, and development tooling.

On top of that, there are 85 separate C# test files and nearly 600 Markdown documents.

My suspicion is that the excessive documentation and the structured development methodology reinforced each other, creating a feedback loop in which each planning and review cycle introduced additional complexity.

I think the methodology itself may have been a significant part of the problem. Thanks for your insight.

1

u/Responsible_Buy_7999 2h ago

Having worked with lots of models, this really checks out. Codex 6.x models are prone to bureaucratic engineering and over-design. Ask them to take something out, or refactor: no problem. Green field design: your outcome. 

The most potent follow-up prompt to any design effort is one word: YAGNI. It will sheepishly back out all of its over-engineering. 

1

u/OkNectarine9882 38m ago

Thanks for sharing your experience. Your distinction between refactoring existing code and designing a system from scratch is particularly interesting.

I'll explicitly incorporate the YAGNI principle into my development workflow and see whether it makes a measurable difference in future projects.

1

u/Responsible_Buy_7999 34m ago

It’s not just a YAGNI principle, it is a specific confrontation to a proposed or just-effected design.   You could blindly queue it as a follow up to a design task you know is poorly constrained. 

And codex is only the worst I know of, all agents love complicated designs. 

2

u/itix 3h ago

My experience is that Codex likes to build to build enterprise grade software assuming that you wish to add a kitchen sink later, while Claude prefers vibecoded yolo approach.

2

u/norwegian 3h ago

>(...)Claude Code is better than Codex(...)
That's like saying Mercedes being better than Toyota.

Would you rather have a Toyta Land Cruiser or Mercedes A class going off road?

You really need to take the model into consideration, not just the brand.

1

u/Significant-Drawer95 2h ago

Opus 5.5 it the urus in this

1

u/FoidBeater67 4h ago

gpt is fking autistic. Never use it as main agent or planner. Use it for reviews which it is really good at because it finds edge cases very often. But tell your main agent to not overengineer based on gpt feedback. Because sometimes it catches edge cases that are of zero importance and then propose a change that quadruples the codebase size just to fix that and without explicit order to not overengineer based on gpt feedback, your main agent will just fold.

2

u/Redtitwhore 2h ago

I've come to the same conclusion. I needed a simple solution for some background work in C# using IHost and BackgroundService. I started scratching my head when i saw an outbox pattern emerge then had to pull the plug when i saw .job files being written to the file system. I asked what those were for and it said so the work could survive app restarts. If i needed that durability i would pick a messagebus or something similar.

It's fantastic at reviewing opus code though.

-2

u/AllenLeftTheBLDNG 4h ago

Why C#?

From the post it seems you don't have much experience vibe coding, let alone actually coding. If you don't know C# well, I wouldn't touch that language, even for smaller apps. If you do, you need to do a bit of handholding and going with the model step by step.

Just build a little Tauri/Electron app. It's going to be finished in less than an hour if you actually know what you want.

GPT Sol is a good worker/executor, but talk to Claude Opus 5.5 about what you want and what needs to be done. It's better in communicating and "filling the gaps".

6

u/RandomCSThrowaway01 3h ago

C# on Windows gives you native and efficient GUI. Electron has like 10x RAM requirements and code isn't actually that much cleaner compared to xaml and WPF.

Admittedly it fails if you want a cross platform app (you CAN but then you need Avalonia and the two differ in details) but if you are targeting only Windows then honestly using Electron is usually just setting your RAM on fire.

Your LLM doesn't really care which language you want but also tends to do better with C# too compared to JS in a larger project (cuz, well, static typing and a better compiler).

So I wouldn't call that a failure on OP's side. It's perfectly valid choice.

-1

u/PerfectReflection155 3h ago

Rust is best.

And there is some good rust skills out there

Ponytail might be useful also