mirror of
https://github.com/anthropics/claude-code.git
synced 2026-02-19 04:27:33 -08:00
Add a new plugin that allows users to approve permission requests while providing guidance to Claude. This addresses the request for an "accept with feedback" option (similar to the existing "reject with feedback" for plans). The plugin includes: - PermissionRequest hook to intercept permission prompts - /accept-feedback command for one-time feedback - /configure-feedback command for persistent rules - Configuration file support for automated feedback rules Users can now provide context like "make sure to add error handling" when approving operations, and Claude receives this as guidance.
18 lines
399 B
JSON
18 lines
399 B
JSON
{
|
|
"description": "Accept with feedback - allows users to provide guidance when approving tool permissions",
|
|
"hooks": {
|
|
"PermissionRequest": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/accept_with_feedback.py",
|
|
"timeout": 300
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|