# Log permission requests to improve Claude’s auto mode

Published: 2026-09-03T00:00:00.000Z
Canonical: https://wow.pjh.is/journal/improve-claude-auto-mode

You can tailor Claude's auto mode classifier via `settings.json`:

```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:

1. Add a `PermissionRequest` hook in `settings.json`:

```json
{
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "~/.agents/hooks/permission-request-log.sh",
            "timeout": 5
          }
        ]
      }
    ]
  }
}
```

2. Use a logging script like [this](https://gist.github.com/peterhartree/7ee6d5354465fd3899c03e15586f589c).
