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.0

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.0
File Size Uploaded Provenance Actions
recheck_ai-0.1.0.tar.gz 17.6 kB Without provenance Details for recheck_ai-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.2 kB

Release files / recheck_ai-0.1.0.tar.gz

Download URL recheck_ai-0.1.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32e5f25fe950c29899dfc9774ac4ba8bace8d1f8ecab6d492db5bff98a9d7c41
BLAKE2b-256 checksum
How to use checksums
060fcb05b5b671ba9233ae66155920abedd08cb3e367ad6d7d46b12adced08a4
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.0-py3-none-any.whl

Download URL recheck_ai-0.1.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
914d488445b47136fb9fd1229c7403d81e1d37990994f347cdbc22248bff2c77
BLAKE2b-256 checksum
How to use checksums
08ca74bcc2b6fe84dd75c54439f310a5fd2623cdbed79e6f942dfe73be6374ac
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.0

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.0 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