Reviewer Disable

Disable the code review stop hook entirely by short-circuiting stop_hook.enabled_when in .reviewer/settings.local.json.

imbue-ai 735c09e 1021 B Updated

File contents

Disables the master switch (stop_hook.enabled_when) by rewriting it as false && (<original>), so the orchestrator exits immediately. reviewer-enable (no args) restores the original expression. A re-disable is a no-op (it won't stack the prefix), and an empty expression is simply set to false.

Run this command:

jq -n --argjson existing "$(cat .reviewer/settings.local.json 2>/dev/null || echo '{}')" '
  ($existing.stop_hook.enabled_when // "") as $cur
  | $existing * {"stop_hook": {"enabled_when": (
      if $cur == "" or $cur == "false" then "false"
      elif ($cur | startswith("false && (")) then $cur
      else "false && (" + $cur + ")"
      end
    )}}
' > .reviewer/settings.local.json.tmp && mv .reviewer/settings.local.json.tmp .reviewer/settings.local.json

Then confirm that the stop hook has been disabled entirely.

imbue-ai/code-guardian/tree/main/plugins/imbue-code-guardian/skills/reviewer-disable commit 735c09e0d2

Frequently asked questions

npx skillmds@latest add imbue-ai/reviewer-disable