claude-code - 💡(How to fix) Fix Bash read-only commands (curl, gh) still prompt for permission despite allow rules

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Bug Description

When a user configures permissions to allow read-only Bash commands, tools like curl and gh api (which are clearly read-only) still trigger permission prompts. The user explicitly instructed Claude not to prompt for read-only tasks, and had permissions configured to allow them, but was still interrupted multiple times during a research-only session.

Steps to Reproduce

  1. Configure settings.json with Bash read-only permissions allowed
  2. Ask Claude Code to research a topic (no file writes, no destructive commands)
  3. Claude issues curl and gh api commands to gather information
  4. User is prompted for permission on each of these read-only commands despite having configured allow rules

Expected Behavior

Read-only Bash commands like curl -s, gh api (GET requests), gh search issues, and piped read-only commands should be covered by read-only Bash permission rules without prompting the user.

Actual Behavior

Each curl, gh api, and similar read-only command triggers a permission prompt, interrupting the user's workflow repeatedly during a fully read-only research task.

Core Issue

The permission system seems to match on specific command patterns rather than understanding semantic read-only intent. When a user says "allow read-only Bash" or configures Bash(read-only), the expectation is that all non-destructive commands are covered. In practice, many common read-only commands (curl, gh, python3 -c for parsing JSON output) fall outside the allow-list patterns and still prompt.

Environment

  • Platform: Linux (NixOS)
  • Claude Code CLI

Impact

This is a significant UX friction point. Research tasks that should be fully autonomous require the user to approve 5-10+ permission prompts for commands that cannot modify anything. It undermines trust in the permission configuration and forces users to babysit read-only workflows.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING