Urgent.News

What's breaking now, across thousands of outlets.

AI

I Spent 8 PRs Fixing My AI Fact-Checker. Then I Deleted All 12,852 Lines.

I asked AI to check AI. It cost more, caught nothing, and broke good articles. I run a few product sites where AI writes the articles. Power stations, gear, that kind of thing. The articles go straight into the site's Git repo as MDX. Product articles have one job. Get the specs right. Battery capacity. Number of ports. Charge time. One wrong number and the article is useless. Worse, it's…

The AI fact-checker the author built for product article generation was a costly and ineffective solution. After spending eight PRs on refining the checker, it kept blocking good articles with false alarms. The author eventually deleted the checker, noting that it caught no real errors and broke more than it fixed.

The problem stemmed from the fact-checker analyzing web research to validate claims, which often led to incorrect results. The author realized the inefficiency of the system, as it was actually costing more to research data than the fact-checker could find. Moreover, most of the data the checker found was already present in the product catalog.

The author then implemented a simpler solution: removing the numbers that AI wrote from the articles and sourcing them directly from the product catalog. The article content then referenced variables, which pulled the correct data from the catalog on save, preview, export, and push. This approach eliminated the need for the AI to generate numbers and reduced errors.

The author also noted that while the AI check did find five real mistakes in a catalog check, it exposed more edge cases, making the solution even more complex. They decided to only run a one-time catalog check when importing a new catalog and have humans review the differences.

In summary, the author concluded that it was worth it to implement the AI fact-checker as it made the product feel safer and actually improved accuracy. However, the final diff showed that the change resulted in more lines of code being removed than added, leading to lower bills and safer articles. The author advises that the LLM should only write facts that are not directly sourced from data, and make it impossible for the AI to get facts wrong by ensuring the data is the source of truth.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

osFoundry 如何在磁碟上找到你的 Claude Code 和 Codex 工作階段,用 Python 重做一遍

~/.claude/projects/-Users-alex-code-shop-api/c5e1a7b2-9d40-4f3e-8b16-2a7c0e9d4f58.jsonl ~/.claude/projects/-Users-alex-code-shop-api/c5e1a7b2-9d40-4f3e-8b16-2a7c0e9d4f58/subagents/agent-<id>.jsonl…

  • Claude Code and Codex sessions stored as JSONL files on disk
  • Session files contain attributes like type, sessionId, cwd, gitBranch, timestamp, version
  • Python script efficiently extracts required fields from sessions without parsing entire files

在同一份 Note 裡,osFoundry 如何避免 Claude 的編輯蓋掉別人的編輯?

這是 Claude 對話在 osFoundry Notes 上可以用的寫入工具,內容取自公開 MCP endpoint 的列表。資料是 2026-11-06 用未驗證的 tools/list 抓下來的,只保留跟本文有關的欄位: { "name" : "edit_note_tab" , "description" : "Use an exact tab ID and version from…

  • osFoundry's Note tab prevents Claude's edits from overwriting others.
  • Required fields: noteid, tabid, expectedversion, idempotencykey.
  • Operation type determines action: replacetext, replacetabdata, etc.

More from Saturday 7 November →