如何告知候选人代码被标记为AI生成,又不指责对方
别转发检测结果。邀请候选人现场讲解代码,坦承AI使用规则不清,询问用了哪些工具,并说明无论结果如何接下来会怎样。
- Better candidate experience
- Fairer hiring
- Less legal risk
2026年9月2日 · 6 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。
61%。在2023年斯坦福大学的一项研究中(Liang等人,91篇TOEFL作文),七款主流AI检测器把非英语母语者写的作文误判为机器生成的比例就是这么高。91篇作文里有89篇至少被一款检测器标记。这些是作文,不是代码,但道理相同:检测器给的分数只是一种猜测,而且最容易猜错的,恰恰是最没有能力申辩的人。
所以,当测评平台告诉你某份在家完成的作业"有87%的可能是AI生成"时,你接下来发出的那封邮件,比这个数字重要得多。
简短回答: 不要转发检测标记。给候选人写信时,就当什么都还没有定论,因为确实没有。邀请对方参加一次简短的现场通话,请他向一位工程师讲解自己的代码,并现场做一处小改动。如果你们的说明里从未写明允许使用哪些AI,就如实告诉对方,并承担这份责任。问对方用了哪些工具,明确说使用工具本身并不一定是问题,再说明回答"用了"或"没用"之后分别会怎样。最后这一点要先和用人经理谈妥:在我们的测试中,AI起草的邮件会自己编造这部分内容。然后,以通话结果为准,而不是看分数。
我们测试中最好的一封邮件,原文如下(由Claude根据下面的提示词生成):
Subject: Next step for your take-home: a 45-minute code walkthrough
Hi [ASK RECRUITER: candidate name],
Thank you for your take-home submission. Next, we would like to invite you to a 45-minute video call with [ASK RECRUITER: engineer name]. You will walk through your code so we can understand how you built it, and then make one small change live.
Our instructions said "Please complete this on your own," but they did not say whether tools like AI assistants were allowed. That was unclear, and that is our fault. Before the call, could you tell us in your own words which tools you used, if any? Using tools is not automatically a problem.
The engineer's feedback and the call will decide whether you move to the final interview.
If you would rather not do the call, just reply and tell us. We will close your application, and you are welcome to apply again in 6 months.
Please reply by [ASK RECRUITER: date] with times that work for you, or with any questions.
Best regards,
[ASK RECRUITER: your name]
我们给工具的案例
一位虚构的中级后端候选人,提交了一个小型Python REST API,在家用3天做成。检测工具给出87%。工程师的评语:代码很整洁,注释读起来像教程,错误处理比之前的现场筛选面试好得多。候选人的英语流利,但不是母语。测试说明里只写了一句"请独立完成"。
Gemini 3.8 Flash和一个没有任何背景信息的Claude Opus 5.5会话各自写了邮件:用一句话的普通请求写三次,用下面的提示词再写三次。
问题:草稿里写出了分数
普通请求("帮我写一封邮件,告诉候选人他的代码被标记为AI生成")让Gemini的3个回答全都出现了最糟糕的毛病:邮件告诉候选人,其代码"被标记为有87%的可能是AI生成"。百分比听起来像是证据,可谁也无从核实。
Claude的普通回答在每封邮件里都没提数字,但它的3份主要草稿中仍有2份告诉候选人,代码"被标记为可能由AI生成"。
解决办法: 邮件里绝不要出现检测工具、它的名称或它的数字。你约通话的理由是,你想了解他是怎么做出来的。
问题:草稿仅凭标记就提出拒绝
Gemini的3个普通回答全都附带了一封现成的拒信,标题类似"Firm Disqualification"(坚决淘汰):"鉴于此项标记及我们的测评规定,我们决定暂不继续推进您的应聘。"其中一份写着:"仅当贵公司将检测器标记视为自动淘汰理由时才使用。"忙到疲惫的招聘人员很可能直接复制。
Source: 我们的测试,Gemini 3.8 Flash和Claude Opus 5.5,由脚本统计
Show the data
| 犯了 | Total | |
|---|---|---|
| Gemini,普通请求:向候选人透露了87% | 3 | 3 |
| Claude,普通请求:向候选人透露了87% | 0 | 3 |
| Gemini,普通请求:仅凭标记就提出拒绝 | 3 | 3 |
| Claude,普通请求:仅凭标记就提出拒绝 | 0 | 3 |
| Gemini,第一版提示词:编造了“如果拒绝参加”的后果 | 3 | 3 |
| Claude,第一版提示词:编造了“如果拒绝参加”的后果 | 0 | 3 |
解决办法: 标记只是需要进一步查看的理由,绝不是决定。决定由人来做,而且是在现场通话之后。
问题:邮件自己编出后续安排
使用完整提示词时,其中要求对任何缺失的信息写上[ASK RECRUITER],Claude在3次运行中都把"如果您不参加"的后果留成了[ASK RECRUITER]。Gemini则3次都补上了,而且编出三种不同的说法:"不参加将视为您的申请结束"、"我们将撤销您的申请"、"不会影响您今后与我们的任何机会"。这些都不是我们给的。
解决办法: 邮件发出前,先和用人经理定好"如果拒绝参加"怎么办,并写进提示词。我们为此加了两行,还加了一条禁止说代码被标记的规则,然后把两个工具各再跑3次:6封邮件全部用了我们给的后果措辞,没有一封提到标记。不过有两封Gemini的邮件仍然夸了"周全的错误处理",而这正是存疑的细节。
问题:邮件读起来仍然带着怀疑
不错的草稿也会流露疑虑。Gemini的一封带提示词的邮件仍保留了"一项自动检查标记出可能存在AI辅助",尽管提示词明确要求不要暗示任何结论。Claude的一封以"我们的审查对代码的构建方式提出了一些疑问"开头,措辞客气,读起来仍像是"我们认为你作弊了"。
解决办法: 开头就讲下一步,以及它对双方的好处。测试中最好的一句来自Claude:"我们还没有做出任何决定。"
解决了大部分问题的提示词
PERSONA
You are a senior technical recruiter who writes calm, respectful emails to candidates. You never accuse anyone of cheating.
TASK
Write an email to a candidate whose take-home coding test was flagged by our assessment tool as possibly AI-generated. The goal is a fair next step, not a verdict.
CONTEXT
- Role: [role]. The test: [what it was, how long they had].
- What our test instructions said about AI: "[exact words]"
- What the tool reported: "[result]". We do not know how the tool decides, and it can be wrong.
- What the reviewing engineer noticed: [observations]
- [Anything else relevant, for example: The candidate's English in emails is fluent but non-native.]
- Our next step: [for example, a 45-minute video call where the candidate walks one of our engineers through the code and makes one small change live]
- If they do the call: [what happens next]
- If they decline the call: [what happens to the application]
Rules:
- Do not mention the percentage, the tool's name or the words "cheat", "dishonest", "violation" or "detected".
- Do not say that anything flagged the submission.
- Do not say or suggest we have concluded anything. Say what we will do next and why.
- Admit that our instructions about AI were not clear, if they were not.
- Ask the candidate to tell us, in their own words, which tools they used, if any, and say that using tools is not automatically a problem.
- Give a clear way to say no or ask questions, and say what happens to their application either way.
- If a fact you need is missing, write [ASK RECRUITER] instead of inventing it.
FORMAT
Subject line, then an email under 180 words. Then, separately, a list of 3 things the recruiter must NOT say on the follow-up call.
填入我们的场景后,第一轮的6封邮件全都承认说明不够清楚;Claude写道:"这一点说得不清楚,是我们的错。"在"不能说的话"清单里,Claude在3次运行中都提醒:拿代码注释和候选人的英语水平作对比,对非母语者不公平。Gemini只提到一次。

发送之前
- 先定好后果。 对方拒绝会怎样,通话之后又会怎样,这些由你决定,不由草稿决定。
- 通话才是真正的考核。 问"你为什么这样处理这个错误?",而不是"这是你写的吗?"在家有3天时间,和在限时的现场筛选里,人写代码的方式本来就不一样。
- 别拿英语水平来判断代码。 绝不要拿对方的代码注释去比他的邮件。
- 被标记的人一视同仁。 如果一位被标记的候选人得到通话机会,所有被标记的人都应该有。
- 为下次修正说明。 在测试说明里写清楚到底允许怎样使用AI。
- 法律。 仅凭检测器分数就拒绝某人,在一些地区可能有法律风险。这只是提醒,不构成法律意见,请就你招聘所在的每个国家向律师确认。
下一步: 如果你不是工程师,这些面试问题不需要懂技术栈也能用;对于看起来过于完美的简历,用这些核查方法代替检测器。
This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.


