Harness Notes

Migration

Updated 2026-11-22,

On this page

Moving between harnesses: what each one can import from another, which of another harness's files it reads as-is, and what it can export.

QuestionClaude Codechecked at 2.1.300
Import setup from another harness

/import [codex|gemini|cursor] (or claude import <source> from the shell) brings OpenAI Codex, Google Gemini CLI or Cursor setup into Claude Code: instruction files such as AGENTS.md are appended once to the matching CLAUDE.md, and MCP servers, commands, subagents, skills and the permission mode come across. --dry-run previews and --yes skips the picker. Separately, claude mcp add-from-claude-desktop copies MCP servers from the Claude Desktop app.

Needs v2.1.213 or later (v2.1.265 for Cursor) and is turned on by a fetched feature flag, so it is unavailable on Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, Claude Platform on AWS, apps gateways, or with telemetry or nonessential traffic disabled.

Hooks, plugins and other settings are not imported.

claude mcp add-from-claude-desktop works on macOS and WSL only.

Other harnesses' files it reads directly

Partly

Claude Code reads AGENTS.md (and .claude/AGENTS.md) as project instructions when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md; setting Project instructions to claude-md-and-agents-md in /config loads both. It does not read other tools' skill folders such as .agents/skills, or MCP configs such as claude_desktop_config.json. /init also reads Cursor rules (.cursor/rules/, .cursorrules) and .github/copilot-instructions.md when it drafts a CLAUDE.md.

Reading AGENTS.md directly needs v2.1.277 or later; on older versions put @AGENTS.md in your CLAUDE.md.

With CLAUDE_CODE_NEW_INIT=1, /init also reads .devin/rules/, .windsurf/rules/, .windsurfrules and .clinerules.

Import sessions or history

Not supported

No. /import brings over configuration only, and there is no command to load another harness's conversations; Claude Code resumes only its own sessions (including ones moved from the cloud with --teleport).

Export for use elsewhere

Partly

/export [filename] copies the current conversation to the clipboard or saves it as plain text, and claude -p --output-format json|stream-json or the Agent SDK's getSessionMessages() give structured data for scripts. There is no command that converts Claude Code setup or sessions into another harness's format.

Other tools can pull Claude Code setup in themselves; for example, Codex's /import reads Claude Code's settings, skills, CLAUDE.md, MCP servers, subagents and hooks.

Commands

From your shell

Commands you run in a terminal or script, outside a session.

TaskClaude Codechecked at 2.1.296
Set up
Import

claude import [--dry-run] [--yes] [codex|gemini|cursor]

Import configuration from Codex, Gemini CLI or Cursor.

1 note

Starts a session that runs /import. Unavailable on Bedrock, Foundry and some other platforms.

Inside a session

Slash commands you type into an open session.

TaskClaude Codechecked at 2.1.296
Set up
Import

/import [codex|gemini|cursor] [--dry-run] [--yes]

Bring instructions, MCP servers, commands, subagents and skills from another agent.

Notes and sources

Claude Code, 7 sources
Import setup from another harness, 5
Other harnesses' files it reads directly, 2
Import sessions or history, 2
Export for use elsewhere, 1