逐日AI

面试题库

共 328 题,当前筛选 2 题。

Codex 与 OpenAI Agents SDK 高效使用

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

    分析过程 · 先想清楚再作答

    1. 这题考的是方法论而不是结论。上来就说「我觉得 X 好」会被判为没有工程判断;面试官想听的是你怎么让比较可复现。
    2. 先给维度:交代(写多少需求、准备多少说明文件)、审批(中断几次、为了什么)、验证(是否主动跑测试、红了怎么办)、成本(时间、token、钱)。这四项都能在自己的仓库里量出来。
    3. 再给可比性的前置条件:同一个起点 commit、同一段需求文字、说明文件同内容、默认权限、都要求跑完测试再汇报;有一项不同,差异就说不清来源。
    4. 然后是读数的顺序:先查可比性,再看结构性差异(权限模型、说明文件的位置与措辞导致的行为差别),最后才看能力差异,而且能力差异要多次运行取中位数。
    5. 落到团队沟通:报告里每一行差异都标「来自工作方式还是能力」,工作方式的差异靠配置弥补,能力差异才影响选型。
    6. 可预期的追问:榜单为什么不够?榜单测标准题,团队干的是有历史包袱的仓库里的改动,且榜单只给一个分数、不给四个维度。

    How to reason about it · think before answering

    1. This tests methodology, not a verdict; leading with 'I prefer X' signals weak engineering judgment. Show how you make the comparison reproducible.
    2. Give the dimensions: instruction effort (prompt and instruction-file size), approvals (how many interruptions and why), verification (does it run tests unprompted, what happens on red), cost (time, tokens, money). All are measurable in your own repo.
    3. State the preconditions for comparability: same starting commit, identical requirement text, identical instruction-file content, default permissions, and 'run tests before reporting' on both sides.
    4. Then the reading order: check comparability, then structural differences (permission model, placement and wording of rules), and only then capability differences, which need several runs and a median.
    5. For the team: label every differing row as 'workflow' or 'capability'; workflow gaps are closed by configuration, capability gaps drive the choice.
    6. Expect the follow-up: why not benchmarks? They score standard problems with one number, while teams change legacy repos and care about four dimensions.

    答题要点

    • 四个可量维度:交代、审批、验证、成本,全部在自己仓库里测
    • 可比性前置:同起点、同需求、同说明文件、默认权限、都要求跑测试
    • 读数顺序:可比性、结构性差异、能力差异;能力差异要多次运行取中位数
    • 每行差异标「工作方式还是能力」,前者靠配置弥补,后者才决定选型

    Key points

    • Four measurable dimensions: instruction effort, approvals, verification, cost, all measured in your own repo
    • Comparability first: same commit, same prompt, same instruction file, default permissions, tests required
    • Read in order: comparability, structural differences, then capability, with medians over several runs
    • Label each gap as workflow or capability; only capability gaps should drive the decision
  • 怎么评价一个 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

    分析过程 · 先想清楚再作答

    1. 这题考的是你有没有把「测试绿了」当终点。答「看测试」是及格线,区分度在测试之外。
    2. 拆成四层:正确性(测试是否覆盖了需求里的边界,比如 title 超长、done 传字符串)、契约(错误响应形状是否与需求一字不差,还是它自作主张改了)、范围(有没有改不该改的文件、有没有偷偷加依赖或改默认值)、可维护性(校验规则是否抽成常量、测试是否隔离、命名是否与仓库一致)。
    3. 再说怎么量:正确性看它写的测试之外你再补的反例能不能过;契约与范围看 diff 与需求逐条对照;可维护性交给第二家模型或人做结构化审查。
    4. 补一条随机性:单次结果不能下结论,同一需求跑三次看方差,方差大本身就是一个质量信号。
    5. 可预期的追问:它自己说「已完成并通过测试」能信吗?只信你能复现的部分——在你的机器上重跑测试、看 diff,agent 的汇报是线索不是证据。

    How to reason about it · think before answering

    1. This tests whether you treat green tests as the finish line; 'check the tests' is the pass mark, differentiation lies beyond it.
    2. Four layers: correctness (do the tests cover the requirement's edges such as overly long titles or a string for done), contract (does the error shape match the spec exactly or did it improvise), scope (did it touch forbidden files, add dependencies or change defaults silently), maintainability (constants extracted, tests isolated, naming consistent with the repo).
    3. How to measure: correctness by adding your own counterexamples beyond its tests; contract and scope by diffing against the requirement line by line; maintainability via a structured review by a second model or a person.
    4. Add variance: one run proves nothing; run the same requirement three times and treat high variance as a quality signal in itself.
    5. Expect the follow-up: can you trust its 'done, tests pass'? Only what you can reproduce; rerun tests and read the diff yourself, the agent's report is a lead, not evidence.

    答题要点

    • 四层:正确性、契约、范围、可维护性,测试绿只是正确性的一部分
    • 正确性用自己补的反例验证,契约与范围对照需求逐条看 diff,可维护性做结构化审查
    • 同一需求跑多次看方差,方差大本身是质量信号
    • agent 的汇报是线索不是证据,只信自己能复现的部分

    Key points

    • Four layers: correctness, contract, scope, maintainability; green tests cover only part of correctness
    • Verify correctness with your own counterexamples, contract and scope by diffing against the spec, maintainability via structured review
    • Run the same requirement several times; high variance is itself a quality signal
    • The agent's report is a lead, not evidence; trust only what you reproduce