Module 4 · Lesson 8 of 12

Verify While the Agent Works

Use checks at the right moments to catch misunderstandings early and keep integration safe.

# Verify While the Agent Works

Verification should happen throughout the task. First check the plan against the request. Then inspect the first diff and run the smallest relevant test before the agent expands the change. At the end, run broader checks and inspect the integrated result.

Give the agent concrete verification steps: commands, expected outcomes, files to inspect, and any manual behavior to exercise. Review the evidence rather than accepting a statement that “tests pass.” A command can pass while missing the affected path, and generated output can hide an untested assumption.

Keep a human in the loop where the decision needs judgment: user experience, security, data integrity, architecture, and scope.

## Apply it

Choose one task and define three checkpoints: before editing, after the first slice, and before handoff. Name the artifact you will inspect at each point.

Practice: Ask the agent to report changed files, tests run, failures, and remaining uncertainty.

Sign in to keep track of the lessons you finish.