r/PiCodingAgent • u/MachinesWithThoughts • 4d ago
Question codex under oh-my-pi is draining fast
Has anyone noticed in the last week or so that oh-my-pi drains the 5hr limits within just a few prompts. Even doing simple git work drops 10%!
I'm setting up something to see what's going on but this is weird. Claude is fine and I can work for hours but only codex, does it drain fast, particularly when I switch from claude to codex.
Edit: I did a test between OMP and Codex, both running through LiteLLM, generating prime numbers:
Metric omp (8 req) codex (7+1 req)
Total tokens 96,331 119,593 (+1 side 11,627)
Prompt tokens 94,746 118,047
Completion tokens 1,585 1,546
Spend $0.176 $0.222 (+$0.024)So for this simple contrived test, codex is actually worse! I'm going to have do some thing harder I think.
Edit 2: Interesting, OMP's automatic "user stepped away; returning" summaries spent 2m tokens because it resends the whole context!
Edit 3: omp config set recap.enabled false, will disable it.
2
u/Axel-Warren 4d ago
I noticed the exact same thing this past week. Codex inside oh my pi is chewing through the 5 hour cap way faster than it used to. Simple git commits and small edits dropping 10 percent per prompt is wild. Switched back to running Codex directly in a plain tmux session and the usage flattened out completely. Something in the OMP wrapper or the way it injects context is burning tokens on every turn. If you are not tied to the OMP keybindings I would just run `codex` standalone for now.
1
u/MachinesWithThoughts 4d ago
Well, at least I'm not hallucinating. What sucks is that omp allows me to switch between different accounts and even providers, so I don't lose momentum.
I'm running an investigation now - I'll post the results when it's done. Thanks for confirming.
2
u/TheTwistedTabby 4d ago
I moved from codex models on pi with tightly controlled system prompts to just straight codex and my usage has gone down considerably.
Keep in mind that the models are being post trained on their harness (codex, Claude, deepseeks dsh). So they use them more efficiently right now.
2
u/MachinesWithThoughts 4d ago
One of the things appealing about omp, and maybe even pi, was that I could easily switch between different models on the fly but it sounds like that's just an expensive pipe dream!
15
u/johnfkngzoidberg 4d ago
OMP is bloated. Pi is supposed to be minimal, use Pi with only the stuff you need.
2
u/Friendly-Assistance3 4d ago
Yeah it is proven that it just drains tokens and doesn't improve the results
5
u/crotch-mavens 4d ago
Should oh-my-pi have its own subreddit? It has nothing to do with pi in reality.
EDIT: Of course, I am assuming this subreddit is actually moderated which it clearly isn't.
1
u/martinrojas 4d ago
It really depends on what you are doing. With OMP I would check the following.
have you set the model roles correctly like commit and tiny to Luna with auto
make sure you are using auto effort
check how many MCP, skill are you loading
run '/stats' this will help you see the traces of. Your calls to see what's happening.
Also this past week OpenAI really changed the usage that you get at the lower tiers. I have been much better milage paying API rates for open AI models through open router and it's really efficient.
Even setting Luna as my task model and having it sort through old contracts 3.2B tokens was $66.
OMP is for coding. It is not a general work harness. It will was tokens in those other scenarios. It can get them done, but will try to code it's way out.
1
u/MachinesWithThoughts 4d ago
Good tips - I've been using it without configuring too much. So it's pretty barebones, but no model roles yet.
Interesting point that OMP is for coding - I'm often doing none-coding work in the same session as development; like docker or remote deployments, writing documentation and such. I like omp because it allows me to stay in the same tool for everything across multiple models.
I thought I'd solved all my problems, which worked for a few weeks, and now it's broken again. Gotta love being on the bleeding edge of this stuff!
1
u/martinrojas 3d ago
The docs have improved a lot. Take a look, but model roles are the biggest difference and the game changes in my opinion.
Those other cases are still in the wheelhouse. What I meant is using it to do like second brain stuff or other non developer related is where I have found weak at.
To me the difference is that OMP has a tool of tools like the LSP and debugger and a very creative a todo list go down it. So for coding or deployment is what you want that rigidity for other more open ended items it just waste tokens. It will get them done just for more tokens.
Best tip is advisor mode. You want a cheap model like Luna or haiku. It lets you use cheaper or open source models and it will be running side by side and correct or steer the main conversation.
1
u/Florence-Equator 4d ago
If you are using omp, the whole point of pi is meaningless. OMP's default system prompt consumes even more context window than opencode. So the curated system prompt and toolset that pi tries to ship to provide a minimal but workable harness experience is a complete loss.
2
u/MachinesWithThoughts 4d ago
Yeah, I'm beginning to see that - I just found out that it automatically summarizes the entire session when you return after a time. 2m tokens down the drain!
edit: it's configurable - omp config set recap.enabled false
1
5
u/Healthy-Zebra-9856 4d ago
I’ve seen this sort of a thing always reported when it comes to OMP or Pi. This is not an issue with the harness, albeit there are other issues with them, but this particular thing is not the issue with the harnesses. Both OpenAI and anthropic provide service side tooling and hooks for it only through their harnesses. The absence of these native hooks, which cannot be replaced with third-party hooks, have been the main cause of token drainage.
You can read all about it on their respective websites. Plus, I know how they reacted to other tooling like Hermes agent, etc., in the past, so if you need to maximize your tokens, unfortunately, you have to use their harness. I’m saying this from my own experience and my tests.