claude-code - 💡(How to fix) Fix [FEATURE] auto-approve-within <directory> feature [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#52480Fetched 2026-04-24 06:06:04
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

--allow-dangerously-skip-permissions This is the nuclear option

Can you add a feature so Claude has freedom to do anything as long as it is contained within a certain directory?

--auto-approve-within <directory> flag — would be a genuinely useful middle ground between "ask everything" and "skip everything." It doesn't exist yet.

Proposed Solution

Add --auto-approve-within <directory> option to Claude Code.

Alternative Solutions

Unknown at the moment.

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Add an --auto-approve-within <directory> flag to Claude Code to allow for more flexible permission handling within a specified directory.

Guidance

  • Consider the security implications of introducing such a feature, as it may potentially bypass important permission checks.
  • Evaluate the potential use cases and benefits of this feature to determine its priority and feasibility.
  • Investigate the current implementation of the --allow-dangerously-skip-permissions option to understand how the new feature could be integrated.
  • Discuss the proposed solution with the development team to determine the best approach and potential alternatives.

Notes

The issue lacks specific technical details, and the proposed solution may have security implications that need to be carefully considered.

Recommendation

Apply workaround: Implement the proposed --auto-approve-within <directory> flag with careful consideration of security implications, as it provides a more flexible and controlled approach to permission handling.

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