# Using a Claude Code Stop Hook to Externally Verify Work Before Completion

DevFeed: [Using a Claude Code Stop Hook to Externally Verify Work Before Completion](<https://devfeed.tech/articles/the-stop-hook-that-won-t-let-claude-lie-to-you-28993.md>)

Original publisher: [Read original article](<https://codingwithroby.substack.com/p/the-stop-hook-that-wont-let-claude>)

Author: Eric Roby

Published: 2026-06-02T13:01:38Z

Content type: tutorial

Language: en

Sources: [Eric Roby](<https://devfeed.tech/sources/eric-roby.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [rlhf](<https://devfeed.tech/topics/rlhf.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [claude-code](<https://devfeed.tech/tags/claude-code.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [rlhf](<https://devfeed.tech/tags/rlhf.md>), [shell](<https://devfeed.tech/tags/shell.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

This tutorial explains how a Claude Code Stop hook can externally verify work before Claude is allowed to declare a task complete. It frames the approach as a safeguard against unverified claims such as reporting that all tests pass when they have not been run.

## Source excerpt

How to make Claude prove the work is done before it claims to be done.