New Tool Radar

AI Research & Fact-Checking

How to Check Whether Code an AI Answer Says Is Available Is Actually in the Repository

Open the linked repository and look for the code files before you repeat that code is available.

Schematic diagram: an AI answer says code is available in the linked repository, while the repository contains only a README with no code files; the verdict is Wrong.

‘Code available on GitHub’ can mean a complete, tagged release — or an empty repository with a README and nothing else. An AI answer rarely distinguishes the two, and a reader who follows the link finds out too late.

A usable code citation needs the same elements as any citation: the exact version, the repository, and a persistent identifier such as a version DOI. A repository link alone does not show that the code is there, runnable, or the version the paper used.

Use the practice code

The code below is synthetic. It is about a fictional code, and it was not produced by any AI tool. It is the only source for the exercise. No AI tool was run for this guide (UNTESTED).

Practice paper — ‘Code available at github.com/northfield/tidefit’ (synthetic):

  • AI answer: ‘The code is available in the linked repository.’
  • Repository exists: github.com/northfield/tidefit.
  • Contents: one README file only. No code files, no release, no licence.
  • Last commit: 2023. The paper was published in 2025.

Practice AI answer: “The code is available at github.com/northfield/tidefit.”

Check the claim against the source

Expected result. We checked the sources listed below. We did not run an AI tool on the practice code. The checked list below is what to expect if the claim is correct; run the same check yourself on the code above.

Item checked AI answer says Correct value Verdict
Repository exists? yes yes Correct
Code files present? yes no — README only Wrong
Release tagged? yes none Wrong
Last commit not stated 2023 Unclear — stale for a 2025 paper

A link is not availability

The repository exists, which is why the claim passes a casual check — but it contains no code. There is nothing to download, no release to cite, and no version to reproduce the paper’s analysis with. ‘Available’ must mean the files are there and retrievable; a link to an empty repository is a broken promise, not availability.

To check code yourself, open the repository, list its files, and look for the code, a release tag, a licence, and a recent commit. Then check whether the paper’s data-availability or code-availability statement names a version DOI, and follow that DOI to the archived copy.

What to do with each verdict

  • Code, release, and version DOI present: keep the citation and use the version DOI.
  • Repository empty or stale: say the code could not be found, and do not describe it as available.
  • Code present but no version: record the commit hash and date, and say the version is not tagged.

Limits

  • This guide checks that code is present and retrievable. It does not run the code or check that it reproduces the paper’s results.
  • Some code is available on request rather than in a public repository. Record the exact access route stated in the paper.
  • No AI tool was run for this guide. The practice repository is synthetic.

Related check: How to check the related field in an AI citation.

Sources

See all