GuidesUpdated

Switch from Claude Code to Codex without losing the task

Hand a task from Claude Code to Codex or another CLI by carrying over the goal, branch, evidence and next step instead of hours of chat.

On this page

A new agent CLI does not inherit another CLI's conversation. When you switch, put the task's facts in the repository and a short handoff instead of pasting hours of chat.

Canopy shared project context beside agent sessions
Canopy shared project context beside agent sessions

Know what transfers between CLIs

In the same project, both CLIs see the same files, branches, commits, PRs and test logs. Conversation history, model settings, account and limits stay with each CLI. Canopy does not convert one provider's conversation into another's.

Pause the first agent at a stable point

Ask the first agent to stop and report its branch, changed files, commands, failures, decisions and remaining work. Check git status. If changes are partial, give the second agent its own worktree, or share the checkout once the first is idle. Never run two code-changing sessions on the same uncommitted files.

Give the second CLI a bounded job

Open the second CLI in the intended checkout. Give it the acceptance checks, the handoff and the exact branch or PR, and ask it to confirm the state before editing. For an independent review, keep it read-only until it reports findings with evidence.

Use Canopy context as an index

The Agents rail, search and shared context help you find sessions and recent work. Support differs by CLI; the agent-parity document lists which have resume, usage and context. Where a signal is missing, trust the branch, PR and handoff.

Check whether switching paid off

Switching helps when a limit blocks you, another model suits the task, or you want an independent review. It wastes time if the second agent repeats the investigation. Compare accepted result, retries and review effort with a single-CLI run. Canopy's cost is an estimate; your provider bills.

Copyable resources

Cross-CLI handoff

Fill in the facts from the first session, then paste into the second CLI.

Goal: [one outcome and acceptance checks]
Repository and checkout: [path, branch, worktree]
Current state: [what works, what is still broken]
Changed files or PR: [paths, commit, PR link]
Evidence: [commands/tests run and exact results]
Decisions already made: [interfaces, constraints, user choices]
Next job for this session: [implement, investigate, or read-only review]
Before editing, check git status and the cited files. Tell me if this handoff conflicts with the repository.

Frequently asked questions

Can Codex resume a Claude Code conversation directly?

No. They keep separate conversation histories. Hand off through a branch, PR, files and a short task summary.

Can Canopy move a paid subscription from one CLI to another?

No. Each CLI uses its own provider account, model settings, limits and billing.

More questions and answers →

Sources and further reading