---
title: "Discussion on \"Claude Code now blocks destructive git commands by default. Keep your deny rules anyway.\" | Hashnode"
description: "Discussion on \"Claude Code now blocks destructive git commands by default. Keep your deny rules anyway.\". Auto mode's new guardrail is a real improvement, and it's a classifier inferring intent, not a rule that matches. The better default is a reason to audit your config, not delete it."
url: "https://hashnode.com/posts/claude-code-now-blocks-destructive-git-commands-by-default-keep-your-deny-rules-anyway/6a3c7eed1689a9a25cbf8d48"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Claude Code now blocks destructive git commands by default. Keep your deny rules anyway.](https://raplsworks.hashnode.dev/claude-code-now-blocks-destructive-git-commands-by-default-keep-your-deny-rules-anyway?utm_source=hashnode&utm_medium=feed)

Auto mode's new guardrail is a real improvement, and it's a classifier inferring intent, not a rule that matches. The better default is a reason to audit your config, not delete it.

Jun 25 · 5 min read · raplsworks.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#ai](https://hashnode.com/tag/ai)
-   [#security](https://hashnode.com/tag/security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Rapls](https://hashnode.com/@raplsworks)

@raplsworks · Osaka, Japan

  
[View profile](https://hashnode.com/@raplsworks)

Freelance web developer and WordPress plugin author. I learn in public.

Freelance web developer from the Kansai region of Japan. I build WordPress plugins (Rapls AI Chatbot, Thanks Mail for Stripe, Rapls PDF Image Creator) and write about AI coding tools, Claude Code, and the security side of shipping with LLMs. I work in public and write down what breaks. Blog: https://raplsworks.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
