Surface choice
Know when you want the explicitness of the CLI, the convenience of the IDE, or a cloud task that can continue after you disconnect.
Module 03.1
Codex get started
Start here if you are new to Codex or if your first attempts felt chaotic. This lesson teaches the minimal operating loop: pick the right surface, run one bounded task, inspect the result, and resume the thread cleanly.
模块 03.1
Codex 起步
如果你刚开始接触 Codex,或者之前的尝试显得混乱,就从这里开始。这个子模块只训练最小工作循环: 选对入口、完成一个边界清楚的小任务、检查结果,并干净地恢复线程。
Outcomes
Know when you want the explicitness of the CLI, the convenience of the IDE, or a cloud task that can continue after you disconnect.
Your first request should be specific, low-risk, and easy to verify. Codex skill grows from clean reps, not dramatic first attempts.
Understand that a thread carries context. Resume intentionally, and avoid running multiple threads against the same files.
学习结果
知道什么时候该用 CLI 的显式控制、什么时候用 IDE 的顺手体验、什么时候用能离线继续跑的云端任务。
你的第一个请求应该具体、低风险、容易验证。Codex 技能来自干净重复的小练习,而不是戏剧化的第一次尝试。
理解线程会携带上下文;只有在需要时才恢复,并避免多个线程同时改同一批文件。
Workflow
Start with the CLI or sign in through your preferred surface. The goal is not feature exploration yet; it is one clean working session.
Pick something like a small bug fix, a test, a doc rewrite, or a single component change with a clear done-when.
Before Codex starts, decide whether success means a diff review, a test run, a build, or a manual check.
Read the diff, review commands, and decide whether the task needs a follow-up prompt or is actually complete.
If you need a second pass, resume the thread so Codex keeps the local context instead of recreating the task from scratch.
工作流程
从 CLI 开始,或者在你偏好的入口完成登录。此时的目标不是探索全部功能,而是完成一次干净的工作会话。
例如一个小 bug、一条测试、一段文档改写,或一个单独组件修改,并给出明确完成标准。
在 Codex 动手前先决定成功标准到底是 diff 审查、测试通过、构建通过,还是人工检查。
读 diff、看执行过的命令,再决定是需要下一轮提示,还是这个任务真的已经完成。
如果要继续,就恢复原线程,让 Codex 保留上下文,而不是每次都从零重新讲一遍。
Command board
npm i -g @openai/codex codex codex resume --last
/model /status /plan /diff /review
命令板
npm i -g @openai/codex codex codex resume --last
/model /status /plan /diff /review
Practice
练习
If your first Codex experience is a repo-wide rewrite, you learn confusion, not control.
Two threads touching the same files create context drift, merge pain, and false confidence.
如果你的第一次 Codex 体验就是整仓改写,你学到的只会是混乱,而不是控制力。
两个线程同时修改同一批文件,只会带来上下文漂移、合并痛苦和虚假的自信。