All videos

ENPNOVA AI · ·

Build a Self-Checking Research Agent (Claude Agent SDK)

Build a Self-Checking Research Agent (Claude Agent SDK)

Notes

Build a Self-Checking Research Agent (Claude Agent SDK)

Ask a chatbot how much energy one AI query uses and you get a confident number, sometimes one from 2023. So I built a research agent that has to prove every claim it makes. On its first try, its own checker rejected 5 of its 7 claims. By round three, all 7 passed, and every step left a receipt.

In this video:

  • the idea: a researcher agent, a checker agent that can only open the cited page (no searching), a plain Python loop of at most 3 rounds, and a hook that logs every tool call
  • the code that matters, built with the Claude Agent SDK
  • the real run, round by round: 2/7 → 4/7 → 7/7 claims passed, 28 tool calls, $1.25
  • the answer: about 0.24–0.34 Wh for a typical text prompt (company and analyst estimates, not independently verified)
  • why my first checker passed everything, and the two checks that fixed it

Sources