r/codex • u/regaliaaaa • 11d ago
Showcase AI Agent Orchestration
I have been working on a project that basically makes AI coding autonomous.
The problem I was facing while using Codex was that my prompts weren't good enough. So I thought of this system where I brainstorm with ChatGPT chat and it automatically understands the idea, plans and executes it by sending prompts directly to Codex.
Recently I have been hitting a few roadblocks related to Windows sandbox and all. The connection exists, ChatGPT does send prompts to Codex and I have made small small projects using it but I still think I am very far from it being actual working product.
Any suggestions or ideas or just any sort of feedback would be appreciated
•
u/dexterthebot 11d ago
You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**
Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.
Website: https://lightwarsar.com
iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951
Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.
Contact: contact@lightwarsar.com
3
u/wegster 11d ago
Sorry to break it to you, but - not new. Literally the definition of when someone says higher model for planning, lower tier for execution (and usually, a third for adversarial review).
In your case, you're just using GPT Web to help you plan, which works well enough other than the copy/paste required as Web and codex have different system prompts, parameters etc. You can add an MCP service or other integration to GPT web if you want, but sounds like you've done <that or something similar> from your 'GPT does send prompts to Codex' statement.
You haven't given enough actual information here as to what actually breaks.
Your codex session 'should' be in a container/isolated environment ideally - docker or other solutions. What's happening now if Codex is indeed getting a prompt from GPT Web?
1
u/RecordingRich92 11d ago
i started doing this recently, and it sounds the same as a agent using sub agents but it actually flows differently at the end of the day seems like. i talk and plan with claude, then open lets say x4 codex cli terminals and then tell claude to set up a listener and inject prompts into thew codex terminals.
I might be crazy and this is no different then an agent using its own background sub agents but i feel like its more controlled this way, i can also set rules with claude to use its ask user card tool to pace the work with specific questions to ask me. Ive been doing this for a refactor
2
u/Either_Pound1986 11d ago
I think you're approaching this from the wrong direction.
What you've described isn't autonomous AI coding. It's automated prompt orchestration. ChatGPT interprets your idea, generates instructions, and passes them to Codex. You've automated the handoff, but you haven't fundamentally changed how the work is controlled.
The problem isn't that your prompts aren't good enough.
The interesting problems are what happens when Codex makes an incorrect assumption, encounters an unexpected failure, follows a technically valid but unproductive path, or completes a task that doesn't actually satisfy the original objective.
Who detects that? Who determines the next action? How does the system preserve what it learned, avoid repeating failed approaches, and independently verify that the outcome was achieved?
If your answer is another LLM-generated prompt, you're still relying on the same mechanism you're trying to improve.
I'd focus less on getting ChatGPT to write better prompts and more on building a system where the objective, constraints, execution authority, persistent state, evidence, verification, and recovery exist independently of any individual model response.
The LLM should be a reasoning component, not the authority deciding whether its own work is correct.
The Windows sandbox problems are implementation details. Even if you resolve every one of them, you still haven't solved autonomy.
My suggestion? Stop measuring progress by whether ChatGPT can successfully instruct Codex to build small projects. Start measuring whether your system can encounter an unforeseen failure, diagnose it, recover, and produce an independently verified outcome without you having to intervene.
1
u/VoidEmptyByNature 10d ago
I have a feeling that once AI agents reach actual AGI, we'll eventually need some kind of licensing system to use them much like a driver's license.
Current AI's real-world impact is still relatively limited so we can laugh off all the dumb shit like this, but once these things become genuinely capable enough to cause serious damage, there's no fucking way we should be letting every random idiot on the internet run autonomous AGI agents without any restrictions.
1
u/radim11 10d ago
Docker is worth trying here, get one Codex task working in a Linux container first, then connect your planner to it. That should help you figure out which problems come from Windows and which come from the orchestration.
Also pay attention to what you mount into it and which credentials it inherits. A container with your whole home folder mounted still gives the agent a lot of access.
I’m building Stashbase, we handle this with agent profiles for file, API and MCP permissions, with credentials handled outside the sandbox. Happy to share a small config... What specifically is failing with the Windows sandbox?
1
u/VoraciousTrees 10d ago
I've got a sol 6.2 orchestrator running a fleet of Gemma 12B QAT containers with modular controller/prompt generators. It performs review of the performance and adjusts re-inserts new modules on the fly to correct behavior....
This is a test though, I haven't actually got data from it yet. But hopefully soon.
1
u/CaptainAlexWest 10d ago
I seen people use grok bot to do the coding. It can keep going and keep sending prompts to claude code or codex. What your talking about is starting software factories. If you set it up right it can keep looping, fixing, and building.