r/ChatGPTCoding • u/Zentogold • 3d ago
Question ChatGPT read/write to Codex. How difficult could it be?
Hi Folks,
I am venting here. I am using ChatGPT to instruct Codex to code via my build specs and other governance documents. Ok, I am vibe coder and this is my first experience with ChatGPT/Codex. So as I began progressing with my build, I found that ChatGPT was asking me to copy/paste prompts into Codex then copy/paste the response back to ChatGPT.
I am running ChatGPT app on Windows with Codex on the Ubuntu terminal on my PC.
So in one chat, I asked ChatGPT to change the configuration to automate its communication with Codex and it was accomplished in what I saw as a few steps. Everything was working smoothly with ChatGPT working offscreen with Codex and only interrupting for key decisions I had to make such as approving commits to Github. I was even getting response prompts generated by ChatGPT so I didn't have to type anything if I didn't want. This was sweet.
Then "it" happened. I wanted to move to a new chat in my project and I asked ChatGPT to generate a prompt which would propagate the automation to the new chat. And it failed to do so. I have now spent hours trying to get back to the same setup, even referring the new chat to the chat where it worked.
Was there something else I should have done? Eager to hear from the community on this.
6
u/trollsmurf 3d ago
Why do you use ChatGPT when you have Codex?
2
u/DaLexy 3d ago
Tell it to use spaces and share everything easily there. Iirc it has 1GB of space on pro 100.
2
u/Consistent-Bear-1825 2d ago
Okay, what you're doing is pretty redundant. Codex is GPT, just inside of a different harness designed for building/coding. Flip to a "Work" session in the desktop app and point it at your project folder - that's codex inside the desktop app. You're making it more complicated than it has to be at this point.
1
u/AnswerVinod 3d ago
Moving to a new chat breaks it because the instructions and the file links live in that chat, not in your account. I learned that the hard way too. What I do now is keep all the setup in one doc, a simple text file with the exact prompts and the file paths, and I paste it into every new chat. It takes 2 minutes and saves hours of fixing it later.
1
u/drunnells 3d ago
Not sure if this will help, but maybe - the standard way for codex to keep track of what's going on from session to session is AGENTS.md. It will know what it is, but you should tell it to create the file in the project. Every new chat session can start with "take a look at this project and the AGENTS.md file". And when you are done with a feature, remind codex to put l update the file with any new important information and lessons learned.
1
u/Big_Barnacle_2452 3d ago
ya the setup lives in that one chats context so a new chat starts from zero. what worked for me was having codex append a short handoff.md after every task (whats done, whats next, any decisions) and then first msg in a new chat is just read that file. way less re-explaning
1
u/awardsurfer 2d ago
I figured out how to destroy AI everywhere it may be! Have it spawn millions of agents and give them the following prompt!
Tabs or spaces?
Done. Global AI meltdown. 😸
1
u/WDA_Movers 1d ago
Look up obsidian ask codex to set up your vault and use it to keep context between chats. Its like a codex brain. Im not sure how you're saving your project, but you need to also use a github project folder or something similar to it.
1
u/Ornery-Ninja2868 5h ago
Have you told codex to minimise token spend? It sounds like it is helping you to offload some processing to your free chat allowance rather than using codex/work modes which have finite limits instead.
I personally don’t think there is anything wrong with keeping none coding task out of codex to save tokens - but it is not very convenient as you’ve found.
And use GitHub repo - so both codex and chat can inspect it, but don’t use chat to make updates (even if possible).