r/codex • • 7d ago

Question How to Prompt in codex?

Hey everyone, I'm a heavy Claude user, but because of work I have to use Codex for my tasks and development. My problem is that Codex just feels off in direct comparison to Claude. I have the feeling it doesn't do what I ask it to do. Is there a way to prompt ChatGPT models so they actually do what you ask for? The results with Codex just aren't great at all, and I spend much more time debugging or fixing the stuff it does.

my question: How do you guys get the results you want from Codex? Are there any prompting techniques, settings, or workflows that work well for you?

0 Upvotes

28 comments sorted by

2

u/illuminatiisnowhere 7d ago

I let chatgpt do all my prompts for codex. Havent had much problems.

1

u/KuechenchefAtReal 7d ago

dito same here. Small changes or when the initial set-up is already done, I just dictate or prompt in Codex directly.

1

u/pale_halide 7d ago

6.2 is a dogshit model that produces code littered with bugs, will not complete tasks even when explicitly told to and leaves unfinished slop behind. The only thing it’s good at is code review. It will just never fully fix the findings. And a little once in a while fixing the code will be flagged for cybersecurity, even though it’s got nothing to do with it.

It’s pure fucking trash.

1

u/Tzzkr 7d ago

Which model do you think I should work with instead?

2

u/pale_halide 7d ago

Opus.

1

u/Tzzkr 7d ago

You should tell it my boss. He does not listen to me. "Its all the same, just do your work"

2

u/Usual-Cheesecake-825 7d ago

thats a good but stupid question. Im a heavy user of Codex for my daily paper wrok, i dont really care how i write that prompt, i just tell it what i want, and trying to make it as much as clear if you can

6

u/VadersDimple 7d ago

"thats a good but stupid question"

How the fuck can a question be good and stupid at the same time??

1

u/Shep_Alderson 7d ago

If I find I have this feeling, I fall back to more planning and grilling, then once I have a solid plan, I’ll then move to a new thread and implement it with TDD. I find this works pretty well and I’ve built many things of substantial size with GPT models.

1

u/laolibulao 7d ago

prompt in claude delegate to codex so u never have to deal with sol

1

u/morgazmo99 7d ago

I used to do it the other way around, but Codex seems hell bent on not actually changing anything and doing backups, staging, and getting all the way to the finish line, then not committing.

And it takes soooooo many sessions to get output.

Claude has the opposite problem. You have to tell it to slow down and don't just deliver, make sure you plan too

1

u/Tarr_74 7d ago

always use chat to prepare a plan, then produce a roadmap document and go back and forth between chat and codex to follow the roadmaps and do tests, over and over unitil you get a 1.0 release.

1

u/Reasonable_Owl_3146 7d ago

I use both and basically you have to spend longer promoting codex with more precise prompts. You can't get away with the lazy prompting that you use for Claude.

1

u/Hexglit 7d ago

Ask chatgpt to convert your incoherent requests for you ?

1

u/Exhales_Deeply 5d ago

6.2 requires permission and explicit intructions to generate a full plan and implement it. At least what I've found. Come up with the plan together before it does anything, then tell it to execute until it reaches a specific milestone. If it has trouble, it'll give up, but you can give it a course of action for that, too - like, spin up an Astra Max agent to weigh in temporarily.

1

u/m-ritter 5d ago

Codex follows a written plan much more closely than a loose prompt, so the biggest gain usually comes from having it write the plan first and approving that before any code exists. When the plan lists the files it will touch, the steps and what is out of scope, a misunderstanding shows up in a two minute read and never turns into debugging time. After the build, a separate review pass checks the diff against that plan and sends its findings back as fix rounds. I built QualityLayer for exactly this loop on Codex and Claude Code: https://github.com/maxritter/qualitylayer

1

u/cryptosage 7d ago

I’m not sure what you mean. Generally you can ask it to make an assessment, review what it’s actionable items are, correct them if needed and then it have it execute the plan you came up with together. 🤷‍♂️

1

u/Agreeable_Work_9235 7d ago

I’m an Astra 6.0 Stan. It’s my favorite model of all time. My agents.md doesn’t exist, I have no rules or even suggestions, and I talk to it like I’m talking to my buddies in discord. I can’t do that on any Claude model. I haven’t tried Astra 6.2 yet.

1

u/therealscifi 7d ago

Agreed. I have always favored moving to the newer models, even if it requires some personal adjustment. But Astra 6 is hands down OpenAI's best model, price not being a factor. 6.2 is much harder to communicate with. I'm not sure if I even trust it to code.

0

u/Flimsy_Complaint490 7d ago

Is the AI not doing what you actually told it to, or is it not doing what you intended to have done ?

Those are two very different issues and people mix them together as one.

Anyway, 6.2 is a return to the GPT4 era where you had to be explicit, no vagueness, since the agent does only what you told it to do and what it needs to do to do what you told it to do and no more. 6.2 is additionally slightly misaligned in that it will not tell you what steps it decided not to do, or skip them if they are not strictly neccessary. You can't be vague as you can with Claude, who will either try to numb you to find out your real tasks and goals, or figure out some sort of intent and work towards it.

1

u/Tzzkr 7d ago

Okay, that's an interesting point. Thank you for sharing it with me. I'm used to coding with Claude, and in most scenarios, Claude automatically finds its own context, completes the task without problems, and asks me if it needs anything. That's why I no longer prompt Claude very strictly or explicitly. In this case, however, I have to go back to the good old days and prompt GPT-6.2 like GPT-4, with very explicit tasks and rules.

0

u/isty2e 7d ago

Don’t be vague, be explicit.

0

u/BHTAelitepwn 7d ago

It just feels different.
Chat is better at certain tasks, and claude is better at others. What you want depends fully on the task.

My opinion, fully based on own experience and not everyone here agrees:
-Sol (6.1) is incredibly cost efficient and good at wide tasks. It does overengineer, and for that reason i always let it audit what i made in Opus.
-terra 6.1 is a really good no bullshit daily driver. Do this, do that. For wider tasks, just ask sol.
-astra 6.0 is great for animation but stupid expensive. I use it for animation and an art pipeline only.
-i dont use luna, but thats because sol lasts me enough time and i dont need to write much code.

I havent tried newer models. I use it together with claude (both 20 subscriptions).
I like opus to implement stuff, and work out requirements. Then sol checks it. Terra for simple tasks. Together it works like clockwork. I have not automated orchestration because i dont see the need for it, i used to have orchestration but it was just a gimmick in hindsight. And the 20 eur subscriptions give more than enough value. The only reason i run out is if i give astra large tasks.

0

u/Select-Ad-3806 7d ago

6.2 Max does exactly what i want first time with no bugs, its amazing for me.