Get AI research as a claim-and-URL table, then check the links
Ask an AI for a tab-separated table of claims, URLs and verbatim quotes, then use curl to catch dead links and grep -F to confirm each quote is on the page.
An AI research answer in paragraphs hides which sentence came from which source. A table with one claim, one URL and one verbatim quote per line can be checked by machine, line by line. Paper DOIs are covered in Check an AI's references against Crossref; this one handles ordinary web URLs.
[1] Ask for a fixed format (the English text below is a translation; the run used the Korean prompt in the Korean version of this post). Tab-separated columns, and quotes copied exactly, or grep -F will not match. Letting the model write NONE for claims it could not check cuts down on invented URLs.
Research the transport protocol HTTP/3 uses and answer with 5 claims as a tab-separated table only. No text outside the table.Columns: number<TAB>claim<TAB>evidence URL<TAB>verbatim English quote from that page (one line, under 60 characters, do not change a single character)Rules: give URLs you remember, but do not use tools. Do not quote text that is not on the page. Put NONE in the URL column for claims you could not verify.[2] Send it with claude -p and save the answer. The first line is the header row.
$ claude -p --model sonnet --max-turns 3 --tools "" < prompt.txt > table.tsv$ cat table.tsv번호 주장 근거 URL 원문 인용1 HTTP/3는 HTTP 의미 체계를 QUIC 전송 프로토콜 위에 매핑한다 https://www.rfc-editor.org/rfc/rfc9114 a mapping of HTTP semantics over QUIC2 QUIC의 핵심 전송 프로토콜은 RFC 9000에서 정의된다 https://www.rfc-editor.org/rfc/rfc9000 the core of the QUIC transport protocol3 QUIC 패킷은 UDP 데이터그램에 실려 전달된다 https://www.rfc-editor.org/rfc/rfc9000 QUIC packets are carried in UDP datagrams4 QUIC는 TLS를 사용해 연결을 보호한다 https://www.rfc-editor.org/rfc/rfc9001 how Transport Layer Security (TLS) is used to secure QUIC5 QUIC는 HTTP에 유리한 스트림 다중화와 스트림별 흐름 제어를 제공한다 https://www.rfc-editor.org/rfc/rfc9114 stream multiplexing, per-stream flow control[3] Test whether each link opens. -I fetches headers only, -L follows redirects, and -w prints just the final status code.
$ curl -sIL -o /dev/null -m 15 -w '%{http_code}\n' https://www.rfc-editor.org/rfc/rfc9000200$ curl -sIL -o /dev/null -m 15 -w '%{http_code}\n' https://www.rfc-editor.org/rfc/rfc99999404$ curl -sIL -o /dev/null -m 15 -w '%{http_code}\n' https://quic-spec.example.invalid/rfc000[4] Look for the quote in the page body. Fetch the page, strip tags, squeeze whitespace to single spaces, then search with grep -F. -F treats characters such as ( literally instead of as regex syntax.
$ curl -sL -m 30 https://www.rfc-editor.org/rfc/rfc9000 | sed 's/<[^>]*>/ /g' | tr -s '[:space:]' ' ' | grep -oiF "QUIC packets are carried in UDP datagrams"QUIC packets are carried in UDP datagrams[5] Wrap both checks in one script that walks the table. It reads the status code first and only downloads the body on a 200.
#!/bin/bash# usage: ./check-claims.sh table.tsv (columns: no, claim, URL, quote; tab-separated; first line is a header)tail -n +2 "$1" | while IFS=$'\t' read -r no claim url quote; do code=$(curl -sIL -o /dev/null -m 15 -w '%{http_code}' "$url") if [ "$code" != 200 ]; then echo -e "$no\t$code\tFAILED"; continue; fi page=$(curl -sL -m 30 "$url" | sed 's/<[^>]*>/ /g' | tr -s '[:space:]' ' ') if printf '%s' "$page" | grep -qiF -- "$quote"; then r=FOUND; else r=MISSING; fi echo -e "$no\t$code\t$r"done[6] Run it. All five rows of the table from step 2 passed. The script printed Korean labels (있음 / 없음 / 열림 실패) in the run; they are shown here as FOUND / MISSING / FAILED.
1 200 FOUND2 200 FOUND3 200 FOUND4 200 FOUND5 200 FOUNDA run where everything passes does not show that the script rejects anything, so break the table on purpose. Row 2 has a sentence that is not on the page, row 3 an RFC number that does not exist, row 4 a domain that does not exist.
1 200 FOUND2 200 MISSING3 404 FAILED4 000 FAILED| Output | Meaning | Next |
|---|---|---|
200 · FOUND | Page opens and the quote is in the body | Read whether the quote supports the claim |
200 · MISSING | Page exists but the phrase is not in it | Reworded or invented. Open the page and check |
| not 200 · FAILED | 404, 000, 403, 405 and so on | Dead link or a bot block. Try a browser, then decide |
[7] A person still has to read three things. The script only guarantees that the phrase appears in the body of that URL.
- Whether the quote supports the claim.
the core of the QUIC transport protocolis in RFC 9000, but only the surrounding text shows whether it proves "QUIC's transport protocol is defined in RFC 9000". - The quality of the source. These URLs are all RFC originals; a table pointing at blog posts can pass and still be weak evidence.
- Pages that fill their text with JavaScript.
curlgets an empty shell and reports MISSING. Check those by hand.