---
title: "Comment by waldo on \"Claude Code Mistakes: It Changed My Product Without Asking (How I Stopped It)\" | Hashnode"
description: "ran into the same thing, rules in the prompt are basically suggestions. what finally worked for me was hooks that block the action itself, e.g. the agent can't"
url: "https://hashnode.com/posts/claude-code-mistakes-it-changed-my-product-without-asking-how-i-stopped-it/6af3c4f8d250fc626b7dbd7c/comment/6aff260f3d21ed1edfa199dc"
---

[Discussion](https://hashnode.com/posts/claude-code-mistakes-it-changed-my-product-without-asking-how-i-stopped-it/6af3c4f8d250fc626b7dbd7c)

Comment [Claude Code Mistakes: It Changed My Product Without Asking (How I Stopped It)](https://hashnode.com/posts/claude-code-mistakes-it-changed-my-product-without-asking-how-i-stopped-it/6af3c4f8d250fc626b7dbd7c)

[waldo](https://hashnode.com/@waldo-vanderhaeghen)

[5d ago](https://hashnode.com/posts/claude-code-mistakes-it-changed-my-product-without-asking-how-i-stopped-it/6af3c4f8d250fc626b7dbd7c/comment/6aff260f3d21ed1edfa199dc)

ran into the same thing, rules in the prompt are basically suggestions. what finally worked for me was hooks that block the action itself, e.g. the agent can't kill processes by name or edit ticket files from the shell anymore, no matter how convinced it is. the gap you mention bit me too: blocking Edit does nothing once the agent writes the file through a script, so my guards check shell commands as well
