Switch Claude Code to Codex Mid-Task
Last updated
Gnomcode switches a supported session by compiling a compact briefing and launching a fresh target agent/model. The original conversation stays available; the target receives redacted objectives, changed-file paths and recent activity instead of a full transcript replay.
What does zero-token handoff mean?
The handoff is assembled locally in Rust without an AI summarization call. The receiving model still consumes prompt tokens. A compact briefing preserves useful context, not the old provider’s internal reasoning or complete working state.
How do I switch Claude Code to Codex?
- Install and sign in to both official CLIs, then open a Gnomcode-controlled Claude Code conversation.
- Choose Codex and an available model in the composer. Sending waits while Gnomcode prepares the handoff.
- Check the requested and confirmed model notices, then continue the task. Use the agent terminal if the CLI needs login or approval.
A dropdown selection alone does not confirm the target model. Authenticated cross-provider acceptance remains a launch gate.
How do I switch from the CLI?
Run gnomcode models to inspect the currently discoverable catalog, then gnomcode switch SESSION_ID --model MODEL_ID using a compatible available target. Obtain the session identifier from gnomcode status. Real authenticated cross-provider/model acceptance remains a launch gate; unsupported or unavailable targets fail visibly rather than guessing.
What happens to files and the old session?
Gnomcode lists modified/untracked file paths in Git workspaces without copying arbitrary source files into the handoff. Non-Git workspaces use an empty changed-files list. The source history is preserved; a new target session is created, so returning to the old session is a separate action. Inspect both session states before allowing concurrent edits.
How do routing policies work?
ask_first requires approval for routing suggestions; automatic permits eligible failover under configured policy; deny_cross_provider restricts cross-vendor routing. These settings do not grant provider entitlement, remove native permissions or guarantee every CLI can resume. Confirm behavior with the installed CLI version before leaving automation unattended.
CLI examples
gnomcode statusgnomcode modelsgnomcode switch SESSION_ID --model MODEL_IDTry Gnomcode
Download it for Windows, macOS, Linux or Android, open a project and start an agent.