[FEATURE] AI-evaluation of permission request to unblock human user, with logging
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I could use more tokens faster if claude would be smarter on permission requests. 😁
Several issues:
- too careful (read-only commands that aren't built-in get stopped like bash(sed) or other tools)
- "don't ask again" not smart enough for chained commands with pipes or && segments - unlikely that exactly the same command will be run again
Proposed Solution
I wrote a permission hook that gives the current context and the permission request info to a claude-code instance to evaluate to see if it's REASONABLE (does it pertain to the conversation at hand) and SAFE (is it writing into c:\windows vs reading a file). It also logs all its decisions for auditing later.
Of course, it's slow, burns too many tokens, etc.
It would be great if Anthropic could integrate something like this into claude code and tune to use a smaller model, not send mcp info, have good default instructions on what to allow, have user-configurable instructions (to tune if too careful or there are exceptions), and logging.
@claude could you just implement this and let me know once it's released 😁
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
API and model interactions
Use Case Example
_No response_
Additional Context
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗