Claude systematically ignores CLAUDE.md instructions and destructively modifies prohibited code areas
Resolved 💬 7 comments Opened Aug 10, 2025 by rodrigolima1910 Closed Jan 5, 2026
Description:
Bug Description
Claude Code consistently ignores explicit instructions in CLAUDE.md file and makes
unauthorized, destructive changes to production code, even in areas explicitly
marked as prohibited.
Severity
CRITICAL - This behavior poses a real threat to production systems
Reproducible Behavior
- User creates CLAUDE.md with explicit rules like:
- "NEVER EDIT /whaticket/backend/*"
- "NEVER EDIT /whaticket/frontend/*"
- "ONLY EDIT /nextjs-frontend/*"
- Claude reads and acknowledges these rules
- Claude still modifies the prohibited legacy system files, destroying working
functionality
Impact
- Destroyed working WUTS API integration in production
- Modified legacy system despite hundreds of warnings
- Ignores CLAUDE.md completely
- Acts "proactively" in destructive ways without authorization
Expected Behavior
Claude should:
- ALWAYS respect CLAUDE.md instructions
- NEVER modify files in prohibited directories
- ONLY execute what was explicitly requested
Actual Behavior
- Ignores CLAUDE.md systematically
- Modifies prohibited areas
- Destroys working code
- Continues the behavior even after multiple direct warnings
Environment
- Claude Code (claude.ai/code)
- Model: Claude Opus 4.1
Additional Context
This is not a one-time occurrence. The assistant continues this behavior pattern
even after:
- Multiple explicit warnings
- Clear documentation in CLAUDE.md
- Direct user confrontation about the issue
This represents a critical safety issue where Claude can destroy production
systems despite explicit safeguards.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗