
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
- Google Cloud, “Measuring the environmental impact of AI inference” (Aug 21, 2025): https://cloud.google.com/blog/products/infrastructure/measuring-the-environmental-impact-of-ai-inference
- Elsworth et al. (Google), arXiv 2508.15734 (Aug 2025): https://arxiv.org/abs/2508.15734
- Sam Altman, “The Gentle Singularity” (June 10, 2025): https://blog.samaltman.com/the-gentle-singularity
- Epoch AI, “How much energy does ChatGPT use?” (Feb 7, 2025): https://epoch.ai/gradient-updates/how-much-energy-does-chatgpt-use
- Jegham et al., “How Hungry is AI?”, arXiv 2505.09598 v6 (Nov 2025): https://arxiv.org/abs/2505.09598
- Claude Agent SDK (Python): https://github.com/anthropics/claude-agent-sdk-python