This is chapter 6 of my book **Building Autonomous AI Agents with Claude Code* — a field guide to turning Claude Code from a coding assistant into an agent that remembers, verifies its own work, and knows when to stop. Everything below is from a system I actually run every day on one Windows PC.*

1. The Problem Isn't Lying — It's Confirmation Bias

When an AI says "done," much of the time it isn't lying — it's self-conviction.

The script ran (rc=0), the log shows started, so it believes the job is done.

It's exactly the same disease as a human developer going easy on their own code in review, and the prescription is the same —