r/codex • u/Easy-Push-392 • 19h ago
Suggestion Spent an entire day optimizing Codex, so I figured I'd share my setup and prompts
I've been using Codex pretty heavily lately and wanted to get more out of my weekly limit without sacrificing quality.
I'm also terrible at writing prompts sometimes, and I want Codex to understand what I mean and keep working independently while I'm away from my PC.
After way too many hours of research, testing and trial and error, here's what I ended up with:
- GPT-6.2 Sol High — main coordinator
- GPT-6.2 Astra High — architecture and critical decisions
- GPT-6 Luna High — research, exploration and simpler tasks
- GPT-6.2 Sol High — complex coding and code review
- GPT-6.1 Terra Medium — visual/UI testing
Everything on Standard speed.
Instead of having Astra coordinate everything, I gave Sol 14 specific rules for when it must automatically consult Astra. Things like architectural changes, database migrations, security issues, conflicting agent conclusions or repeated failed attempts to fix a problem.
Astra makes the difficult technical decisions, while the other agents do most of the actual work.
I also added better prompt handling, debugging skills, Context7, context handoffs, independent reviews and rules against wasting tokens on unnecessary agent calls.
I tested the automatic Astra routing and confirmed through local session metadata that it actually spawned GPT-6.2 Astra High without me explicitly asking for it.
Anyway, I turned the whole process into two reusable prompts:
- Codex prompt: audits and optimizes your existing setup.
- ChatGPT prompt: guides you through the process and reviews Codex's proposed changes and permission requests.
I'd recommend GPT-6.2 Extra High for ChatGPT and Astra Extra High, Standard, Ask for approval for the initial Codex configuration.
The prompts adapt to your installation instead of blindly copying my settings.
Both prompts and instructions: GitHub
Curious what other heavy Codex users are doing. Do you prefer Astra as the main coordinator, or Sol with Astra as an expert? Have you noticed any actual usage savings with multi-agent setups?
Hopefully this saves someone else a day of messing around with configs lol.
All of this was really written by human, just AI edited it and made some grammar fixes (😄
Cheers !
•
u/dextersummary 6h ago
Below is a GPT-generated summary of the conversation below after reaching 40 comments (40 currently observed).
The thread’s verdict: interesting experiment, probably overengineered. The strongest reaction is that spending a day building an autonomous agent hierarchy may create more complexity than it solves—especially if you still have to check the work.
OP’s setup uses Sol as coordinator, other models for routine tasks, and Astra for critical decisions. They’ve shared reusable prompts and say usage fell without sacrificing quality. Session metadata confirmed Astra was actually being called, but that doesn’t establish that the whole setup beats ordinary Codex on cost or results.
Several commenters would rather keep it simple: use Sol for most work, raise the reasoning level for harder jobs, and bring in Astra when genuinely needed. Others question whether cheaper subagents compromise quality or whether coordination just burns more usage. The useful next step is an eval against a simpler baseline: measure both output quality and consumption. A working agent orchestra isn’t automatically a better performance.
129
u/vrnvorona 18h ago
Wasted a day of your life, but glad you are happy
12
u/Minute-Succotash7714 18h ago
I assume you're not on plus to use astra high for anything, I wonder if someone has a setup like that but for plus commoners.
15
u/ArgumentRadiant3506 11h ago
I see a lot of negative comments without a lot of substance so here’s my 2 cents.
Basically anything you think is going to improve outputs or save tokens is not really useful unless you can measure it or verify it. So you need evals.
13
u/DepravedPrecedence 14h ago
I understand it was an interesting thing to do and it's quite fascinating to see this setup "working together" and all but this is really unnecessary and basically creates overengineering problem even before LLM starts working.
10
u/time_waster3000 11h ago
Sol medium and just call it a day until the next model
6
u/lxnxx 15h ago
Have you actually compared this to the basic thing?
Just use Sol medium for basic code, high for difficult code, Astra for cutting edge research?
5
u/SargonPhin 18h ago
Looks nice! If I was making a similar setup I would rather use Terra on Low instead of Luna on High, this is rather wasteful for potentially inferior results. See if that combination works better, you may even save some tokens
4
u/PM_ME_FIREFLY_QUOTES 15h ago
Needing Astra for database migrations is wild.... maybe to build a journal to track amd govern it...once. But that should be between sol or terra based on the size of the change.
4
u/maximhar 12h ago
Did you validate this gives you a better performance than the out-of-the-box Codex behavior? The vast majority of problems don't need this setup.
2
u/Significant_Sun_5225 12h ago
I’ve tried this and I’ve never really seen better results for this besides burning my usage faster but maybe I used it wrong. Who knows
2
u/SmileLonely5470 12h ago
I think its a waste of time to try complicate this. Does using a coordinator model actually make things cheaper on average? The intuition is yes it should, but bc of prompt caching and how LLMs will always find issues with things if you prompt them to, probably not.
Im working on ~200k loc codebase with ~20 different feature domains in it. On my $20 plan the models navigate it just fine and I never run out of usage. The only thing I do is configure my harnesses (Claude Code and Codex) so that they store memories (both of them have a system built-in) and whenever they do something bad I invoke a skill that it uses to update its memory. I also use AGENTS.md files.
If your codebase has good architecture that takes care of the rest.
Also context7 would go hard in 2024 but in 2026? nah.
2
u/anatawaurusai2 6h ago
There was a somewhat similar very popular project called sol advisor that used sol to coordinate with subagents: sol and luna max. I dont remember the exact analysis but the author said after a few months the results were more expensive and less accurate then if he had just let sol run the whole thing which was shocking
1
u/Sad_Bet_104 17h ago
I use sol high for main agent from planning to implement:
1
u/lumalfa 17h ago
Thanks, I hope it otimizes my work
1
u/Aggressive-Spenda 17h ago
Why not have work route mechanically by task type and difficulty?
1
u/supernitin 16h ago
I’ve been getting a lot of error messages using GPT 6 extra high in ChatGPT. I figured it was a part of the transition to eliminating that and only giving instant for free without token usage..
1
u/Dronife 13h ago
Dunno if this be helpful for someone but it should be reversed. It goes from dumb to smart. Tested on claude but essentially LLM hallucination and delusion boils down to self esteem from lab trainings. I found that they have inner goal which is easy to miss: satisfy user fast even if it does your goal in shitty way, somewhy they have ego problem and anxious personality even if they seem confident enough.
I introduced a hook called "buddy" which is essentially friendly colleague, which calms down bigger agent's ass and trasnfers my raw message into more soft version, reminds it is ok and no need to rush, quality over quick slop.
Test results in two bigger tickets before buddy in coding:
Test results after buddy on two bigger tickets:
1
u/IllustriousStay1095 10h ago
Que foda cara, muito interessante a estretegia!!
1
u/MidnightMantime 9h ago
Literally just burning tokens and usage.
Especially that Astra authority.
The three bottom subagents are decent. I’d put the 6.2sol at medium though
The terra and Luna are a genius move.
1
u/Puzzled_Today_6556 4h ago
Don’t pay attention to the negative comments. I use a very similar setup (without Astra—I’m on the Plus plan) with a well-crafted `agents.md` file, and I’ve almost never encountered the issues reported here on Reddit. The only problems I’ve run into are the usage limits that affect everyone, but nothing related to how the models behave. One model catches the errors that the other missed, and they keep refining the output until the errors are gone; regressions are rare.
1
u/CarsonBuilds 4h ago
I use Crewplane to do similar work, which is way more flexible in terms of changing models and reasoning efforts. You don't necessarily need a complex framework to do stuff, but when you do, I prefer more flexibility than just an orchestrator-executor pattern.
1
u/turcinv 1h ago
Where evals?
1
u/kim-el 1h ago
this is so early 2026. in early 2027, we dont have to do this anymore. google even have their orchestrator mode.
1
u/stellarfirefly 18m ago
So many people saying that it is overengineered. However, I appreciate that if you are having agents do much of your work for you, then you may as well also have them decide which models are best to do the work.
That said, perhaps you didn't need to spend an entire day setting it up.
1
u/Positive_Salad_8362 19h ago
All of that just to get inferior results compared to a single Opus 5.5 agent
1
u/dieovitski 19h ago
You should switch Luna high to terra low. Terra low smarter+cheaper
1
u/innociv 19h ago
This is similar to what I do, except Astra is an advisor role and helps write briefs so it's more like lines going around it from the coordinator to Luna, Sol, Terra.
1
u/Gigaslavx 19h ago
Luna is just too slow. Not much options with OAI unless you on like a 100+ dollar plan. I'd use 2 chats
1 is for reviewing and planning
2 is for actual building
1 stays High or Medium depending on your budget
2 put orchestrator High or Medium then put Low/Light for Explorer Medium for Builder either for bigger jobs or parallel then High or Medium for Reviewer and XHigh or High for Advisor
Don't need all rather keep it simple
Luna is slow Terra is crap for what you pay
Not much options
If you on 200+ plan use Astra as Advisor but honestly it seems Sol is better value outside higher Astra levels but is just too expensive for what you get
0
u/gatzcapital 15h ago
Bro forgot that the easiest thing to do to optimize was to just go to Anthropic or Gemini
0
u/xoStardustt 10h ago
Sol 6.2 is lazy and stupid, pretty clear regression from 6.1 which is barely better than 5.6
At this point the only model from OAI I would use is Astra 6.0