Codex 与 OpenAI Agents SDK 高效使用
课程题库 · 15 / 15 道题
D1 Codex CLI 入门:安装、AGENTS.md、审批模式与沙箱、常用命令
给 coding agent 写的项目说明文件(比如 Codex 的 AGENTS.md)应该写什么、不该写什么?为什么它要有大小上限?What belongs in a project instruction file for a coding agent (such as Codex's AGENTS.md), what does not, and why is there a size limit?
国内高频海外高频基础#coding-agent#context#agents-md🔒 解锁 D1 后查看答题要点。
Codex 把「什么时候问用户」和「能碰到什么」拆成 approval_policy 和 sandbox_mode 两组独立开关。为什么要拆?各自解决什么问题?Codex splits 'when to ask the user' and 'what can be touched' into two independent settings, approval_policy and sandbox_mode. Why separate them, and what does each solve?
国内高频海外高频进阶#coding-agent#security#sandbox🔒 解锁 D1 后查看答题要点。
你要在团队里引入一个能在本地执行命令的 coding agent,怎么向不放心的同事解释它的风险边界?You want to introduce a coding agent that runs commands locally. How do you explain its risk boundary to skeptical teammates?
国内高频海外高频进阶#coding-agent#security#communication🔒 解锁 D1 后查看答题要点。
D2 Codex 进阶:云端任务、代码审查、MCP 接入、自定义指令、IDE 集成
云端 coding agent 能同时跑很多任务,但没有人在旁边点头。它的审批边界应该画在哪里?A cloud coding agent can run many tasks in parallel with nobody around to approve steps. Where should its approval boundary sit?
国内高频海外高频进阶#coding-agent#cloud#approvals🔒 解锁 D2 后查看答题要点。
让同一个模型既写代码又审代码,审查还有意义吗?怎么让审查更独立?If the same model both writes and reviews code, is the review still meaningful? How do you make it more independent?
国内高频海外高频进阶#code-review#coding-agent#workflow🔒 解锁 D2 后查看答题要点。
MCP server 和 skill 都是在给 coding agent 加能力,什么时候该用哪一个?项目说明文件又放什么?MCP servers and skills both extend a coding agent. When do you reach for each, and what goes in the project instruction file instead?
国内高频海外高频基础#mcp#skills#coding-agent🔒 解锁 D2 后查看答题要点。
D3 Responses API 与内置工具:函数调用、web search / file search / computer use、结构化输出
Responses API 和 Chat Completions 的区别是什么?从 Chat Completions 迁移过去最容易踩什么坑?How does the Responses API differ from Chat Completions, and what are the common pitfalls when migrating?
国内高频海外高频基础#responses-api#openai#migration🔒 解锁 D3 后查看答题要点。
平台内置的工具(web search、file search、computer use)和自己写的函数工具,各适合什么场景?为什么 computer use 要单独对待?When do you use platform built-in tools (web search, file search, computer use) versus your own function tools, and why does computer use deserve special treatment?
国内高频海外高频进阶#tools#responses-api#security🔒 解锁 D3 后查看答题要点。
结构化输出的 strict 模式解决了什么问题,没解决什么问题?拿到输出之后代码里还要做什么?What does strict mode in structured outputs solve, what does it not solve, and what must your code still do after receiving the output?
国内高频海外高频进阶#structured-output#responses-api#validation🔒 解锁 D3 后查看答题要点。
D4 OpenAI Agents SDK:agents、handoffs、guardrails、sessions、tracing
什么时候该把一个 Agent 拆成多个、用 handoff 交接?什么时候「一个大 Agent 加很多工具」反而更好?When should you split one agent into several connected by handoffs, and when is a single agent with many tools the better design?
国内高频海外高频进阶#agents-sdk#handoffs#architecture🔒 解锁 D4 后查看答题要点。
guardrail 应该放在输入侧还是输出侧?各自的成本、能拦住什么、拦不住什么?Should guardrails sit on the input side or the output side? What does each cost, what does it catch, and what slips through?
国内高频海外高频深入#agents-sdk#guardrails#safety🔒 解锁 D4 后查看答题要点。
Agents SDK 的 session 和 Responses API 的 previous_response_id 都能记住多轮,怎么选?tracing 在这里起什么作用?Both Agents SDK sessions and the Responses API's previous_response_id remember multi-turn state. How do you choose, and what role does tracing play?
国内高频海外高频进阶#agents-sdk#sessions#tracing🔒 解锁 D4 后查看答题要点。
D5 Claude 与 Codex 选型与协作:同一任务双工具实测对比、一个写一个审的混用工作流
团队要在两家 coding agent 之间选一个,你怎么给出一套可以向团队解释、也能被验证的对比维度?Your team must pick between two coding agents. How do you propose a comparison that teammates can both understand and verify?
国内高频海外高频进阶#coding-agent#evaluation#decision-making🔒 解锁 D5 后查看答题要点。
「一家写、另一家审」的混用工作流收益在哪?什么情况下不值得?Where does the 'one vendor writes, the other reviews' workflow pay off, and when is it not worth it?
国内高频海外高频进阶#code-review#workflow#coding-agent🔒 解锁 D5 后查看答题要点。
怎么评价一个 coding agent 这次任务的输出质量,而不只是看它跑没跑通?How do you judge the quality of a coding agent's output on a task, beyond whether it ran?
国内高频海外高频深入#coding-agent#evaluation#quality🔒 解锁 D5 后查看答题要点。