Mid-Thread Switching & Agent Handoffs
Swap models mid-conversation or plan with one coding agent and hand the thread off to another to implement.
When you run coding agents inside separate terminal tabs, switching tools mid-task is painful: even if Codex or Claude Code would handle the next half of a change better, nobody wants to open a fresh shell and manually re-explain twenty minutes of investigation.
T3 Code separates the persistent thread and its isolated Git worktree from the active model or agent driving the turn.
1. Three Practical Reasons to Switch Mid-Thread
- Plan with one, implement with another Let your preferred reasoning model trace dependencies, surface edge cases, and write down a concrete change plan. Review it, then switch to another agent inside the same thread to grind out the implementation and tests.
- Break out of retry loops
Every developer has watched an agent fail the same typecheck three times in a row. Instead of burning more turns on the same loop, press
mod+shift+m, swap to a different model or agent, and let a fresh perspective inspect the current diff. - Route around rate limits without losing progress If one subscription hits a usage cap mid-refactor, switch the thread over to another authenticated agent on your machine and keep moving on the exact same worktree files.
2. Step-by-Step Handoff Workflow (Plan → Review → Handoff)
Step 1: Analyze inside an isolated worktree
- Spin up a thread with New worktree (
mod+shift+x). - Open the model picker (
mod+shift+m) and raise the effort level (mod+shift+e) if needed. - Ask for a scoped plan before editing:
"Read
src/auth/first without making large edits yet. Explain why concurrent requests trigger duplicate refreshes, and list the exact files and tests we should update."
Step 2: Review and steer if needed
Check the plan. If an edge case is missing, clarify it right there. If an active turn starts heading down the wrong path, type your correction and trigger Steer (mod+Shift+Enter) to redirect the run immediately.
Step 3: Hand off to the execution agent
- Press
mod+shift+mand switch to your implementation model or another authenticated agent (for instance, handing a Claude thread off to Codex). - Send a concise follow-up:
"Implement the approved plan above and run the test suite when finished." - Because the thread and worktree stay identical, the second agent picks up with full visibility into the plan and existing repo files.
3. Two Gotchas to Keep in Mind
- Both agents must be authenticated locally: Switching from Claude Code to Codex only succeeds if
codex loginhas already been run on the same machine. - Ask for a crisp summary before handing off: Prompting the first agent to list exact target file paths and test commands gives the next agent a clean anchor to execute against.