How They Use AI  |  Newest

<< Home  |  Prompting craft

Claude must provide test results before finishing tasks.

AreaPrompting craft
AI usedClaude
SourceReddit thread
Posted2026-11-22

The move

Require a mandatory 'Tests' section in your instructions that forces the model to display commands and results before completing a task.

Steps

  1. Create a CLAUDE.md file in your project.
  2. Add a mandatory 'Tests' section to the instructions.
  3. Instruct the model to display the command and results.
  4. Verify the output before accepting the task as complete.

Prompt for your AI

Include a mandatory 'Tests' section. You must display the command and its results before considering a task complete.

What happened

Users frustrated by Claude's lack of verification when refactoring code sought a way to ensure accuracy. By implementing a CLAUDE.md file with a compulsory testing requirement, they forced the model to demonstrate its work. Commenters confirmed that treating the model like a junior developer who must show test results significantly improves output reliability.

Who confirmed it

Users reported that requiring the model to generate and run tests ensures that everything runs smoothly.

Watch out

The reviewer agent might simply endorse the first agent's conclusions without actually executing the tests.

Give it to your agent

Read https://howtheyuse.ai/p/claude-must-provide-test-results-before-finishing-tasks.md and help me do this.

Sources



Last updated November 26, 2026.