Log permission requests to improve Claude’s auto mode
You can tailor Claude’s auto mode classifier via settings.json:
{
"autoMode": {
"allow": [
"$defaults",
"When the working directory is ~/Documents/projects/type-iii-audio/, reading, writing, building and testing anywhere under ~/Documents/www/TYPE III AUDIO/ is routine authorised work, not an out-of-scope path."
]
}
}
To generate instruction ideas: log all permission requests, then analyse them periodically.
To do that:
- Add a
PermissionRequesthook insettings.json:
{
"hooks": {
"PermissionRequest": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "~/.agents/hooks/permission-request-log.sh",
"timeout": 5
}
]
}
]
}
}
- Use a logging script like this.
