从 Cursor / Copilot / Roo-Cline 迁移

Cortex 是建立在 OpenCode 上的薄 IDE 层。保留你的编辑器;带上已有的 rules 与习惯。

从 Cursor

  • 保留 .cursor/rules 与项目 skills — Policy Brain 会与 .cortex/rules 一起加载。
  • 在 VS Code(或兼容 fork)安装 Cortex Agent,并连接 OpenCode 账号(无需 Cortex 注册)。
  • 用 OpenCode(或 Models 中的 BYOK)替代 Cursor 订阅计费。
  • 用 Plan/Build + Auto 替代 Cursor Agent 模式;幽灵补全与 Inline Edit 覆盖编辑面。

从 GitHub Copilot

  • Cortex 聊天与补全使用 OpenCode 模型 — 不是 Copilot Chat。
  • 安装 Cortex,粘贴一次 OpenCode API key;若仍需独立补全可继续保留 Copilot。
  • 通过 .cortex/rules 或 user rules(命令面板 → Edit user rules)带入团队约定。

从 Roo / Cline / Zoo Code

  • 若不再需要进程内代理或网关,卸载 Roo/Cline/Zoo fork 扩展。
  • Cortex 默认不使用 token 网关或 Docker — OpenCode 在本地运行,使用你的订阅。
  • 将 Roo/Cline 模式映射到 Cortex Plan/Build 与 OpenCode 自定义 agents;在 .cortex/rules 下复用 markdown 规则。