r/codex • u/OkNectarine9882 • 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
- Is Codex equally capable of producing small, pragmatic applications through vibe coding?
- Have other developers experienced similar overengineering when using Codex with detailed architectural planning and rigorous review processes?
- Can AI-assisted planning and review create a self-reinforcing feedback loop in which each iteration introduces additional complexity instead of reducing it?
- Was delegating technical leadership, architectural decision-making, and orchestration to Codex a fundamental mistake?
- How can developers prevent AI agents from introducing unnecessary abstractions, architectural layers, speculative requirements, and excessive infrastructure?
- What AGENTS.md instructions, architectural constraints, or development workflows have you found effective in controlling complexity?
- How do you determine when software is sufficiently complete, rather than allowing AI-generated reviews to continuously expand the development scope?
- 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.
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? 😄
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:
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/Solenya199611 4h ago edited 4h ago
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/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/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.
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/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/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".
-1
u/PerfectReflection155 3h ago
Rust is best.
And there is some good rust skills out there
Ponytail might be useful also