Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

feat: add block-no-verify hook for Claude Code and Cursor (#649)

Ofek Gabayc8f631b0466e
diff --git a/.cursor/hooks.json b/.cursor/hooks.json
index f46121b84..56969a1f7 100644
--- a/.cursor/hooks.json
+++ b/.cursor/hooks.json
@@ -15,6 +15,11 @@
}
],
"beforeShellExecution": [
+ {
+ "command": "npx [email protected]",
+ "event": "beforeShellExecution",
+ "description": "Block git hook-bypass flag to protect pre-commit, commit-msg, and pre-push hooks from being skipped"
+ },
{
"command": "node .cursor/hooks/before-shell-execution.js",
"event": "beforeShellExecution",
diff --git a/hooks/hooks.json b/hooks/hooks.json
index a3d23262d..d3432a2f8 100644
--- a/hooks/hooks.json
+++ b/hooks/hooks.json
@@ -2,6 +2,16 @@
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"hooks": {
"PreToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx [email protected]"
+ }
+ ],
+ "description": "Block git hook-bypass flag to protect pre-commit, commit-msg, and pre-push hooks from being skipped"
+ },
{
"matcher": "Bash",
"hooks": [