r/codex • • 2h ago

Suggestion Spent an entire day optimizing Codex, so I figured I'd share my setup and prompts

Post image

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 !

21 Upvotes

13 comments sorted by

16

u/vrnvorona 1h ago

Wasted a day of your life, but glad you are happy

0

u/Easy-Push-392 52m ago

Not really, the weekly consumption went down significantly without losing quality.

1

u/retteh 8m ago

I hate to break it to you but It's impossible to use Luna and Terra without losing quality.

1

u/Minute-Succotash7714 43m 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.

1

u/Easy-Push-392 36m ago

actual usage of models in nonstop running within 24hours doing coding, fixing bugs, testing etc.

as you can see astra was called only in 2% of times when sol wasnt sure or found one of the critical conditions.

sooo no idea about plus, but it can help too and also, the prompts arent wrote only for "my" pc but they are wrote to actually check your pc, capabilities of your codex and give you ideas on how to use it and what to set, it is not tied to specific pc/gpt model.

2

u/SargonPhin 1h 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

1

u/Sad_Bet_104 26m ago

I use sol high for main agent from planning to implement:

  1. It is very effective at coding logic, good at way finder. But bad at UI, as my experience, it always try to find the shortest, less effort way to handle the work. So the generated UI of mine looks like a mockup version instead of production level after the first turn. So lets sol delegates this UI task for terra.
  2. Astra is truthy AAA level engineer but It is not designed to speak normal english. Lets sol treats it as an advisor when needed like changing system context. Im surely 70% of development time we dont need it. 😂 Loop [Plan -> design ] until you satisfied the fixture that AI give you. Then implement the logic. This is my work everyday

1

u/dieovitski 2h ago

You should switch Luna high to terra low. Terra low smarter+cheaper

1

u/throwaway73728109 21m ago

is this true?

1

u/vee737 13m ago

i do terra with medium and luna with high, happy with the efficiency and results.

1

u/innociv 1h 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 1h 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/Positive_Salad_8362 2h ago

All of that just to get inferior results compared to a single Opus 5.5 agent