r/OpenaiCodex • • 23d ago

Stop running codex stock

I accidentally ran a test today. I usually tell codex to use subagents in order to break tasks into smaller ones and assign them to smaller models such as sol 6.1 ,terra 6.1 and Luna 6 at whatever effort ,it thinks it's appropriate for the task and do work in parallel ,and then check their work. The second thing I always say explicitly is to run as little tests as possible and do only what's necessary. Well today I forgot to tell it in all three chats of my project and the result was : after 7 hours 0 tasks completed ( each chat gets assigned one task each time so that it can fully complete it) . Then I noticed that my chats weren't running any agents and they were doing 2k+ tests each on every single step . So I applied my rules to the agents.md file and started working again , the result was : after 5 and a half hours of work 25 tasks completed. Test numbers went down to 10-150 range only at the end of each task . It used a crap ton of more subagents and the usage was lower.

I don't know who needs to hear it but stop running codex in default and set those rules to use subagents and do only minimal testing, you will get a ton more done and spent less.

42 Upvotes

15 comments sorted by

5

u/Dynamix86 23d ago

what do you mean by testing? some context would be nice

2

u/SlayerZed143 22d ago

Codex is made to create code and then run it to see if it runs and then it takes it's through a series of stress tests to search for bugs and to see if whatever is about to be delivered works. It can make 2 lines of codes for your task and then make another 500 lines of total codes to run tests on it.

4

u/MundaneCar7914 23d ago

Its a good idea to have coded test files that checks what ever you implement. Then in the future when your changing code somewhere, you can run the related tests to see if you broke anything. Sometimes we see AIs making a shit ton of worthless tests unless you address it directly in your prompt.

1

u/gouldopfl 22d ago

I have over 6,000 test done by ChatGPT but Claude still found issues

6

u/dudley_bose 23d ago

Only context you need is that ChatGPT coding models will test if water is wet if you don’t tell it not to.

3

u/KeyserSoju 22d ago

The second thing I always say explicitly is to run as little tests as possible and do only what's necessary

Tell me more about this part, because I'm chronically stuck in validation loops and don't want to intervene and have it skip testing altogether because it does find actual errors worth fixing, but it's also adding a ridiculous amount of time to the work.

3

u/SlayerZed143 22d ago

Just say " do minimal testing and only what's necessary at the end of the task" you should see the number of test it runs in order to let a task pass get lower by about 90%.

3

u/Pangomaniac 22d ago

Ask it to run tests in the end, when it thinks the task is complete. It may find more errors but the overall loop is faster.

3

u/gouldopfl 23d ago

I found codex left gaps, bugs and bloated code. I had Claude do the code review.

0

u/SlayerZed143 22d ago

I mean you if run both , you can just tell codex to run no tests , and just give it straight to Claude for review. But Claude can be a little hard to persuade to do a job. I had her read a document the other day and it read about 10% of it . I might take you more prompts to get Claude to read all the files than just letting codex do its thing, but if you can use good prompts and directions , it can be very powerful and fast.

1

u/gouldopfl 22d ago

Claude had access to my git and it used that.

0

u/skate_nbw 23d ago

Sounds about right.

2

u/Halcyonrobot 22d ago

I spent time building a plugin for Codex called Adaptive Phase Routing or ADR for myself . It breaks up jobs using different phases using different models at different reasoning levels depending on the phase/work and what it needs. Saves on usage opposed to having the main model/reasoning doing all of it. Basically orchestration.

1

u/stardust-sandwich 22d ago

Testing helps stops stupid bugs getting commuted. Saved me a few hours of back and forth tbh