Accuracy and methodology

We used 100 code snippets in a blind test. Human-written and AI-generated solutions addressed the same problems, with the source labels hidden during scoring.

Blind-test results

ModelAccuracyScope
gpt-6.2-sol96%Full 100-snippet blind test
Gemini90%Full 100-snippet blind test
deepseek-v4.1-flash88%Subset of the 100-snippet blind test
GPTSniffer (open source)54%Full 100-snippet blind test

Benchmark accuracy was 88–96% across three proprietary models on the 100-snippet blind test. Flash ran on a subset. These scores describe performance on that benchmark and do not measure confidence for any individual snippet.

Where Flash makes mistakes

False positives on human-written code
8%
Missed AI-generated code
16%
Detection of GPT-generated code
75%

The false-positive and miss rates describe different groups in the Flash test. GPT-generated code was a weaker part of that benchmark. Review the snippet and context before acting on a result.

What published studies found

Pan and colleagues found that detectors designed for natural-language text struggled with code. Suh and colleagues reported that the text detectors they evaluated mostly scored below 0.6 accuracy on source code.

How a check works

  1. We identify the language automatically or use the language you select, then apply your plan’s length limit.
  2. Flash estimates likely authorship from observable patterns such as naming, structure and comments.
  3. Sol automatically reviews estimates below 66 or with conflicting signals across all plans. When review runs, its estimate determines the verdict.
  4. The model’s label determines the direction. Confidence of 75 or higher gives a Likely verdict, and lower confidence gives a Possibly verdict.

We clamp model confidence to 50–100 before calculating AI probability. AI probability is the model confidence for an AI label and 100 minus that confidence for a human label.

We set the Uncertain band to 100 minus model confidence and subtract half of that amount from the AI probability and from 100 minus the AI probability to get the AI-written and Human bands, respectively.

This result is a probability estimate, not proof. Never use it as the sole basis for academic or employment decisions. Detection is probabilistic — always review the signals yourself before acting.

Try the code detector