﻿---
title: "配方：从 Claude Code 或 Cursor 迁过来"
summary: "/import 可迁设置、MCP、插件、会话、命令和项目记忆。先选择性导入，再清理。CLI 最多 50 条近 30 天聊天。"
category: recipes
level: intermediate
surfaces: [cli, app]
tags: ["/import", "迁移", "Cursor"]
canonical: /tips/import-from-other-tools/
---

# 配方：从 Claude Code 或 Cursor 迁过来

/import 可迁设置、MCP、插件、会话、命令和项目记忆。先选择性导入，再清理。CLI 最多 50 条近 30 天聊天。

不要指望一份 `CLAUDE.md` 自动变成完美的 `AGENTS.md`。流程：

1. `project_doc_fallback_filenames` 先纳入现有文件，立即能用
2. `/import` 迁 MCP 和会话
3. 手工把规则改写成 Codex 风格的短 `AGENTS.md`
4. 把重复工作流收成 skills
5. 用 profile 文件重建「careful / fast」等模式

CLI 只从 Claude Code 或 Cursor 导入，最多最近 30 天里的 50 条聊天。任务进行中、远程会话、或连着本机 app-server daemon 时没有 `/import`。桌面应用还可导入 Claude Cowork，并在 Settings > Import 打开自动同步。

`CLAUDE.md` 和 `.cursor/rules` 解决的是相近问题，发现顺序和覆盖语义并不相同。迁完核对 MCP 鉴权、钩子和权限，再用「复述指令链」验证。

## 来源

- [OpenAI · Import from another agent](https://learn.chatgpt.com/docs/import)
- [Blake Crosley · Codex CLI Guide](https://blakecrosley.com/guides/codex)
