Skip to content

Add opt-in CodeRabbit review reminder hook - #11

Draft
nehal-a2z wants to merge 1 commit into
mainfrom
nehal/review-reminder-hook
Draft

nehal-a2z wants to merge 1 commit into
mainfrom
nehal/review-reminder-hook

Conversation

@nehal-a2z

@nehal-a2z nehal-a2z commented Sep 29, 2026 •

Copy link
Copy Markdown

Summary

Add an optional CodeRabbit Stop hook: when tracked uncommitted changes exist, remind the agent to use the existing review skill if this task still needs an authorized review. Enable with CODERABBIT_REVIEW_REMINDER=1 and trust the hook in Codex; default is off.

The hook only checks local Git status. It does not run CodeRabbit or grant permission for uploads, authentication, spending, or fixes. It skips hook continuations, plan mode, clean/non-Git directories, raw untracked files, submodules, and committed-only changes. The same command, script, and tests are being added to the Claude Code package in coderabbitai/skills.

Validation

  • python3 plugins/coderabbit/hooks/test_review_reminder.py — passed: the configured command is exercised against real Git fixtures, including opt-out and continuation suppression.
  • Codex Plugin Creator validator — passed for plugins/coderabbit.
  • git diff --check — passed.
  • Verified byte-for-byte parity with the Claude Code hook files.
  • Live Codex CLI 0.158.0-alpha.2.1 sessions using a temporary installation of this exact plugin: enabled produced one reminder/continuation and exited; variable absent produced no continuation. Both sessions were ephemeral, read-only, and made zero tool calls. Temporary installation removed afterward.

Requires Python 3 and Git on PATH. This is a stateless reminder, not a review gate: it cannot identify task-owned changes or verify review freshness, and may remind again on a later user turn. Plugin discovery and model continuation passed end to end. The locally vetted test used invocation-only hook-trust bypass; the hook-review UI was not exercised. No CodeRabbit API review ran.

Public contract: Codex hooks, including default hooks/hooks.json discovery, CLAUDE_PLUGIN_ROOT compatibility, and Stop continuation semantics.

@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant