JIC School · Hands-on Guide / 实操教程

The Complete
Codex Guide:
From Zero to
Commanding Your Agent Codex 保姆级完整教学:从入门到指挥你的超级 Agent

Level Beginner Length 17 steps Lang EN / 中文 Updated 2026-09-05 By JIC School
Contents / 全文地图

Four parts, 17 steps四个部分,17 步

Part 01

First: Codex isn't another chat box先搞清楚:Codex 不是另一个聊天框

This part decides whether everything after it works. Plenty of people treat Codex as "a stronger ChatGPT" — and end up just asking questions in a new place.这一部分决定你后面用得对不对。很多人把 Codex 当成"更强的 ChatGPT",结果只是换了个地方问问题。

1 · The root difference: advice vs. actual work1 · 一个根本差异:出主意 vs 干活

The way you use ChatGPT, Gemini or Claude in the browser is: you ask → it answers → the rest is still on you. That's not AI doing your work. That's AI giving you ideas.你现在用 ChatGPT、Gemini、Claude 网页版的方式是:你问它 → 它给答案 → 剩下的还是你自己动手。这不是 AI 在帮你工作,这是 AI 在帮你出主意。

Codex runs on your own machine: it reads and writes your local files, connects to Gmail, Calendar, Canva and scheduling tools, runs several tasks at once, doesn't need you watching over it — and needs no programming background. You only need to be able to say what you want.Codex 装在你自己的电脑上:它能直接读写你的本地文件,连上你的 Gmail、日历、Canva、排程工具,同时跑多个任务,不需要你在旁边盯着,也不需要任何程序背景——你只需要会说你想要什么。

Dimension维度 Chat AI (browser)聊天式 AI(网页端) Codex (Agent)Codex(Agent)
Deliverable交付物 An answer, a suggestion一段答案、一段建议 Real files, images, video, a runnable App真实的文件、图片、视频、可运行的 App
What it can touch能碰到什么 Only the chat box只有对话框 Your file system, terminal, browser, accounts本地文件系统、终端、浏览器、你的账号
Your role你的角色 Asker提问者 Manager: assign, set standards, verify管理者:派活、定标准、验收
Parallelism并行能力 One thing at a time一次一件 Many chats / projects running in the background多个对话框 / 多个项目同时后台跑
Does it remember you记不记得你 You re-explain every time每次重新解释一遍 AGENTS.md + Skills accumulate over timeAGENTS.md + Skills 长期积累
JIC Note / JIC 补充 Tape this to your monitor: an answer is not a result. When AI feels underwhelming, it's usually not the model — it's that you stopped at the answer. 把这句话贴在显示器上:答案 ≠ 结果。你之所以觉得 AI"没那么神",通常不是模型不行,是你只让它停在了答案那一步。

2 · Download and sign in: two routes2 · 下载与登录:两种方式

  1. Find the official site找到官网 Search Codex on Google and open the official site. It detects your OS and offers the matching download. Google 直接搜 Codex,打开官网,它会自动识别你的系统版本,给出对应的下载入口。
  2. Install the desktop app下载桌面端 App Open it and you'll be offered two ways to sign in. 装完打开,会提示两种登录方式。
  3. Route A: sign in with ChatGPT (try this first)方式一:ChatGPT 账号登录(推荐先试这个) Least friction, and your quota simply follows your subscription. 最省事,额度直接跟着你的订阅走。
  4. Route B: API key方式二:API Key Use an official OpenAI key, or a third-party relay. The real value of this route: beyond OpenAI's own models, you can drive this super Agent with other LLMs. 可以用 OpenAI 官方 API key,也可以用第三方中转 API——这条路的价值是:除了 ChatGPT 官方模型,你还能调用别的大模型来驱动这个超级 Agent。
How to choose / 怎么选 Start with the ChatGPT account. Don't fight with API keys on day one. Switch later, once you know your usage — or when you want to change models to save money. 刚开始就用 ChatGPT 账号,别一上来折腾 API。等你摸清用量、或者想换模型 / 省钱时,再切到 API key。

3 · The interface: three panes, and the switches that matter3 · 界面速览:左中右三块,以及必须认识的开关

  • Far left — menus and chat entries. Bottom-left is settings, where you check your Codex quota.最左侧:功能菜单与会话入口;左下角是设置,在里面可以查看 Codex 额度。
  • Middle — the largest area. Where you talk to the Agent and hand out work.中间:最大的区域,和 Agent 对话、派活的主战场。
  • Right — the preview pane.右侧:预览界面。

These are the controls on the chat box you have to know:对话框上你必须认识这几个开关:

+ AddAttach images or documents for the Agent to work on加号:添加图片 / 文档给 Agent 处理
Plan ModeTurn on for new projects needing research and planning规划模式:新项目、需要大量调研规划时打开
PluginsCodex-only — Claude desktop doesn't have this外挂程序:Codex 独有,Claude 桌面端没有
Permission levelHow much authority you're willing to hand the Agent预设权限等级:你愿意给 Agent 多大的权限范围
ProjectWhich project folder this work happens in专案:指定这次工作在哪个项目文件夹里
Modele.g. GPT 5.5, or another LLM模型型号:如 GPT 5.5,或其他大语言模型
SpeedStandard or fast; can be pushed to 1.5×速度:标准 / 快速,可提升到 1.5 倍
EffortHow hard the Agent tries on this task智慧等级:Agent 处理任务愿意付出多少努力
Two defaults / 两个默认建议 ① Set effort to High or Max. What you save here you pay back in rework. ② One project per piece of work — don't pile everything into a single folder. ① 智慧等级选「高」或「超高」——省这点钱换来的是返工。② 不同项目 / 不同工作,一律新建一个专案,不要所有事情堆在一个文件夹里。
Part 02

Foundations: make it know you打地基:让它认识你,而不是每次重讲

This is the highest-return part of the whole guide. Plugins decide what it can touch; AGENTS.md decides whose rules it works by.这一部分是整门课回报最高的地方。Plugins 决定它能碰到什么,AGENTS.md 决定它按谁的规矩干活。

4 · Plugins: the thing only Codex has4 · Plugins 外挂程序:Codex 的独门能力

Open Plugins and note the toggle at the top left: Plugins vs Skill. One line each:点开外挂程序,左上角有一个开关:Plugins(外挂) 和 Skill(技能)。两者的区别一句话说清:

  • Skill = your SOP. Turn a complex, standardised workflow into a Skill, so every run lands above the quality bar you accept.Skill = 你的 SOP。把一整套复杂的、标准化的工作流程定义成一个 Skill,确保每一次产出都在你能接受的质量线以上。
  • Plugin = wiring to outside tools. It doesn't define the steps; it plugs external software into Codex so the Agent can actually operate it.Plugin = 外部工具的接线。它不定义工作步骤,而是把外部软件接进 Codex,让它能真的动手操作那些软件。

The plugins shipped out of the box fall into a few groups:官方已经提供的外挂大致分几类:

Computer UseLet Codex operate your computer让 Codex 操作你的电脑
Browser UseLet Codex drive the browser让 Codex 操控浏览器
Spreadsheets / PresentationExcel and slide decksExcel 与简报
VercelDeploy and ship your sites and apps部署上线你的网站和应用
SuperpowersA full set of Skills and tools, planning → testing → output一整套从规划到测试到产出的 Skill 与工具
GitHub / databasesThe usual code and data tooling代码与数据侧常用工具
Canva / FigmaLink your own design accounts关联你自己的设计账号
Google suiteGmail · Calendar · DriveGmail · 日历 · 云端硬盘

Hands-on demo: install a plugin, click "Try in chat", and one sentence is enough:实操演示:点「安装」装好插件后,点「在聊天中试用」,输入一句话就够了:

Prompt · copyWhich sponsorship or brand-deal invitations came into my Gmail in the last 7 days?
中文版最近 7 天我的 Gmail 有收到哪些广告商单、业配的邀约?

It prompts you to connect Gmail, then searches that date range, surfaces the real sponsorship offers on the first pass, and summarises them. From there you can have it draft the replies, or click straight through to the original mail.它会提示你绑定 Gmail 账号,绑定完就开始检索指定日期区间的邮件,第一轮就抓出明确的商单邀约,并整理成汇总。你可以顺手让它直接草拟回复,也可以点邮件链接跳回原文自己处理。

Relation to Claude / 和 Claude 的关系 Claude Code and Claude desktop can bind Gmail and friends over CLI and do the same job. Plugins simply integrate more smoothly at the app level — one less configuration hurdle. Claude Code / Claude 桌面端也能通过 CLI 绑定 Gmail 等账号来干同样的事,只是 Plugin 这种方式在软件层面的融合做得更顺手——少一层配置门槛。
Permission boundaries (important) / 权限边界(重要) Before you let an Agent touch mail, calendar or drive, decide how far it may go. The JIC default: email stops at draft, calendar changes are previewed first, deletions are confirmed and go to the trash. 让 Agent 碰邮箱、日历、云盘之前,先想清楚它能做到哪一步。极客学校的默认口径是:发邮件只到草稿、日历改动先预览、删除类操作先确认、走废纸篓。

5 · Automations: put it on a daily shift5 · Automations 自动化:让它每天自己上班

Top left there's Automations, similar to routine / schedule in Claude Cowork. Click New automation and describe it in plain language: what time, which project, which worktree (local or chat).左上角还有一个「自动化」功能,类似 Claude Cowork 里的 routine / schedule。点右上角新增自动化,用对话式提示词描述就行:几点跑、在哪个专案、在哪个工作树(本机还是聊天)。

Automation · copyEvery day at 10am, based on all of yesterday's work history, conversations and file changes, turn yesterday's work into a new Skill. If a related Skill already exists, refine it so it fits my working habits better. When you're done, list the files you created or modified.
中文版每天早上 10 点,基于我昨天所有的工作历史、对话记录和文件修改, 帮我把昨天的工作整理成一套新的 Skill; 如果已有相关 Skill,就在原有基础上做优化,让它更贴合我的工作习惯。 完成后列出你新建或修改了哪些文件。
JIC Note / JIC 补充 This is the most overlooked and highest-compounding move here: have the Agent distil your work into Skills every day. The longer you use it, the more it works like you — instead of drifting generic. 这是整套流程里最容易被忽略、但复利最高的一招:让 Agent 每天把你的工作沉淀成 Skill。用得越久,它越像你,而不是越来越通用。

6 · The slash key: half the features hide here6 · 斜杠 /:藏着的一半功能

Type / in the chat box and a whole row of options opens up:在对话框里输入 /,会弹出一整排功能选择:

  • Call a specific Skill调用某一个特定的 Skill
  • Enable and use MCP features启用 / 使用 MCP 相关功能
  • Set the Agent's tone — friendly or matter-of-fact设定 Agent 回复的性格(友善 or 务实)
  • Manage chat memory管理聊天记忆

7 · First thing: create a Project of your own7 · 第一件事:建一个属于你的 Project

The critical first step is creating your own local project. Pick an existing one in the chat box, or click "New project" — name it something like My AI Agent.正式开始用 Codex,最关键的第一步是创建你自己的本地专案(project)。在对话框里选择已有专案,或点「新增专案」,例如命名为 My AI Agent。

Why it's mandatory / 为什么必须建 Use the metaphor: the project is the work box, folders are the cabinet, outputs are the homework. Without a project, the AI employee you just hired has no desk — and no idea where to put what it finished. 用一个比喻:project 是工作盒子,文件夹是柜子,产出的文档是作业。没有 project,你请来的 AI 员工就像没有办公桌——做完了东西也不知道该放哪。

8 · Second thing: AGENTS.md — the onboarding handbook for your AI employee8 · 第二件事:AGENTS.md —— AI 员工的入职手册

Once the project exists, the key artefact is AGENTS.md. It sits in the root of the project folder, Codex reads it before every job, and then acts by its rules. It directly determines your output quality.建好 project 之后,最关键的就是写好 AGENTS.md。这份文件放在项目文件夹的根目录,Codex 每次开工前都会先读它,然后按里面的规则行动。它直接决定你的产出质量。

It doesn't need to be long. Three things are enough:不用写长,说清三件事就够:

  1. Who you are你是谁 e.g. you're a YouTuber — the channel name, your main content series, the audience profile. 比如:你是一个 YouTuber,你的频道叫什么、主要内容系列有哪些、受众画像是什么样的人。
  2. Output language and format输出语言与格式要求 e.g. all output in Simplified Chinese; tone pragmatic, objective and careful; direct, no waffle. 比如:所有输出必须是简体中文;文案风格务实、客观、谨慎,直接干脆,不要弯弯绕绕。
  3. Working principles工作原则 e.g. list a plan before executing; when done, report which files were created and where. 比如:每次执行任务前先列计划;完成后告诉我生成了哪些文件、放在哪里。

Easiest way to create it: throw all the prompts and documents you've accumulated at Codex and let it write the file for you:怎么创建?最省事的办法是把你过去积累的提示词、文档一股脑丢给 Codex,让它替你写:

Prompt · copyCreate AGENTS.md in the root of this project, filled in from the following: 【paste in your accumulated prompts, notes and reference files】 Cover three parts: 1) Who I am: my identity, my business/channel, my audience profile 2) Output language and format: language, tone, length, layout preferences 3) Working principles: plan before executing; report which files were created and where when done; naming conventions Show me the final file for confirmation when you're finished.
中文版帮我在这个 project 的根目录创建 AGENTS.md,并根据以下信息填写: 【把你过去积累的提示词、资料、文件夹一起丢进来】 请覆盖三部分: 1) 我是谁:我的身份、我的业务/频道、我的受众画像 2) 输出语言与格式要求:语言、语气、字数、排版偏好 3) 工作原则:执行前先列计划;完成后汇报生成了哪些文件、放在哪里;命名规范 写完后把最终文件内容展示给我确认。

What a working AGENTS.md actually contains:一份实际可用的 AGENTS.md 结构:

  • Project positioning — e.g. content creation + AI agent development专案定位:例如内容创作 + AI 智能体开发
  • Root directory conventions — AGENTS.md / memory / content / workflow / Sandbox根目录约定:AGENTS.md / memory / content / 工作流 / Sandbox
  • Naming conventions — how files get named during content work命名规范:内容创作时文件怎么命名
  • First step on entering the project — if the workspace is messy or a new subfolder has no convention, tidy the structure and fill the gaps first, then start work进入项目第一步:如果发现工作空间结构混乱、或有新子目录没有规范,先整理结构、补齐文件,再开始工作
  • Content workflow — the standard route for this kind of job内容创作工作流:这类活标准怎么走
  • Related links — entry points to the material you use often相关链接:常用资料的入口
AGENTS.md skeleton · copy# AGENTS.md ## 1. Who I am - Identity: - Business / channel: - Audience profile: - The three kinds of work I do most: ## 2. Output requirements - Language: Simplified Chinese (keep technical terms in English) - Tone: pragmatic, objective, direct — no waffle - Format: conclusion first, then detail; prefer lists over long paragraphs - Length: concise by default; I'll say so when I want long form ## 3. Working principles - List a plan and let me confirm it before executing - When done, report which files were created/modified and where - Email stops at draft — never send directly - Confirm before any deletion; use the trash - Always wait for my confirmation before deploy / push ## 4. Directory conventions - /memory long-term memory and preferences - /content content output - /workflow SOPs and Skill documentation - /Sandbox scratch area, safe to wipe ## 5. Naming - Content files: YYYY-MM-DD_topic_version.md ## 6. First step on entering the project If the structure is messy or there are undocumented new folders, tidy the structure and fill in the docs before starting work.
中文版# AGENTS.md ## 1. 我是谁 - 身份: - 业务 / 频道: - 受众画像: - 我最常做的三类工作: ## 2. 输出要求 - 语言:简体中文(专有名词保留英文) - 语气:务实、客观、直接,不绕弯 - 格式:先结论后展开;能用清单就不用大段文字 - 长度:默认精炼,需要长文我会明说 ## 3. 工作原则 - 执行任务前,先列出计划让我确认 - 完成后,汇报生成/修改了哪些文件,放在哪个目录 - 发邮件只写到草稿,不直接发送 - 删除类操作先确认,走废纸篓 - 部署 / push 前必须等我确认 ## 4. 目录约定 - /memory 长期记忆与偏好 - /content 内容产出 - /工作流 SOP 与 Skill 说明 - /Sandbox 试验区,可随时清空 ## 5. 命名规范 - 内容文件:YYYY-MM-DD_主题_版本.md ## 6. 进入项目第一步 若发现结构混乱或有未登记的新目录,先整理结构、补齐说明,再开始工作。
JIC Note / JIC 补充 AGENTS.md is not written once. Treat it as a living document: set an automation to review the last 24 hours every morning at 10 and refine it, or do a full pass weekly or monthly. AGENTS.md 不是一次写完的。把它当活文档:配一个自动化任务,每天早上 10 点 review 过去 24 小时的工作历程去优化它;或者每周 / 每月做一次整体更新。

9 · Switch to terminal: put Claude Code to work in the same window9 · 切换终端:让 Claude Code 在同一个界面里一起干活

Top right there's a Switch terminal button that pulls up your local terminal. If Claude Code is already installed on your machine, one short command brings it up:右上角有个切换终端的按钮,点开就把本地 Terminal 拉起来了。如果你本机已经装了 Claude Code,在这里输入一个命令就能把它叫出来:

Terminalcc

Now one window has Codex on top and Claude Code below, both working for you. Ask "who are you" and Claude Code answers from the persona you wrote — "I'm your AI assistant, your AI double" — and lists what it can do.于是同一个界面里,上面是 Codex、下面是 Claude Code,两个 Agent 同时为你工作。随手问一句"你是谁",Claude Code 会照着你写好的设定回答——比如"我是你的 AI 助理、你的 AI 分身",并列出它会做哪些工作。

JIC Note / JIC 补充 The real value isn't the trick, it's the division of labour: send long code-reading and code-writing jobs to Claude Code, and jobs that need external tools (Gmail, Canva, Drive) to Codex. There's no single winner — whoever is better at it does it. 这一步的真正价值不是炫技,是分工:把需要长时间读代码/改代码的活交给 Claude Code,把需要连外部工具(Gmail、Canva、Drive)的活交给 Codex。工具没有唯一解,谁擅长谁上。

10 · Fork Chat: protect your context10 · Fork Chat 分叉:保护你的上下文

Your scarcest asset when working with an Agent is context. When a thread runs long, or when you want two tasks in parallel but don't want them in the same chat (messy context, conflicting work) — fork it.和 Agent 打交道,最关键的资产是上下文。当你要做一段很长的多轮对话,或者要并行推进两个任务、又不想挤在同一个对话框里(会让上下文混乱、任务互相冲突)——用分叉。

  • Select the chat on the left → choose Fork在左边选中对应的对话框 → 选择分叉
  • Generally, fork to local一般建议直接分叉到本机
  • Result: two identical chats. Everything before the fork is the same; everything after diverges.结果:出现两个一模一样的对话框,分叉点之前的历史完全相同,之后各走各的
Typical uses / 典型用法 Plan A vs plan B; two styles for the same brief; keep the main line moving while a side branch runs a risky experiment. 方案 A / 方案 B 对比;同一份需求试两种风格;主线继续推进的同时,开一条支线做高风险试验。
Part 03

Make it deliver: copy, images, reports, video, Apps让它交作业:文案、图、报告、视频、App

This is where real output starts. Notice what every example has in common — the input is tiny, because the standards already live in your Skills and AGENTS.md.从这里开始才是真正的产出。注意每个例子的共同点——输入都极短,因为标准早就写在 Skill 和 AGENTS.md 里了。

11 · Skills: store your SOP11 · Skills 技能:把你的 SOP 存下来

Go to Plugins → switch to Skill in the top left. Codex gives you a genuinely good visual list; click to install. What ships by default:点「外挂程序」→ 左上角切到「Skill」,Codex 给了一个相当不错的可视化列表,点击即可安装。官方默认提供的一批:

PDFProduce PDFs directly — contracts and the like直接生成 PDF 格式的合同等文档
DocProduce .doc documents生成 doc 格式文档
PlaywrightBrowser automation浏览器自动化
Image generationMake images生成图片
Skill CreatorThe Skill that writes new Skills用来创建新 Skill 的 Skill
Plugin CreatorBuild your own plugins用来创建 plugin
iOS App devPersonal app-development skill pack个人向 iOS 开发技能包
Thinking frameworksKarpathy's and Feynman's ways of thinking and explainingKarpathy、费曼的思维与表达方式

Skills you previously had the Agent install from the web (Lark integrations, various CLI tools) are listed here too.另外,你过去通过对话让 Agent 从网上装下来的 Skill(比如 Lark 相关、各种 CLI 工具),也都会陈列在这里。

12 · Create your first Skill: one sentence is enough12 · 创建你的第一个 Skill:一句话就够

The simplest route is to just tell Codex what you want and let Skill Creator write it:最简单的方式就是直接告诉 Codex 你要什么,让 Skill Creator 去写:

Create a Skill · copyI want a Skill that writes IG captions for me. Requirements: Simplified Chinese, conversational, 150 characters max per post, and every post ends with a call to action. Use Skill Creator to build this file.
中文版我想建立一个 Skill,功能是帮我生成 IG 文案。 要求:简体中文、口语化,每则限 150 字,结尾要有行动呼吁。 请用 Skill Creator 创建这份文件。

It writes the Skill as a Markdown file into your project folder. To use it later, type /IG文案 in the chat box and it knows the format. Or just say:它会自动生成 Skill 的 Markdown 文档,存进你的 project 文件夹。之后要用,在对话框打 /IG文案 它就知道按这个格式来。或者直接说:

Call the Skill · copyUse my IG Skill to write an IG post introducing Codex, the super Agent.
中文版帮我调用 IG 的 Skill,生成一篇介绍 Codex 这个超级 Agent 的 IG 贴文。

A real output — headline: "Codex, the super Agent: you're still chatting with AI while the pros already have Agents working." The body:一次真实产出——标题是「Codex 超级 Agent:你还在用 AI 聊天,高手已经开始用 Agent 工作」,正文骨架:

  • An answer is not a result. Most people use AI to ask questions, so what they get is answers, not delivery.答案不等于结果:大多数人用 AI 只是在问问题,所以得到的是答案,不是交付。
  • The real gap is letting AI into your workflow. Codex is an Agent with hands: it reads projects, edits code, runs tests, organises results.真正的差距是让 AI 进入工作流:Codex 是会动手的 Agent,能读项目、改程序、跑测试、整理结果。
  • ChatGPT gives advice; Codex hands in the work.ChatGPT 给建议,Codex 帮你交付。
  • Four instructions that make Codex work: state the task · supply the background · define the standard · demand verification.用好 Codex 的 4 个指令:明确任务 · 补足背景 · 定义标准 · 要求验证。
  • You're not asking an AI. You're managing an Agent.你不是在问 AI,你是在管理 Agent。

Once the copy is right, have it call the latest image model for the matching visual (the example used ChatGPT image 2) — a finished image lands in a few minutes.文案满意后,直接让它调用最新的生图模型出配图(示例用的是 ChatGPT image 2),几分钟拿到成品图。

JIC Note · memorise these four / JIC 补充 · 这 4 个指令值得背下来 State the task (what deliverable) · supply the background (audience, context, existing material) · define the standard (length, tone, format, what counts as good) · demand verification (make it self-check and show a checklist). 90% of "the AI output is bad" is the last two missing. 明确任务(要什么交付物)· 补足背景(受众、场景、已有资料)· 定义标准(长度、语气、格式、什么算合格)· 要求验证(让它自查、给出检查清单)。90% 的"AI 输出不行"都是缺了后两条。

13 · Wire up Canva / Figma: keep the output editable13 · 接上 Canva / Figma:产出继续可编辑

Want to take the image you just made into Canva? Click + → Plugins → Canva → authorise your account. The image goes straight into your Canva workspace, where every element is editable — fonts, colours, whatever.想把刚生成的图导到 Canva 继续修?点加号 → 外挂程序 → 选 Canva → 授权你的账号。图会直接进 Canva 后台,每个元素都是可编辑状态——字体、颜色随便改。

The same works for Google Slides and Figma. And an obvious extension: build an Instagram plugin so the finished visual publishes itself to your IG.同理也可以导入 Google Slides、Figma。还有一个延伸方向:未来做一个 Instagram plugin,配图生成后自动发布到你的 IG 后台。

14 · Generate a visual HTML report or landing page14 · 生成可视化 HTML 报告 / 落地页

Beyond images there are Skills for landing pages and visual decks. One sentence:除了图,还有生成落地页和可视化简报的 Skill。提示词可以是这样一句:

Prompt · copyBased on my channel's audience, combining the local Codex material and information from the web, call the info-summary Skill and output an extremely detailed, complete visual HTML report on Codex. Also compare it against Claude desktop.
中文版基于我的频道受众,结合本地 Codex 相关的脚本资料和网络上的信息, 调用 info-summary 这个 Skill, 输出一份超级详细、完整的 Codex 可视化 HTML 报告, 同时对比一下和 Claude 桌面端的区别。

Watch the order it works in: it lays out the structure of the whole deck first (13 blocks in the example, positioned as "an AI-employee manual for non-engineers"), then asks you to pick one of 5 visual styles, and only then generates.它的执行顺序值得注意:先给出整份简报的内容结构(示例中是 13 个区块,重点定位为「给非工程师的 AI 员工操作指南」),再让你从 5 种视觉风格里选一个,然后才生成。

The finished report's skeleton:成品报告的骨架:

  • Title: The complete Codex guide — turning AI from "answering questions" into "an employee who hands in the work"标题:Codex 保姆级教学——把 AI 从「回答问题」变成「会交作业的员工」
  • What you can make with it: IG posts, Facebook ad copy, one-page sites, TikTok UGC scripts, weekly topic reports…能拿来做什么:IG 图文生产、Facebook 广告文案、一页式网站、TikTok UGC 脚本、每周选题报告……
  • What Codex is, in three layers: an AI assistant that can use a computer → your content production workbench → a multi-Agent task consoleCodex 是什么,一句话三层理解:会用电脑的 AI 助理 → 你的内容生产工作台 → 多 Agent 任务控制台
  • What a Project is: the box / cabinet / homework metaphorProject 是什么:工作盒子 / 柜子 / 作业的比喻
  • What AGENTS.md is: the AI employee's onboarding handbook, with a sample creation promptAGENTS.md 是什么:AI 员工的入职手册,附创建提示词范例
  • Three practical tricks: effort · steer (course-correct mid-task) · Fork Chat三个实操小技巧:effort(智慧等级)· steer(中途纠偏)· Fork Chat(分叉)
  • A Codex vs Claude desktop comparison tableCodex vs Claude 桌面端对比表
JIC Note / JIC 补充 The pattern itself is a craft worth stealing: have the Agent produce the structure first, review the structure, then let it fill in. If the structure is wrong, beautiful prose is wasted work — this holds for reports, courseware and proposals alike. 注意这个套路本身就是一门手艺:让 Agent 先出结构、你先审结构,再让它填充。结构错了,写得再漂亮也是白干——这条对写报告、写课件、写方案通用。

15 · Generate video via CLI: Dreamina / Lib TV + Seedance 2.015 · 用 CLI 生成视频:即梦 / Lib TV + Seedance 2.0

Want more than images? You can generate video from inside Codex by calling a CLI.想要的不止是图,是视频?在 Codex 后台通过调用 CLI 的方式就能做。

First, what API / CLI / MCP even are / 先弄懂 API / CLI / MCP 是什么 One line: API, CLI and MCP are all interfaces — ways to call external tools and models. 一句话说清:不管 API、CLI 还是 MCP,本质上都是一种接口——通过它去调用外部工具软件和大模型的能力。

Adding a new tool is a one-liner:接入一个新工具,就是一句话的事:

Prompt · copyInstall the Dreamina CLI for me and tell me how to use it.
中文版帮我接入即梦的 CLI,并告诉我如何使用。
Prompt · copyInstall the Lib TV CLI, and tell me how to authorise and use it.
中文版帮我安装 Lib TV 的 CLI,并且告诉我如何授权和使用。

Codex installs it, tells you where the command entry point is and where the CLI landed, and writes a matching Skill document automatically (how to authorise, create a session, check progress, download results). That's the Agent's homework — you only send prompts.Codex 会帮你装好、告诉你命令入口在哪、CLI 装在了什么位置,并自动创建一个对应的 Skill 文档(授权方式、创建会话、查询进度、下载结果)——这些是 Agent 自己要学的东西,你本人只需要发提示词。

The actual production run:实际生成流程:

  1. Give it one reference storyboard给一张参考分镜图 Any outfit-vlog storyboard found online will do. 在网上随手找一张穿搭 vlog 的分镜图即可。
  2. Have it generate its own storyboard让它生成自己的分镜 storyboard Output: a 4×4 grid laying out the whole look — top, accessories, shoes and bag. 产出一张 4×4 十六宫格,把整套穿搭细节全部铺开:上装、配件、鞋包。
  3. Hand the storyboard back, generate the video把分镜图交回去,生成视频 See the prompt below.见下方提示词。
  4. Stitch into a finished cut拼接成片 The clips are joined into one complete piece; in the Lib TV project view, every clip's prompt and reference image is still retrievable. 各片段最终拼成一支完整作品;在 Lib TV 项目后台,每个片段对应的提示词和参考图都能找回。
Prompt · copyUsing the Lib TV CLI, call the Seedance 2.0 model and generate the outfit VLOG video from the reference storyboard.
中文版请使用 Lib TV CLI,调用其中 Seedance 2.0 的模型能力, 根据参考的分镜图,生成对应的穿搭 VLOG 视频。

Total human input: one storyboard image and one prompt.全程只输入了一张分镜图 + 一句提示词。

Pitfall · credits burn fast / 坑位 · 积分会烧得很快 The Agent has no concept of "credits". It will fire off tasks in parallel and generate a pile of clips at once. Three ways to save: ① write a Skill that caps concurrency and clip count; ② switch to a cheaper third-party API; ③ run a local model for video generation. Agent 本身没有"积分消耗"这个概念,它会并行发起大量任务、一次性生成一堆视频片段。省钱的三条路:① 自己写一个限制并发/片段数的 Skill;② 换更便宜的第三方 API;③ 干脆部署本地大模型来跑视频生成。

16 · One prompt + one design mock = an iOS App16 · 一句提示词 + 一张设计稿 = 一个 iOS App

Codex ships plugins for build iOS App, build Web App and build macOS App. Take any dopamine-coloured music-player sketch you find online as the reference:Codex 的 plugin 里有 build iOS App / build Web App / build macOS App。这里拿网上一张多巴胺色彩风格的音乐播放器设计草图为例:

Prompt · copy (attach the reference image)Following the design style of the attached screenshot, build me a similar iOS music player App, and preload a few good tracks so I can play them. Use the build iOS Apps plugin.
中文版(记得附上参考图)参考截图的设计风格,帮我生成一个类似的 iOS 音乐播放器 App, 并且预置几首不错的音乐歌曲让我播放来听。 同时调用 build iOS Apps 这个 plugin。
  1. It plans before it builds它先梳理开发方案 No code straight away — it gives you the overall plan and asks you to confirm. 不直接写代码,先给出整体方案,让你确认。
  2. Click "implement" to start点「实作方案」开始开发 When it finishes, you get a Preview screenshot. 等它跑完,会给你一张 Preview 预览图。
  3. Ask for a live preview要求真机模拟预览 Reply: "let me preview and try it out directly." 回一句「直接让我预览和试用看看」。
  4. It boots the iPhone simulator and deploys它调起 iPhone 模拟器并部署环境 Now you can tap and listen for real. 你就能在模拟器里真实点、真实听。
Prerequisite / 前置条件 You must install Xcode first — the iPhone simulator comes from the Xcode environment. Without it this step goes nowhere. 必须提前装好 Xcode——iPhone 模拟器是 Xcode 环境提供的,没装这一步走不通。

Result: it plays, it skips tracks, and the dopamine palette changes with every track, faithfully reproducing the reference mock. There's a library page for browsing by category too. That's a usable iOS App.成品实测:能播放、能切歌,每次切歌多巴胺配色跟着换,完整复现了参考视觉稿;还有 library 页面按分类浏览歌曲目录。已经是一个可用的 iOS App。

Part 04

Run them in parallel — then start today并行起来,然后今天就开始

17 · Parallel tasks: the real leverage17 · 多任务并行:这才是 Agent 的真正杠杆

Every task above takes time to run. The point is that in Codex you can run tasks in parallel across different projects, and across several chats inside one project.前面每一个任务都要花时间跑。关键在于:在 Codex 后台,你可以在不同项目下、以及同一个项目下的多个对话框里,让 Agent 并行处理任务。

Then you go make coffee, answer messages, do something else. Come back in fifteen or twenty minutes and the tasks have finished, one after another.然后你就去泡杯咖啡、回消息、干别的。十几二十分钟回来,任务一个接一个完成。

Do the maths / 算一笔账 Handling any one of these jobs on your own used to take two or three hours. An Agent can compress all of them into twenty or thirty minutes, in parallel. The leverage isn't "each task is faster" — it's "everything starts at once". 以前单独处理任何一件工作可能都要两三个小时;Agent 可以把这些任务全部压缩到二三十分钟以内并行完成。杠杆不在"单件更快",在"同时开工"。

Three things to do today今天就做的三件事

  1. Install Codex装好 Codex Search "Codex APP" on Google, download the build for your OS, sign in with your ChatGPT account. Google 搜 Codex APP,选你的系统版本下载,用 ChatGPT 账号登录。
  2. Create your first project and write AGENTS.md建第一个 project + 写好 AGENTS.md Start accumulating your own context and prompts: who you are, what you do, your format requirements, your working habits. 开始积累属于你自己的上下文和专属提示词:告诉它你是谁、你做什么、输出格式要求、工作习惯。
  3. Build your first Skill建第一个 Skill Think of the single most repetitive, most time-consuming thing in your week. Write down its requirements and format, and have Codex turn it into a Skill. 想一想你每周最重复、最花时间的那一件事,把要求和格式写清楚,让 Codex 帮你建成 Skill。

You don't have to do it all at once. But every step forward widens the gap between you and the people still copying and pasting by hand.不需要一次做完。但每往前一步,你和那些还在手动复制粘贴的人,差距就拉开一点。

Troubleshooting at a glance常见坑位速查

Symptom症状 Cause原因 Fix处理
Output never sounds right产出总是不合口味 No AGENTS.md — you improvise every time没写 AGENTS.md,每次都靠临场提示词 Put language, tone, format and principles into AGENTS.md把语言、语气、格式、工作原则写进 AGENTS.md
Same job, wildly varying quality同一件事质量忽高忽低 No Skill — the SOP lives only in your head没有 Skill,SOP 只在你脑子里 Freeze repeat work into a Skill, call it with /把重复的活固化成 Skill,用 / 调用
The chat gets messy, tasks collide对话越聊越乱、任务打架 Several tasks crammed into one context多个任务挤在同一个上下文里 Fork Chat to local; let each run its own lineFork Chat 分叉到本机,各走各的
Noticeably dumber on hard tasks做复杂任务时明显变笨 Effort set too low智慧等级 effort 设得太低 Raise it to High or Max调到「高」或「超高」
Video / image credits gone overnight视频、生图积分一夜烧光 The Agent has no cost model and fires tasks in parallelAgent 没有成本概念,会并行狂发任务 Write a Skill capping concurrency and clip count, or use a cheaper API / local model写 Skill 限制并发与片段数,或换便宜 API / 本地模型
App build stalls at previewApp 开发卡在预览 No Xcode, so no iPhone simulator没装 Xcode,没有 iPhone 模拟器 Install Xcode first, then ask it to deploy the preview先装 Xcode 再让它部署预览环境
Output files scattered everywhere产出文件到处乱放 No project — the AI employee has no desk没建 project,AI 员工没有办公桌 One project per job; put directory conventions in AGENTS.md一个工作一个 project,目录约定写进 AGENTS.md

Glossary术语表

AgentAn AI that does the work — reads and writes files, calls tools — not one that only answers会动手干活、能读写文件和调用工具的 AI,而不只是回答问题
ProjectOne job's folder and context boundary专案:一个工作的文件夹与上下文边界
AGENTS.mdThe onboarding handbook in the project root, read before every job放在项目根目录、开工必读的"入职手册"
SkillA frozen SOP that keeps output quality stable技能:把一套 SOP 固化下来,保证产出质量稳定
PluginWiring for external software — Gmail, Canva, GitHub…外挂:把外部软件接进来
EffortHow much thinking the Agent spends on this job智慧等级:Agent 为这件事愿意付出多少思考
SteerCourse-correcting a task while it's still running任务跑到一半时中途纠偏
Fork ChatBranch off the current chat, keeping all history before the split从当前对话分叉出一条支线,共享此前上下文
Plan ModePlan and research first, act second规划模式:先规划、先调研,再动手
CLI / API / MCPAll interfaces — ways to call external tools and models本质都是接口,用来调用外部工具与模型