
Hit Your Claude Code Usage Limit? How to Hand Off to Another Agent Without Losing the Work
A practical handoff: capture the state of your session, switch agents, and continue — without destructive git moves, shared session state myths, or losing uncommitted changes.
You're mid-task. Claude Code says you've reached your usage limit, and the reset clock is hours away. The work isn't blocked by anything technical — the only thing standing between you and finishing is a quota. Here's how to carry the work to another agent cleanly: what to hand over, what to leave alone, and what not to expect.
What transfers, and what doesn't
Before anything else, be clear about the boundary:
Transfers. Your git history. Your working tree (uncommitted changes). Any notes you write. The state of the repository — including what's been done, what's pending, and which tests pass.
Doesn't transfer. The agent's in-session memory, its conversation history, its plan list. Each tool keeps this in its own proprietary session format. There is no supported way to pour one agent's session into another — anyone promising that is selling you a myth. What you hand over is a summary you write, not the session itself.
Also doesn't transfer: the quota. A limit on one account has no bearing on another agent's account. If you sign into a second tool with its own account and authorization, you're drawing on its own allowance — that's the entire point of the switch, and it only works if the second tool is genuinely authorized under its own credentials, not borrowed ones.
Connect the Claude or Codex you already pay for — the rest runs on workers that cost a fraction.
Download meshcode →Step 1: Capture the state before you switch
Do this while you still have the first agent cooperative (even at a low rate limit, "write a summary" is a small ask). If it's fully stopped, do it yourself from the repo.
Run, read, and save:
git status # what's modified, staged, untracked
git diff # the actual pending changes
git log --oneline -10 # what's already committed
Save the output, then write — yourself or with the agent — a short handoff note:
## Task
<one-line: what we're building/fixing>
## Done
- <what's complete, and where — files/paths>
- <which tests currently pass>
## Pending
- <the next concrete step>
- <any decisions already made (chosen approach, rejected alternatives)>
## Watch out for
- <known traps: failing test names, flaky setup, version pins, env vars>
## Definition of done
- <how we'll know it's finished — command to run, expected output>
The two most valuable sections are Pending and Watch out for. "Pending" saves the next agent from re-deriving the plan. "Watch out for" saves it from re-discovering a trap you already paid for — a failing test, a breaking change, a script that must not be run. Without those two, a handoff is just a restart with extra steps.
Step 2: Switch agents — safely
If the task is small and the working tree is clean, just git stash, sign into the second tool, git stash pop, and paste the handoff note. If there's any doubt at all, don't stash — a plain copy of the working directory is more forgiving and impossible to get wrong:
# in the parent directory of your project
rsync -a --exclude 'node_modules' --exclude '.git' myproject/ myproject-handoff/
cd myproject-handoff && git checkout -b handoff-from-claude
(A fresh worktree via git worktree add ../myproject-handoff <branch> does the same for git-tracked content. The point is a pristine copy that ignores anything the new agent might do.)
Then, in the new agent, start with the handoff note — not a vague "continue". The note is your contract. One agent, one writer, at a time. Don't run two agents live against the same working tree; they will fight over the same files and you'll spend more time untangling than you saved.
Step 3: Verify what the new agent picked up
Before trusting it:
- Does
git status/git diffin the new session match what you left off with? - Do the tests that passed before still pass?
- Does the agent's restatement of "Pending" match what you wrote, or has it drifted?
If any answer is no, stop and correct the handoff note rather than letting the agent proceed on a misreading. A handoff that drifts silently is worse than no handoff — you'll only find out at the end.
What NOT to do
- Don't rotate or share accounts, and don't try to dodge a quota through someone else's login. This wastes your time and violates terms of service. The legitimate move is: your own second tool, authorized under its own account.
- Don't use destructive git operations you don't fully understand.
git reset --hard, force-push, or stashing with untracked files you've never inspected can eat real work. A copy is cheaper than an apology. - Don't expect the session to "come with you". The new agent will not know your prior conversation, your preferences, or the argument you had with the first agent about architecture. You carry those across by writing them down.
- Don't conflate the quota system with the billing system. A subscription's usage limit isn't the same thing as an API account's token spend. Check which one you're actually fighting.
When handoff is the right call vs. waiting
If the limit resets in under an hour and the task is mid-flow, waiting can genuinely be cheaper — a handoff is also a context switch with its own cost. If the reset is many hours away, or the remaining work is mechanical and doesn't need frontier-tier capacity, a second agent on a cheaper meter is usually the better trade. The pattern generalizes: keep the scarce quota for the decisions, spend the cheap meter on the mechanical rest.
meshcode is built around this pattern: multiple agents in parallel panes, each signed into its own tool and account. When one pane hits a limit, you hand off to the next pane with the same note — without leaving your project or setting anything up.
Related: Gemini CLI's shared quota with Code Assist · why one prompt uses multiple requests · running Claude and Codex side by side.
More from the blog
Can You Use Claude Code and Codex at the Same Time? (2026 Guide)
Yes. Claude Code and Codex have separate logins, billing and usage limits, so you can run both on one project today. How to set it up, what goes wrong, and what it costs.
Claude API Rate Limits vs. Claude Code's Usage Limit: Why They're Two Different Numbers
Claude API rate limits and Claude Code subscription usage limits sound like the same thing, but they measure completely different resources. Here's how to tell which limit you hit and what actually helps you keep working.
"Approaching Usage Limit — Resets at 5PM": What Claude Code's Limits Actually Mean
Claude Code's usage limit message confuses people because the reset time moves every day. Here's what the rolling window actually tracks, why Opus drains it faster, how to check your real numbers, and what to do the moment you hit the wall.