<< Home | Prompting craft
Claude verifies its own output against file content
| Area | Prompting craft |
| AI used | Claude |
| Source | Reddit thread |
| Posted | 2026-03-08 |
The move
Instruct the model to re-examine all modified files to confirm content matches its description.Steps
- Complete the initial generation task.
- Prompt the model to re-examine every modified file.
- Ask it to confirm the content matches its own description.
- Review the model's self-correction report.
Prompt for your AI
Re-examine every file you modified and confirm that the content matches your own description.
What happened
The user struggled with Claude asserting inaccurate information during coding tasks. A commenter suggested forcing the model to review its own work after completion. This technique works because the model is better at reviewing than creating, allowing it to catch errors by reading the actual output.Who confirmed it
This method uncovers many errors because the model is much more adept at reviewing than creating.Watch out
The model may still struggle if it relies on memory rather than reading the actual output.Give it to your agent
Read https://howtheyuse.ai/p/claude-verifies-its-own-output-against-file-content.md and help me do this.