﻿---
title: "复杂任务先 /plan"
summary: "模糊、多步、难描述的工作，先让 Codex 搜集上下文、提问、出方案。/plan 或 Shift+Tab。"
category: prompt
level: starter
surfaces: [cli, app]
tags: ["/plan", "规划", "Shift+Tab"]
canonical: /tips/plan-first/
---

# 复杂任务先 /plan

模糊、多步、难描述的工作，先让 Codex 搜集上下文、提问、出方案。/plan 或 Shift+Tab。

Plan 模式会在动手前：

- 读仓库、问澄清问题
- 给出可执行方案
- 等你确认再改代码

切换：TUI 里 `/plan`，或 `Shift+Tab`。

进阶：给长任务准备 `PLANS.md` 或执行计划模板，让规划格式稳定。规划阶段可单独提高 `plan_mode_reasoning_effort`。

跳过规划直接开写，是多步任务最常见的翻车方式。

## 来源

- [OpenAI · Best practices](https://developers.openai.com/codex/learn/best-practices)
