[BUG] Permission request for 'xargs grep' even though settings allow 'xargs grep'
Resolved 💬 6 comments Opened Jul 4, 2025 by nickolay-kondratyev Closed Dec 30, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version:
1.0.43 (Claude Code) - Operating System: Linux PopOS
- Terminal: Tilix
Bug Description
Issue
Getting permissions request to run find . -type f -name "*.txt" | xargs grep "pattern" by Claude even though I have
"Bash(grep:*)",
"Bash(xargs grep:*)",
"Bash(find:*)",
In the settings for allowed tools.
Individual command like find . -type f -name "*.txt" works without prompts so must be something with piping.
Testing
Run the following command
[find . -type f -name "*.txt" | xargs grep "pattern"]
Results
- With
Bash(xargs grep:*): [❌ - Permission is Requested] - With
Bash(xargs:^grep\\s.*): [❌ - Permission is Requested] - With
Bash(xargs:^\\s*grep\\s.*): [❌ - Permission is Requested] - With
Bash(xargs:*grep*): [❌ - Permission is Requested]
Steps to Reproduce
- Setup settings with allowed tools, ask to execute
find . -type f -name "*.txt" | xargs grep "pattern"
Expected Behavior
No permission requests
Actual Behavior
Getting permission request, likely due to pipe being present.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗