r/PiCodingAgent • u/MachinesWithThoughts • 24d 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.
5
u/Healthy-Zebra-9856 24d 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.
3
u/TheTwistedTabby 24d 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/Axel-Warren 24d 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.
16
u/johnfkngzoidberg 24d ago
OMP is bloated. Pi is supposed to be minimal, use Pi with only the stuff you need.
5
u/crotch-mavens 23d 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 24d ago
It really depends on what you are doing. With OMP I would check the following.
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/Florence-Equator 24d 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.
1
u/carlocapocasa 23d ago
Try 3code- batteries included but still less token use than vanilla pi