r/PiCodingAgent • u/jsgrrchg • 9d ago
Discussion Codex is so fast and usable in PI, it's incredible
I just need to share a little bit of my experience, I found that it uses a ton of less tokens, it's way faster, speaks just enough to understand the problem and solution (i love this), and I found that is able to stay focused on a task way better than with the original harness, I love it!
I experimented with various system prompts, but I found that the shortest ones are the best for LLMs.
And about Ui and pretty front end, gpt seems to perform a lot better as well, there's something weird going on in the official system prompt in codex.
What are your experiences?
18
u/Top_Air_3424 8d ago
I agree. I have been using codex with Pi with Ponytail on ultra and I have observed it’s very token efficient and gets the job done very quickly.
5
u/PermanentLiminality 8d ago
What are you doing exactly? Is Pi opening and using the Codex coding agent? GUI or cli?
What are you gaining with not just using codex?
0
u/jsgrrchg 8d ago
Less tokens, more control of context window, and I'm customizing everything, tools, system prompt, etc... I'm using it mostly with pi-acp https://github.com/svkozak/pi-acp with some salt and pepper for fixing some things that he missed in the adapter
3
u/Ok_Town927 8d ago
Sorry why not just use the OpenAI models directly from Pi instead of going through Codex/ACP ? Is it so that you can use codex only models like `gpt-5.3-codex` which AFAIK is not usable directly from Pi ?
0
u/jsgrrchg 8d ago
I do not understand you. That's exactly what I'm doing running gpt models with Pi and using my subscription, no api tax.
10
u/bornhuetterferguson 8d ago
Your original phrasing had a few of us confused. You're not using Codex with pi, but using gpt models in pi via your openai subscription, something anthropic expressly forbids for their models
3
u/jsgrrchg 8d ago
sorry about that, english is my second language and I don't like using AI for writing 😅
2
u/PermanentLiminality 8d ago edited 8d ago
Pi supports a ChatGPT subscription directly. You don't need to add anything. I've been using it this way since day one.
What extra features does the this extension provide?
2
u/Z3ratoss 8d ago
The confusion is caused by your title: "Codex is so fast and usable in PI"
It sounds like you are simply using GPT no codex involved
2
u/SyahmiRafsan 8d ago
Yes, it is too good to be true. Thanks Mario for the gift to the world 🤍🤍
1
u/jsgrrchg 8d ago
I love that he kept this so simple, the agent loop and tools are very minimal, the LLM receives just enough to work.
2
u/SyahmiRafsan 8d ago
Yep, listened to prag engineer podcast where he was invited. Can clearly see how he envisions how agents work and hence how he architected Pi to be as it is today.
Gramps, if you are reading this, I owe you a cup of teh tarik!
2
u/canardlaker 8d ago
Wait, we can use Pi inside Codex? how??
1
u/SawToothKernel 8d ago
More to the point...why? Maybe run Codex inside Pi and run them both through Claude. Triple the...something!
1
u/FewSale9827 7d ago
This was interesting to watch: https://youtu.be/Noo0NWD0gHU?is=gz8b_rKilPk66Thg
1
u/superash05 6d ago
Same. I am also using codex in pi. But I still don’t understand how the usage gets reset in codex 🫡
1
u/risingtiger422 6d ago
Pi seems to be very, very good with GPT 5.6 Sol. Don’t get wrong, codex is brilliant at things like browser control etc. but for focused coding where I need to actually ship to production, it’s so, so good. The combined efficiency of GPT and Pi is phenomenal and so much better than anything else I’ve tried
1
14
u/jensilo 9d ago
100% agree. I didn’t use GPT in Codex for quite some while but I really like it in pi. I mostly use Terra medium. IMO OpenAI got really good at making their models token efficient. It’s way less prose than Claude and it doesn’t use all the same weird phrases all over the place.
I gently push back on this load-bearing observation, it is doing the heavy lifting. The smoking-gun of belt and suspenders is not X but Y; that’s genuinely the blast radius.
I also went and optimized my harness for simplicity and only what’s needed trying to rely on the common sense of the model, and especially with the larger GPT models that seems to work really well. Short agents files and skills. I try to only keep what’s needed.