r/ClaudeCoding • u/DutyOnly4308 • 6d ago
If you let Claude Code fact-check a web page, make it curl the page and grep the exact string. WebFetch gives it a summary
Small thing that bit me while building fact-checking into a Claude skill.
When Claude Code reads a page with WebFetch, the page doesn't come back raw: it goes through a summarising step, and in my tests verbatim quotes came back capped at 125 characters. That's fine for "what is this page about". It's not fine for "does the pricing page still say €29", because "verified" can quietly mean "a model paraphrased something close to it".
What I do now:
- Download the page:
curl -sL https://example.com/pricing -o /tmp/pricing.html - Search the literal string:
grep -o -E '.{0,60}€29.{0,60}' /tmp/pricing.html - Not in the raw HTML but visible in your browser? The value is rendered by JavaScript. Mark it "unverified", not "false", and check it in a real browser.
- Write one ledger line per claim: the claim, the URL, the exact string found, the date. That's what makes it re-checkable next month.
The line I put in CLAUDE.md:
When verifying a fact on a web page, do not rely on WebFetch. Download the page with curl, search for the literal string, and quote the matching line with the URL and today's date. If the string is not in the raw HTML, say so.
Disclosure: this is the core of Truth Serum, one of the 14 skills in a pack I sell (SEO Skills by PENRA; €25 until 25 December, then €99; needs a Claude plan with skills). It keeps the claims ledger and runs the raw-HTML checks on prices, versions, menu labels and dates before you publish: https://seoskills.click/skills/truth-serum?utm_source=reddit&utm_medium=post&utm_campaign=jv-boueoo
The CLAUDE.md line above gets you most of the way for free.
Has WebFetch ever "confirmed" something for you that wasn't actually on the page?