HaiAI123

Curated Global AI Tools Directory

Industry update
25
heat index
Flat

Tutorial: Claude Code ask rules and a hook that confirm before git push

11/30/2026 — 11/30, 02:16·1 sources (all)·1 reports (all)

Key takeaways

  • A tutorial shows two ways to make Claude Code re-confirm only for commands like git push, releases and merges: an ask permission rule in .cl…

Background & analysis

On November 30, 2026, the AI section of DEV Community published a tutorial on making Claude Code ask for confirmation before commands such as git push, package releases, and merges. The author's starting point is a common pattern: after about a week of using a coding agent, most people end up allowing the shell outright, since nobody wants to approve ls forty times a day. The cost is that the few commands you did want to review first, such as a push, a release, or a merge, then run just like everything else. According to the post, Claude Code can put a question back in front of only those commands, and it offers two ways to do so: an ask permission rule written in .claude/settings.json, and a 27-line hook that answers "ask". The author states that rules are evaluated in the order deny, ask, allow, so an ask rule overrides an allow. The formats in the post were checked against the Claude Code reference documentation dated November 29, and the setup was tested in real sessions on Claude Code 2.1.332, with the post then showing what happened when those sessions were told to push. The material does not describe any earlier origin for the practice or any later update; it ends with the tutorial's publication, both approaches set up and demonstrated.

AI-generated from 1 reports · updated 6 days ago

Related AI tools

updream
24-hour heatHeat index 25
Just charted — trend is building up
24 hours agonow

Reports on this story headlines open the original

Nov 30
  1. This tutorial sets up two ways to make Claude Code re-prompt only for commands like git push, package releases and merges: an ask permission rule in .claude/settings.json, and a 27-line hook that answers "ask." Because rules are evaluated in the order deny, then ask, then allow, an ask rule overrides a broad allow, the author notes; the formats were checked against the Claude Code reference on November 29 and the sessions ran on Claude Code 2.1.332.

    DEV Community · AIAI score 60

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →