r/codex • u/InvestmentBusy7166 • Sep 19 '26
Question How do you structure Codex workflows for medium/large projects without overengineering?
Hi everyone,
I use Codex 5.x to maintain and build applications that are mostly medium-to-large in size, including enterprise projects in the banking and insurance domains.
I've experimented with several workflows and setups to reduce regressions as much as possible and to make the development process more reliable.
Right now, on a side project using Angular, Spring Boot, PostgreSQL, and Docker, I have the following structure:
root/ # not versioned
├── projectFE/ # Angular frontend Git repository
│ └── AGENTS.md
├── projectBE/ # Spring Boot backend Git repository
│ └── AGENTS.md
├── project-context/ # shared context repository for FE and BE
│ ├── docs/
│ └── AGENTS.md
└── AGENTS.mdThis is intentionally just the basic structure. It does not include any specific skills or additional agents yet — I'm only showing it to explain how the project is organized.
My question is: what would you recommend adding, in terms of skills and/or agents, to build a solid development workflow without overengineering it?
I'm mainly thinking about covering the full development pipeline properly, for example:
- code review
- testing
- build validation
- deployment
- Git command/control safeguards
- regression prevention
- frontend/backend consistency
- documentation and context management
- release checks
I'm aware that there are many possible approaches and custom workflows. What I'm looking for is something closer to a well-known, reasonably established standard or best-practice setup that works well for medium/large projects.
For those of you using Codex on real-world or enterprise-sized codebases: how do you structure your agents, skills, rules, and review gates?
Any examples of setups that have worked well in practice would be greatly appreciated.
Thanks!
2
u/CacamboGer Sep 19 '26
Mine looks roughly like this
I made the ruel very strict about unnecessary work like duplicate or triple validation just to be safe, tests only cover what is actually needed, and fixes stay focused on the thing that actually changed.
If I change one small thing, it doesn't run everything three times again.
It only reruns the checks that are actually affected by the change.
For example, one of my GitHub rules is that it only pushes to main when a specific checkpoint is reached.
And if something goes wrong that is too complex to handle safely with the existing rules, I have a HumanStop safeguard that stops the process instead of Codex just trying to figure it out on its own.
I have one main agents.md in the root as the entry point. The more detailed stuff is split into contracts, JSON files for policies and state, and some Python tools that enforce the workflow.
Took me quite a while to get it working properly 😅 but now Codex is a lot more consistent and I can get much done with the same usage limits.
2
u/[deleted] Sep 19 '26
[removed] — view removed comment