large-edit-confirmation 0.2.0
Asks the user, in the engine's AskUserQuestion dialog ($.ui.ask), before Claude edits or overwrites a file larger than a configurable line count; denies by default when nobody can answer (headless runs). A tool.call hook on Edit and Write using $.fs.read.
Install
git clone https://github.com/davila7/claude-code-templates.git claude --plugin-dir claude-code-templates/cli-tool/components/mods/security/large-edit-confirmation
Run in a terminal. Claude Code loads the mod from that folder for the session.
Hooks into
- Tool calls