[BUG] Claude Code ignores explicit instructions in command
Resolved 💬 2 comments Opened Sep 7, 2025 by SalesforceRocks Closed Sep 7, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I wrote a custom command generate-apex-client. I made it very explicit that claude should first check the input before doing anything else. Instead claude code started reading a completely unspecified spec (REALLY SCARY) and started to implement stuff.
It is quite easy to reproduce. Just add the command to your claude code environment and enter /generate-apex-client
What Should Happen?
Claude should have shown the help for the command and NOT start generating stuff
Error Messages/Logs
Steps to Reproduce
- Add the command to your claude code environment
- Enter '/generate-apex-client' in claude
- See it doesn't stick to the instructions
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.108
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗