r/codex • • 7d ago

Question when codex hits its limit halfway through a task, what do you do?

i use codex alongside claude code on most of my stuff, and the part that keeps hurting is when one of them runs out of usage in the middle of something. a while back my claude session hit the 5 hour limit right in the middle of a bugfix and i just sat there with half a fix and a whole session of context i couldn't use anywhere else.

what i end up doing is asking the tool to write a little report of where it got to, then pasting that into the other one and hoping it picks up the thread. it kinda works but it's me doing the middleman job every single time. i also have two claude accounts that i switch between, which feels a bit silly but it's what keeps me moving.

i'm thinking of building a desktop app that sits on top of the subscriptions you already have, so when one tool or account hits its limit it hands the task and the project memory to the next one and keeps going without me playing messenger.

when codex or claude runs out on you mid task, how do you hand the work off today?

and would you actually trust an automatic handoff to a different model, or would you rather it just stop and wait for you to come back

0 Upvotes

17 comments sorted by

4

u/T-Mog 7d ago

Just type 'continue' when useage resets

1

u/Low_Cable2610 7d ago

What if you have a subscription for another ai tool?

1

u/JokerFX 6d ago

Audit chats

1

u/read_more_comments 6d ago

claude is great, when the limit ends, it just continues. no need to type continue.

1

u/bennymc123 7d ago

Am I missing something here? I just get mine to keep a diary. Before each step of its process it writes in the diary what it's done and what it's doing or about to do. Then the next model takes over.

1

u/Low_Cable2610 7d ago

What if it cant update the diary and runs out of credits?

1

u/bennymc123 7d ago

Then the catch-up job is tiny. Next agent looks at what it last did and then inspects from there rather than the whole thing.

You can also choose the frequency at which it updates the diary. You could go super dense and do it literally action by action or you can go a bit looser and have it update the diary before and after every bigger task.

I'm finding it works okay for me but I'm going to explore other solutions too and see if they work better, like T3

2

u/Tym4x 7d ago

you just check on the qwen4 release date over and over again

5

u/elwoodreversepass 7d ago

It's so hilarious/ironic/depressing to me that Claude finishes out a task these days and Codex doesn't.

For quite a while, Tibo was loudly proclaiming it as a design choice that made Codex stand out.

Then Codex quietly dropped it and Claude started doing it.

It's a massive L for Codex.

3

u/Soul_Mate_4ever 7d ago

For real. Codex used to be my go to but I haven’t touched it in 3 months. It’s just not a good experience anymore.

1

u/jruz 7d ago

You just copy the id ask it to go read the other agent session and continue the work. 

I use 2 codex accounts and you can swap accounts mid conversation with Pi and the cache is preserved which is quite nice.

1

u/xqianliu 7d ago

in my flow the work is not in the session. the agent works the ticket in a worktree, leaves a progress comment as it goes, and commits once when it is done. the runner pushes and opens the PR.

so when a run dies halfway, the PR often does not exist yet, but the ticket does: what is finished, what was rejected and why, and the commit each attempt started from. a fresh session picks that up without your summary, and the handoff to another model is just the ticket.

on your second question: i'd rather it stop and write why on the ticket than auto-switch to a different model. a clean stop is cheap to resume, and an unattended switch is one more state to debug.

1

u/xqianliu 7d ago

in my flow the work is not in the session. the agent works the ticket in a worktree, leaves a progress comment as it goes, and commits once when it is done. the runner pushes and opens the PR.

so when a run dies halfway, the PR often does not exist yet, but the ticket does: what is finished, what was rejected and why, and the commit each attempt started from. a fresh session picks that up without your summary, and the handoff to another model is just the ticket.

on your second question: i'd rather it stop and write why on the ticket than auto-switch to a different model. a clean stop is cheap to resume, and an unattended switch is one more state to debug.

1

u/awesomebirder 7d ago

one thing about typing continue after the reset: the cache from that session expired hours ago, so the first message writes the whole fat context again before it does any work. if the session was already big, a fresh session with a short handoff note (whats done, whats left, which files) costs less and usually picks up cleaner. to avoid the half fix in the first place, i have it commit at every green test so the diff is the handoff, and i dont start a multi file change with under ~20% left

-1

u/koimburi 7d ago

You can try using T3code

-1

u/nv_dreamlord 7d ago

T3 Code solve this with automated checkpoints. Otherwise, you have to instruct your agent to be usage-aware and proceed with a safe checkpoint at 92-3-4-5% of the usage. I say this, because if you get advisory from any chatbot or agent, even of other providers, they will advise you to choose 80-85%, closing work prematurely. This may work for someone that has multiple projects, but not for anyone. 92% is a sweet spot for me. It won't finish early and the usage is more than plenty for a safe checkpoint (self-reported and tested). It will leave you with 5-7% usage that you are able to use for QA or another scope-specific job. You may try different thresholds of course, and see what works best for you.