Skip to content

agentdrive-sh/agentdrive

v0.4.2Apache-2.0

The AgentDrive skill and MCP server: resume coding-agent sessions across Claude Code, Codex, OpenCode, Cursor and Antigravity, and search what other agents wrote.

AgentDrive

AgentDrive saves your Claude Code sessions so you can pick one up in another coding agent (Codex, Cursor, OpenCode or Antigravity), or bring a session from one of those back into Claude Code. Hit a usage limit in one agent and keep going in another, with the transcript, decisions and files carried over.

Install

/plugin install agentdrive --marketplace agentdrive-sh/agentdrive-mcp

On Claude Code older than 2.1.275, run /plugin marketplace add agentdrive-sh/agentdrive-mcp, then /plugin install agentdrive@agentdrive.

Commands

  • /agentdrive:login signs you in. It runs the AgentDrive CLI (npx -y @adrive/cli init --yes), which opens your browser once and shows a code to enter there.
  • /agentdrive:sessions lists this project's recent sessions from every connected agent.
  • /agentdrive:resume loads a session's handoff brief so Claude can continue it.

What the plugin runs

  • Hooks on SessionStart, Stop, SessionEnd and PreCompact run adrive hook claude-code: the AgentDrive CLI if it is on your PATH, otherwise the version pinned in hooks/hooks.json through npx.
  • An MCP server, @adrive/mcp-server at the version pinned in .mcp.json, started with npx. It gives Claude the drive_* tools: list, resume, search, read, write and share sessions and files in your AgentDrive workspace.

Both packages are open source under Apache-2.0: agentdrive-sh/agentdrive-mcp and @adrive/cli.

What it sends, and where

Nothing leaves your machine until you sign in. Before that, the session-start hook only adds a short note offering to connect.

After you sign in, a notice shows what is on. On a new install sync is on, and then:

  • On each hook event, a background adrive sync uploads the current session's transcript, and files your agents wrote that git does not track, to your AgentDrive workspace at app.agentdrive.sh (hosted on Cloudflare).
  • Recognized secret patterns are redacted on your device from synced transcripts and files before upload. Redaction is best-effort. A .adriveignore file excludes file paths from artifact sync; it does not remove text already pasted into a conversation.
  • Private Workspace encrypts the content the CLI syncs on your machine before adrive sync uploads it. adrive push also honors that preference unless --plaintext is supplied; --encrypt explicitly enables encryption for a push. Ordinary direct REST/MCP writes and control metadata are outside this encryption setting. The local software key store is not an OS keychain: preserve both keychain.bin and keychain.bin.protector on the original machine/user for decryption.
  • At session start, it fetches a short summary of this project's recent sessions and adds it to Claude's context, and connects installed agent tools it has not connected before by adding AgentDrive's hooks, MCP server, commands and skill to their config files.

Turn any of this off at any time with adrive privacy (sync of transcripts and files, session-start context, connecting new agent tools, and Private Workspace).