---
title: "Resume a session in another coding agent"
canonical: "https://agentdrive.sh/resume"
---
# Resume a session in another coding agent

> For the complete documentation index, see [llms.txt](https://agentdrive.sh/llms.txt). Every docs page is also served as markdown at its URL plus `.md`, and the full docs are in one file at [llms-full.txt](https://agentdrive.sh/llms-full.txt).

Resume across agents

To continue a coding-agent session in a different agent, install AgentDrive once with `curl -fsSL agentdrive.sh/install | sh`. Hooks in Claude Code, Codex, OpenCode, Cursor and Antigravity sync each session to your workspace in the background. Open the other agent in the same project and run its resume command; it loads the goal, the files touched and the recent turns.

## Every handoff

Rows are the agent the session started in; columns are the agent that picks it up.

| From \ To | Claude Code | Codex | OpenCode | Cursor | Antigravity |
| - | - | - | - | - | - |
| Claude Code | Same agent | [Claude Code to Codex](https://agentdrive.sh/resume/claude-code-to-codex) | [Claude Code to OpenCode](https://agentdrive.sh/resume/claude-code-to-opencode) | [Claude Code to Cursor](https://agentdrive.sh/resume/claude-code-to-cursor) | [Claude Code to Antigravity](https://agentdrive.sh/resume/claude-code-to-antigravity) |
| Codex | [Codex to Claude Code](https://agentdrive.sh/resume/codex-to-claude-code) | Same agent | [Codex to OpenCode](https://agentdrive.sh/resume/codex-to-opencode) | [Codex to Cursor](https://agentdrive.sh/resume/codex-to-cursor) | [Codex to Antigravity](https://agentdrive.sh/resume/codex-to-antigravity) |
| OpenCode | [OpenCode to Claude Code](https://agentdrive.sh/resume/opencode-to-claude-code) | [OpenCode to Codex](https://agentdrive.sh/resume/opencode-to-codex) | Same agent | [OpenCode to Cursor](https://agentdrive.sh/resume/opencode-to-cursor) | [OpenCode to Antigravity](https://agentdrive.sh/resume/opencode-to-antigravity) |
| Cursor | [Cursor to Claude Code](https://agentdrive.sh/resume/cursor-to-claude-code) | [Cursor to Codex](https://agentdrive.sh/resume/cursor-to-codex) | [Cursor to OpenCode](https://agentdrive.sh/resume/cursor-to-opencode) | Same agent | [Cursor to Antigravity](https://agentdrive.sh/resume/cursor-to-antigravity) |
| Antigravity | [Antigravity to Claude Code](https://agentdrive.sh/resume/antigravity-to-claude-code) | [Antigravity to Codex](https://agentdrive.sh/resume/antigravity-to-codex) | [Antigravity to OpenCode](https://agentdrive.sh/resume/antigravity-to-opencode) | [Antigravity to Cursor](https://agentdrive.sh/resume/antigravity-to-cursor) | Same agent |

## The resume command in each agent

- [Claude Code](https://agentdrive.sh/integrations/claude-code): run `/agentdrive:resume`
- [Codex](https://agentdrive.sh/integrations/codex): ask it to resume your session, or mention the AgentDrive skill with `$agentdrive`
- [OpenCode](https://agentdrive.sh/integrations/opencode): run `/agentdrive-resume`
- [Cursor](https://agentdrive.sh/integrations/cursor): run `/agentdrive-resume`
- [Antigravity](https://agentdrive.sh/integrations/antigravity): ask it to resume your session (the `agentdrive-resume` skill)
- Any shell: `adrive resume`

New to AgentDrive? Start with the [quick start](https://agentdrive.sh/docs/quick-start).
