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.

QuestionCodex CLI
Import setup from another harness

Yes, from Claude Code and Cursor. In a local TUI session, type /import. If both are found, choose a source, then tick what to bring over. Supported items are CLAUDE.md/.cursorrules to AGENTS.md, selected settings to config.toml, skills to .agents/skills, plugins and marketplaces, MCP servers, subagents to Codex agent TOML, hooks, slash commands converted to skills, project folders, and recent chats. Existing Codex files and entries are not overwritten.

Claude Code project memories are imported only when you turn on the under-development external_agent_memory_import feature (codex features enable external_agent_memory_import). There is no Cursor memory import.

From Cursor, only the legacy .cursorrules file becomes AGENTS.md; .cursor/rules/*.mdc are not imported.

/import can't run while a task is running. The docs say it is also unavailable in remote or daemon sessions, but that limit was lifted in 0.157.0.

Review imported hooks, MCP auth/headers and permissions afterwards; unsupported fields are dropped.

Other harnesses' files it reads directly

Partly

Mostly not. Codex reads AGENTS.md and skills in .agents/skills, a shared folder other tools also use. It does not read .claude/skills, .mcp.json or Cursor rules. To use CLAUDE.md directly, add it to project_doc_fallback_filenames in config.toml. It is then used only in directories without an AGENTS.md.

Import sessions or history

Partly

Yes, through /import. Pick recent chats from Claude Code (~/.claude/projects/...jsonl) or Cursor agent transcripts, up to 50 chats from the last 30 days. They become Codex sessions you can resume. Each one gets the source's custom or AI title when it has one, and otherwise a title from its first message.

Imported chats are text replays. Thinking is dropped, tool calls and results become short text notes, and images become placeholders. Re-running /import appends new turns to chats it has already imported.

Export for use elsewhere

Partly

Codex has no export to other harnesses. You can export a chat as Markdown with /export (clipboard or file) or /export session.md. The raw session JSONL files stay under ~/.codex/sessions. Setup lives in plain files that other tools can read or that you can copy by hand: AGENTS.md, .agents/skills and ~/.codex/config.toml.

Commands

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1
Set up
Import

/import

Import setup, project files and recent chats from Claude Code or Cursor.

1 note

The source description names Claude Code only; the docs add Cursor. Covers up to 50 chats from the last 30 days.

Notes and sources

Codex CLI, 10 sources
Import setup from another harness, 5
Other harnesses' files it reads directly, 2
Import sessions or history, 3
Export for use elsewhere, 2