The short answer
You cannot tell who wrote code by reading it. You can tell how it got into the editor, if every edit is kept. ProctoHire cannot tell who wrote the code.
Why reading the code does not work
An AI assistant writes clean, ordinary code. So do good engineers. There is no reliable way to look at a finished answer and say who wrote it. Tools that claim to do this accuse careful people and miss careless ones.
The useful question is a different one. Not "who wrote this?" but "how did it get into the editor?" Code that was typed leaves a trail of small edits. Code that was pasted arrives all at once. That difference is a fact you can show a candidate.
What a typed answer looks like
Watch a real person solve a problem and you see the same things every time:
- short bursts of typing, a few characters at a time
- pauses to think
- mistakes, then corrections
- a line written, deleted and written again
- the answer growing from the top down, or from the inside out
A coding test that logs every edit keeps all of this. In ProctoHire each change to a code or written answer is kept with its time, so a reviewer can replay how the answer was written.
What a pasted answer looks like
One edit. Hundreds of characters. No pauses and no corrections before it.
Do not rely on the paste event
The usual check asks the code editor whether an edit was a paste, and the editor does not always say.
When the report is missing, pasted code looks exactly like typed code to everything that reads the log afterwards.
Count what each edit really added
The fix is to stop asking and start measuring. ProctoHire's server replays the edits and rebuilds the answer after each one. That shows how many new characters every edit added.
A large block of new text that arrived in one go is flagged as "Code inserted, not typed", at 25 points by default. Auto-indent, closing brackets and tab completion do not add enough to count.
Can a test detect AI prompt pasting?
Not directly: the chatbot is outside the test. What the test sees is the answer coming back. On ProctoHire, a paste of outside text into an answer is recorded, in every browser the test runs in, and a large block of new text that arrived in one go is flagged after the test, even when the browser never reported a paste. When a candidate leaves the test tab, the moment is recorded, with a short clip of the screen on a test that shares it.
Four things that are not cheating
Counting characters alone accuses honest people. None of these four is a finding.
- Re-formatting. Undo, redo and auto-format make the editor send the whole answer again. That is not counted as new text.
- Cut and paste of your own work. Text that matches what you deleted earlier on the same question is not counted.
- Duplicating a block. Text already in the answer above is not counted.
- Moving your own text between questions. Text you typed in another question of the same test is not counted.
When a guard explains a large insertion, that is kept too. The reviewer sees the moment the block appeared and reads why it is not a finding.
Other signals worth keeping
No single signal proves anything. Together they tell a story.
- Tab switches. Leaving the test just before a large insertion is the classic pattern.
- Time on a second screen. Long stretches with the test unfocused while a second display is connected (Chrome and Edge report it).
- Matching answers. A reviewer can open Answer similarity on a sitting to compare its longer code and written answers with other candidates' answers to the same questions, and read two matching answers side by side. It is a check a person runs, and it takes no points off by itself.
- The desk. A phone beside the keyboard, seen by a second camera.
What to do with a finding
- Look at it. Open the replay at the moment of the insertion and read the code just before and after it.
- Read the guard notes. If a large insertion was cleared, the reason is written there.
- Ask the candidate. In the interview, ask them to walk through the answer and change one thing. Someone who wrote it can. Someone who pasted it cannot.
- Decide as a person. A finding is a reason to look, not a reason to reject.
Design questions for the AI era
You cannot stop a candidate owning an AI assistant. You can ask questions where pasting its output is not enough.
- Give starter code and ask for a change to it. A generic answer from outside will not fit.
- Ask for a small extension after the first answer works.
- Ask why. One written question: "why this approach and not the obvious one?"
- Keep the follow-up interview. Ten minutes on the candidate's own answer tells you more than any detector.
Summary
- You cannot tell who wrote code by reading it.
- You can tell how it arrived, if every edit is kept.
- Measure what each edit added. Do not trust the editor's paste event.
- Clear the innocent cases, and show the reviewer why.
- Let a person decide, after asking the candidate.
Common questions
How do you detect AI-generated code? By how it arrived, not by how it reads: a typed answer leaves a trail of small edits, and a pasted one arrives in one go. ProctoHire keeps each change to a code or written answer with its time.
Can you detect pasted code in a coding test? Yes, on ProctoHire: a paste of outside text is recorded, and a large block that arrived in one go is found after the test even when the browser never reported it.
Is a paste always cheating? No. On ProctoHire, moving your own text, or text the question gave you, is not flagged, and a paste of your own text or of one character is not charged.
The points ProctoHire charges for each event are on proctoring and the evidence behind every flag. Coding tests are on developer screening, and how to set one up is in how to set up a proctored coding test.
See it on your own test
In ProctoHire a large block of code that arrived in one go is flagged as “Code inserted, not typed”, and a reviewer can replay how each coding answer was written, edit by edit.
Start free trialWatch the film (1:45)
14 days, every feature, no card.