Skip to main content

recheck

Re-fetch every URL an AI looked at and check that the quotes in its answer still appear on the live page.

Built after stale cached copies of a changelog produced bad drafts: the model quoted a page that had already changed (or a cached snapshot that no longer matched production). recheck is meant to be called while an answer is still being written so those misses get flagged before anyone ships the draft.

30-second example

pip install recheck-ai
# or: pip install git+https://github.com/fitzyracing1/recheck

recheck https://fitzyracing1.github.io/x-algorithm-changelog/ \
  --quote 'VideoOpenWeight' \
  --quote 'this-quote-is-definitely-not-here-xyz'

The PyPI package is named recheck-ai because the name recheck is already taken. The commands remain recheck and recheck-mcp.

You should see the first quote marked found (✓, exact or compact, score 1.00) and the second marked missing (✗). Exit status is 1 whenever any source failed or any quote was not found; pass --json for a machine-readable report.

JSON input (what a bot should send mid-answer):

recheck examples/sources.json
recheck examples/sources.json --json
[
  {
    "url": "https://fitzyracing1.github.io/x-algorithm-changelog/",
    "quotes": ["VideoOpenWeight", "this-quote-is-definitely-not-here-xyz"],
    "snapshot_hash": "optional-sha256-of-the-body-you-already-fetched",
    "fetched_at": "2026-11-26T08:00:00Z"
  }
]

snapshot_hash is the SHA-256 hex digest of the raw response body (optionally prefixed with sha256:). If you pass one and the live body hashes differently, the source is flagged changed even when the quotes are still present.

Statuses

Status Meaning
ok Fetched, optional snapshot matches
changed Fetched, but snapshot_hash does not match the live body
gone HTTP 404 or 410
blocked HTTP 401, 403, 407, or 429
timeout The request exceeded --timeout (default 15s)
error Other network or HTTP failures

Each quote is checked against the live body after normalizing whitespace and case. If that misses, a compact alphanumeric comparison runs (so Video Open Weight still matches VideoOpenWeight). If that also misses, a windowed fuzzy score is reported; scores at or above --fuzzy-threshold (default 0.8) count as found.

MCP

A tiny stdio MCP server is included so any bot can call this mid-answer. It has no dependency beyond httpx.

recheck-mcp
# or: python -m recheck.mcp_server

The server exposes one tool, recheck_sources, with the same JSON shape as the CLI. Point your MCP client at the recheck-mcp command on stdio.

Example Cursor / Claude-style config:

{
  "mcpServers": {
    "recheck": {
      "command": "recheck-mcp"
    }
  }
}

Library

from recheck import SourceInput, recheck_sources_sync

report = recheck_sources_sync([
    SourceInput(
        url="https://fitzyracing1.github.io/x-algorithm-changelog/",
        quotes=["VideoOpenWeight"],
    )
])
print(report.ok, report.to_dict())

Async callers can await recheck_sources(...) instead.

Install / develop

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

Requires Python 3.11+.

Limits (v0)

  • Fetches the raw HTTP response. It does not execute JavaScript, so quotes that exist only in a client-rendered app will look missing.
  • Bodies are capped at 5 MB.
  • snapshot_hash is a hash of the raw bytes. Pages with dynamic ads, timestamps, or CSRF tokens will show up as changed even when the quoted text is unchanged.
  • Fuzzy matching samples windows on long pages, so it can miss a near-match or report a softer score than a full scan.
  • No cookies, auth, or robots-txt handling. This is a verifier for URLs the model already opened, not a crawler.
  • Concurrent fetches are capped (default 8) so a long source list cannot hammer a site.

License

MIT.

Metadata

Release files for recheck-ai 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 recheck-ai 0.1.1
File Size Uploaded Provenance Actions
recheck_ai-0.1.1.tar.gz 17.7 kB Without provenance Details for recheck_ai-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recheck-ai 0.1.1
File Interpreter ABI Platform Actions
recheck_ai-0.1.1-py3-none-any.whl Python 3 none any Details for recheck_ai-0.1.1-py3-none-any.whl

Total release size: 33.3 kB

Release files / recheck_ai-0.1.1.tar.gz

Download URL recheck_ai-0.1.1.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
908e96caf1d73241008af5213dea21191f596a7ae26fcf5cf23cda0c9cb9d728
BLAKE2b-256 checksum
How to use checksums
43373217a395f62bcdbaaba93f9406b1be6ae3fc247887c18102b951696c5201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

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

Download URL recheck_ai-0.1.1-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64f9d2d4d224e22e47ca20aee3530e809b9c4f1e83f78bff39b1499325a4db83
BLAKE2b-256 checksum
How to use checksums
92b374de675d8303d30495e251debb13aa0168c43958bd27a520b0e84b7a0cda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for recheck-ai 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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