Detecting code written by Claude, ChatGPT, Codex or Gemini
People rarely search for "an AI code detector". They search for the tool they suspect: a Claude code detector, a ChatGPT code detector, something that catches Codex or Gemini. This page answers that search honestly. Detecting that code is AI-written is practical; naming the exact model behind it is not reliable, from Codequiry or anyone else. What follows is what detection establishes, why attribution fails, and the habits each tool tends to leave that a careful reviewer can read.
Checks every file against classmates, the web and AI, in 65+ languages.
What AI code detection can establish
Codequiry's AI detection is trained on source code and is built to flag code generated by GPT models (the family behind ChatGPT and Codex), Claude, Gemini, Copilot, Grok and other large language models. For each file it reports:
- a likelihood that the file is AI-written,
- a reading, such as "Likely AI-generated" or "Likely human-written",
- the reasons behind the result, and the line ranges that drove it.
It does not report which model wrote the file. That is a deliberate limit, not a missing feature: the next section explains why a confident model name would usually be a guess.
Why naming the model is unreliable
- The models learned from much the same code. Public repositories, documentation and Q&A sites are common to all of them, so they converge on the same conventions.
- They change constantly. Each release shifts a model's habits. A fingerprint learned from last quarter's ChatGPT may describe this quarter's Gemini better.
- Output is shaped by the prompt. "Write it simply", "add comments", "use type hints" or a project's style rules change the code more than the choice of model does.
- Output is edited. Most submitted code has been run, fixed, renamed and reformatted after generation. Edits erase the faint differences between models long before they erase the broader signs of generation.
- Tools mix models. Editors and agents such as Cursor and Copilot can route requests to models from several vendors in a single session.
Be cautious of model attribution. A tool that reports "87% Claude" is presenting a guess with false precision. If a decision would rest on which model wrote the code, it needs evidence a detector cannot supply, such as tool logs or the author's own disclosure.
Habits each tool tends to leave
Experienced reviewers do notice tendencies. They are worth knowing as things to look at, provided they are read as tendencies: they overlap between tools, vary with the prompt and the release, and none of them identifies a model on its own.
| Tool | How it is usually used | Tendencies reviewers report |
|---|---|---|
| ChatGPT | Chat: a task is pasted in, a complete answer copied out | Step-by-step comments, an "Example usage" block at the end, generic names such as data and result, leftover explanatory phrasing |
| Claude | Chat, and Claude Code as an agent in a repository | Thorough, well-structured files, descriptive names, comprehensive error handling, comments that explain why; as an agent, multi-file changes with tests and documentation |
| Gemini | Chat, and assistants in editors and cloud tools | Comments stating assumptions about the input, explanatory notes around the code, conventional structure |
| OpenAI Codex | Agent: works on a repository from an instruction | Changes delivered as complete pull-request-sized units, tests added alongside, descriptive commit or change summaries |
| GitHub Copilot | Inline completion, plus chat and an agent mode | Generated lines mixed into the author's own code, completions that follow a comment line, the author's naming continued |
Notice that what separates the rows most clearly is how the tool is used, not which model is behind it. That is the more useful distinction in practice.
Chat, completion and agents leave different evidence
Chat answers
Whole files in one consistent voice. File-level AI detection is at its strongest here. See how to tell if code is AI generated.
Inline completion
Generated lines inside the author's own structure, so results are mixed and the flagged line ranges matter more than the file score. See detecting Copilot and Cursor code.
Agents
Claude Code, Codex and similar agents change many files at once. Check the whole repository and its history. See the vibe coded app checker and detecting vibe coding.
Edited output
Any of the above, reworked by hand. Signals fade; the author's ability to explain the code becomes the main evidence.
When the model actually matters
Most integrity and review rules care whether AI was used, and whether it was disclosed, not which vendor's model was involved. There are exceptions:
- A course or employer that licenses one assistant and permits only that one.
- Data rules that forbid sending code or data to particular providers.
- Licence or contract terms attached to the output of a particular service.
In each case, the evidence should come from where the model is actually recorded: the author's disclosure, the organisation's tool logs, the agent's session history, or configuration files in the repository such as CLAUDE.md, AGENTS.md or .github/copilot-instructions.md. Those show a tool was used. A detector's guess at the model does not.
How to check code from any of these tools
- Upload the files or a ZIP on the home page and include AI detection.
- Add the web, GitHub and Stack Overflow search if reproduced public code is a concern; models sometimes reproduce well-known solutions.
- Read each file's likelihood, reasons and flagged lines. Ask whether the reasons hold for this code.
- Compare with the author's earlier work and look at the history if there is one.
- Ask the author to walk through and change the code. That settles more cases than any score.
Check for AI-written code
Code from ChatGPT, Claude, Codex, Gemini, Copilot and other models, flagged per file with reasons.
Results are likelihoods, not proof, and honest code is sometimes flagged; see AI detection false positives and how AI detectors work. Language-specific habits are in the guides for Python, Java, JavaScript and C and C++.
Frequently asked questions
Can you detect code written by Claude?
You can detect that code is likely AI-written, and Claude's output is among what Codequiry's detector is built to flag. Telling Claude apart from ChatGPT or Gemini with confidence is a different and much harder problem, because the models' code habits overlap and change with every release.
Is there a ChatGPT code detector?
Yes, in the sense that AI code detectors flag code generated by GPT models along with other large language models. Codequiry reports a likelihood that each file is AI-written, with reasons and the flagged lines. It does not claim to name the model.
Can an AI detector tell which model wrote the code?
Not reliably, and be cautious of any tool that says it can. Models are trained on overlapping data, imitate the same conventions, are updated often, and their output is usually edited before it is submitted. Attribution from style alone produces confident-sounding guesses.
What is OpenAI Codex?
Codex is OpenAI's coding agent, which works on a repository from instructions, writing and changing code across files and running tests. The name was also used earlier for an OpenAI code model. Agent-written work is best assessed at the repository level as well as file by file.
Does Codequiry detect Gemini and Copilot code?
Codequiry's AI detection is built to flag code generated by GPT models, Claude, Gemini, Copilot, Grok and other large language models. Copilot's inline completions mix with the author's own code, so results on Copilot-assisted files tend to be more mixed.
Does it matter which model wrote the code?
Rarely. Most rules concern whether AI was used and disclosed, not which vendor. Where a policy allows one tool, such as an institution-licensed assistant, but not others, the evidence should come from disclosure and tool logs rather than from a detector.
Find AI-written code, whichever model wrote it
A likelihood, reasons and flagged lines for every file, in the same check as the plagiarism search.
Start a check Pay as you go with credits. Comparing files is free.