Skip to main content

bibcheck-verify

bibcheck-verify is a tool for an initial reproducible check of scientific bibliographies. It compares each reference with metadata indexed by Crossref and OpenAlex and produces a report that helps identify strong matches, possible matches, and references that require manual review.

It does not determine on its own that a citation is fabricated. A reference may be correct but not indexed, or it may be written too incompletely to be recognized. The results are therefore a triage tool, not definitive proof.

Why it exists

Real bibliographies often come from PDFs, copied text, or documents with missing DOIs and metadata. Checking them one entry at a time is slow; relying on a language model for the judgment, on the other hand, can introduce fabricated details.

bibcheck-verify separates these two problems: extracting incomplete metadata can be assisted by a model, while the existence and matching of a work are evaluated by querying external bibliographic sources and comparing the results. This makes both interactive verification with an agent and repeated processing of many bibliographies through scripts, caching, and request limits possible.

Why this matters

The scale of the problem is illustrated by a 2026 audit published in The Lancet. The audit examined 2,471,758 biomedical papers published between January 1, 2023, and February 18, 2026, containing 125,615,773 structured references. Of these references, 97.1 million (77%) carried a PMID and were checked against bibliographic records; references to websites, books, and other grey literature were mostly excluded.

The authors identified 4,046 fabricated references across 2,810 papers. The reported rate increased from approximately one paper in 2,828 in 2023 to one in 458 in 2025, and one in 277 during the first seven weeks of 2026. The fabrication rate rose from about 4 per 10,000 papers in 2023 to 51.3 per 10,000 papers in the fourth quarter of 2025, reaching 56.9 per 10,000 papers in early 2026.

Their system compared claimed reference metadata with records from PubMed and Crossref, then used automated filters, an LLM review step, and additional checks against OpenAlex and Google Scholar. In a masked validation of 500 entries, the system had a reported precision of 91% (Fleiss’ κ = 0.71); the authors explicitly note that this estimates precision, not recall. The study also distinguishes fabricated references from reference errors, such as abbreviated titles that still correspond to a real publication.

This is the problem bibcheck-verify is intended to make easier to investigate at a smaller and inspectable scale: verify references against external records, preserve the queries and evidence, and send uncertain cases to human review. Its results should not be interpreted as a replication of the Lancet audit or as definitive proof that an unmatched reference is fabricated.

Two ways to use the project

The repository contains two related but distinct components:

  1. The standalone Python package: the bibcheck-verify program can be used from a terminal, script, or pipeline to check many bibliographies. It can also use an LLM provider through an API key as a fallback for extracting missing metadata.
  2. The bibcheck-verify skill: instructions for Hermes Agent, Claude Code, or compatible agents. The agent uses the session model to extract metadata, without a separate LLM API key, and then delegates verification to the Python bibcheck-verify command.

The skill does not contain a copy of the program. To use it, first install the Python package and then copy the .github/skills/bibcheck-verify/ directory to the agent’s local skills directory.

Package installation

Requirements:

  • Python 3.11 o successivo;
  • uv.

From the repository

This is the useful mode during development or before publishing to PyPI:

uv tool install .

To update the installation after a local change:

uv tool install --force .

Alternatively, to use the project without installing it globally:

uv run bibcheck-verify verify references.bib

From PyPI

Once the package is published, installation will not require downloading the repository:

uv tool install bibcheck-verify

For a single temporary run:

uvx bibcheck-verify verify references.bib

PyPI distributes the code and dependencies. It does not automatically receive the user’s bibliographies, reports, or API keys.

Standalone usage

The command accepts BibTeX, PDF, Markdown, and plain text:

bibcheck-verify verify references.bib
bibcheck-verify verify article.pdf
bibcheck-verify verify references.md --output-dir risultati

The format is recognized from the extension:

  • .bib: title, authors, year, DOI, journal, or proceedings are extracted;
  • .pdf: text is extracted with PyMuPDF;
  • other extensions: the file is treated as text or Markdown.

For text and Markdown, the parser looks for a References, Bibliography, or Bibliografia section. If it does not find one, it tries to interpret the entire file as a bibliography. PDF parsing is best effort; whenever possible, a BibTeX file produces more predictable results.

To see all options:

bibcheck-verify --help
bibcheck-verify verify --help

Example with the main options:

bibcheck-verify verify references.bib `
  --depth 1 `
  --sources openalex,crossref `
  --confidence-threshold 0.85 `
  --max-requests 2000 `
  --output-dir risultati `
  --mailto nome@example.org

--depth 0 checks only the provided references. With higher values, it can follow works cited by the verified publications and build a larger graph.

Usage with a skill

The skill is located in .github/skills/bibcheck-verify. To install it:

  1. install the bibcheck-verify command, from the repository with uv tool install . or from PyPI with uv tool install bibcheck-verify once it is available;
  2. copy the entire .github/skills/bibcheck-verify/ directory to the skills directory supported by your Hermes Agent or Claude Code installation;
  3. ask the agent to verify a PDF, Markdown, text, or BibTeX file.

The session model reads the bibliography and creates a temporary file with the title, authors, year, DOI, journal, and search query. The bibcheck-verify command reads the original file, applies that metadata, and queries Crossref and OpenAlex. The model proposes metadata; it does not decide whether a publication exists.

This mode does not require OPENAI_API_KEY, ANTHROPIC_API_KEY, or GEMINI_API_KEY. It does require network access to the bibliographic sources, and the bibcheck-verify command must be available in the agent’s PATH.

API keys and LLM fallback

Standalone usage can ask the program to extract incomplete metadata through an LLM provider. This is an optional fallback and does not replace verification against Crossref/OpenAlex.

$env:OPENAI_API_KEY = "..."
bibcheck-verify verify references.md --llm-provider openai

The openai, anthropic, and gemini providers are supported. Keys must remain in environment variables or a local .env file, never in the repository, reports, or metadata JSON file.

Results

The output directory bibcheck-verify-results contains:

  • summary.md: readable report for manual review;
  • graph.json: complete details, queries, sources, nodes, edges, and confidence;
  • cache.sqlite3: local resolution cache.

The main statuses are:

  • verified: verified match, including through an exact DOI;
  • verified_fuzzy: match accepted by fuzzy comparison;
  • low_confidence: possible match that is not sufficiently strong;
  • suspected_hallucination: no match found in the consulted sources.

suspected_hallucination is a triage label, not proof that the reference is fabricated. All uncertain cases require human review.

Project structure

bibcheck-verify/
├── src/bibcheck/                 # Internal Python module for the bibcheck-verify command
│   ├── cli.py                    # `bibcheck-verify` commands and options
│   ├── ingest/                   # BibTeX, PDF, and text parsers
│   ├── resolve/                  # Crossref, OpenAlex, fuzzy matching, and optional LLM
│   ├── graph/                    # citation graph cache and traversal
│   └── report/                   # Markdown and JSON output
├── tests/                        # automated package tests
├── .github/skills/bibcheck-verify/ # skill for compatible agents
│   ├── SKILL.md                  # agent operating instructions
│   └── README.md                 # manual skill installation
├── pyproject.toml                # metadata, dependencies, and console command
├── uv.lock                       # locked dependency versions
├── .env.example                  # local LLM configuration example
└── README.md                     # this guide

The bibcheck-verify-results* directories are results from local runs and are not part of the distributed package.

Development and testing

To prepare the repository environment:

uv sync --extra test
uv run python -m pytest

The distributable package is built with:

uv build

Artifacts are created in dist/. Before publishing to PyPI, it is advisable to check the wheel contents and test it in a clean environment or on TestPyPI.

Publishing to PyPI

Publishing is optional and is not required to use the project locally. In summary:

  1. create an account on PyPI and, preferably, a project-scoped token;
  2. run uv build;
  3. check the artifacts in dist/;
  4. upload to TestPyPI first;
  5. upload to PyPI using the token, without saving it in versioned files.

The bibcheck-verify distribution name must be available on PyPI. The installed package provides the bibcheck-verify command. The actual upload requires the owner’s credentials and is not performed by this repository.

Limitations

  • verification requires network access;
  • Crossref and OpenAlex may have incomplete or differing data;
  • the request limit may produce a partial result;
  • the cache may reuse previous resolutions;
  • no result replaces review of the original bibliography.

Metadata

Release files for bibcheck-verify 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bibcheck-verify 0.1.1
File Size Uploaded Provenance Actions
bibcheck_verify-0.1.1.tar.gz 41.1 kB With provenance Details for bibcheck_verify-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bibcheck-verify 0.1.1
File Interpreter ABI Platform Actions
bibcheck_verify-0.1.1-py3-none-any.whl Python 3 none any Details for bibcheck_verify-0.1.1-py3-none-any.whl

Total release size: 65.6 kB

Release files / bibcheck_verify-0.1.1.tar.gz

Download URL bibcheck_verify-0.1.1.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
36f0524703f1ea8dc68323d9529849671275603de54f8da5e55798770df6afbc
BLAKE2b-256 checksum
How to use checksums
374574884e29dde9a3caf25583e98cca6e827da85bf3f10bcec35d274e231d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / bibcheck_verify-0.1.1-py3-none-any.whl

Download URL bibcheck_verify-0.1.1-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed302f6da5cc050f13a759d5160524acdc69c6273a824aca676a721a1672b3f5
BLAKE2b-256 checksum
How to use checksums
99ddf1108df4a9ae4d5beddcdec2b882365db4c50ad0805bb63ac6fb6e8179c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Security for bibcheck-verify 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bibcheck_verify-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page