r/ClaudeCode • • 7d ago

Rant Has the auto-mode classifier been way too strict with anyone else lately?

All week, the auto-mode classifier has been tripping up Claude by denying really innocuous modifications, including simple edits to the docs files, for example.

Just now, it hit me with this: "I've built the fix for #34, but the commit was blocked: the auto-mode classifier denied the git add + git commit command."

Anyone else? It's not every time, but often enough that I've noticed a shift relative to the recent past.

4 Upvotes

11 comments sorted by

•

u/AutoModerator 7d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/wurst_katastrophe 7d ago

Yes, it is annoying… please run this or that with !

1

u/sparkhound 7d ago

They updated it twice recently

1

u/303ENFIELD 7d ago

Narrow allow rules get resolved before the classifier ever sees the command, so you can take routine git out of its hands. In .claude/settings.json:

"permissions": {"allow": ["Bash(git add *)", "Bash(git commit *)"]}

Keep them specific, because auto mode drops broad ones like Bash(*) when it starts. If it keeps flagging something that's routine for your setup, there's also autoMode.allow in settings, which takes plain-English exceptions. Include "$defaults" in that list so you keep the built-in rules.

1

u/Ragy-ragy 7d ago

Even on bypass permissions it constantly stalls autonomous workflows

1

u/phoenixmatrix 7d ago

Ever since they changed the core of the classifier some months ago it's been insufferable. 

1

u/clawdrobe_app 7d ago

One thing the other comments skipped: the denial usually comes with a reason, so check what the classifier actually said before writing rules. If it's objecting to the chained git add + git commit in one call, try telling Claude in CLAUDE.md to run them as separate commands, since a compound command is probably judged as a whole (not 100% sure how it splits). A PreToolUse hook that explicitly allows your routine commands is another option, though I'd test whether auto mode honors it. Also worth checking /permissions to see whether a deny rule from a parent or user-level settings file is the real culprit instead of the classifier.

1

u/stasissphere 6d ago

I strongly recommend against relying on any of the CLI's guardrails features, they are all a joke. I've never seen the classifier flag something that was not a false positive; half the time claude with automatically find a workaround anyway (for both authz denials and things blocked by the sandbox). The sandbox will also randomly disable itself completely with no warning. Use something else to isolate it.

1

u/Guizkane 2d ago

It's killing my flow. Even when I click on a card, then it complains it's not enough and I need to give verbal confirmation, or sometimes it tells me to approve by saying "yes", but then it says that's not enough and to say "apply". It's specially bad on Projects beta.