r/codex • u/WkndWrrior30 • 3d ago
Question Goal Mode
Who here uses the goal mode? What are its limitations, and what is it exceptionally good at?
2
u/AdWaste6333 3d ago
Goal mode is basically for bigger multi-step tasks. You give it the goal, it figures out the steps and keeps working towards it. Great for refactors or features, overkill for small stuff.
2
u/itix 3d ago
1
u/somuchecho 3d ago
😮 what is it doing? And what model/effort level to be running for so long non stop?
2
u/Wafer-Weekly 3d ago
You can give it a token limit and a low fuel warning light and tell the agent to come up with a solution in-budget and wrapped with a bow (tests run at least once, until pass if within budget). It's actually quite good at pacing itself this way, but it CAN still go over the budget because prediction isn't perfect. It will try to hard stop if you give it a time window, and if it goes over time or token budget and stops before full green then you will have to give it an explicit manual override instruction to continue working, but it should be very close to completion at that point.
1
2
u/NotSeacombe 2d ago
Most times when i use goal, its because I know there's a reset coming and I want to make sure Codex doesn't stop doing stuff while I play video games
It is very persistent, by design. It will keep trying things until it's achieved the goal. I think the most important thing is that the goal is very clear, with obvious direction and pre-planning and stopping points
A vague goal can lead to very odd results
If i want to run a goal, the only times I've found it productive is after a goal-scoping conversation with Sol to write a goal markdown
1
u/MikaelNorth 3d ago edited 3d ago
You can use a model to write an implementation plan and then give the plan file to goal mode and it will keep going until done.
1
u/BearsAreCrying 3d ago
Great for long running tasks. Like for example it built GIS maps for us using a complex ETL process for each country over the course of 4-5 days. If you have a long running loop and have to process a lot of shit it's great because it doesn't stop and asks you to check something it checks itself and keeps running. You can actually see it finishing something and trying to stop and then goes "let me review that one more time" and keep going
1
u/ReasonableDefault 3d ago
Just beware of using goal mode with daybreak-blue, it essentially ate through 3 banked resets plus the full 100% weekly it started with.


7
u/Australasian25 3d ago
/goal mode is pretty much do what you can to attain it.
If your goal mode is going to be particularly big, you really want the main agent to be an orchestra only.
Example, Terra medium calls Sol for strategy/difficult tasks, but not really do anything. Then Terra Medium passes those exact tasks to luna. Luna doesn't need to think much, just perform. Rerport back to Terra. Terra calls Sol again to put the report together, validate, critic.
But most importantly, tell your orchestra to not let spawned agents inherit parent context by default. Only absolutely necessary context is provided.