Skip to content

feat: add codex-review plugin for automated code review v1.0.0#15

Merged
vnz merged 6 commits intomainfrom
feat/add-codex-review-plugin
Mar 31, 2026
Merged

feat: add codex-review plugin for automated code review v1.0.0#15
vnz merged 6 commits intomainfrom
feat/add-codex-review-plugin

Conversation

@vnz
Copy link
Copy Markdown
Owner

@vnz vnz commented Mar 20, 2026

Summary

  • Rewrite codex-review plugin v2.0.0 — restructured to match the proven coderabbit plugin architecture
  • Separates concerns into command (execution), skill (reactive behavior), and agent (subagent delegation)
  • The v1 monolithic command was brittle and hard for Claude to use; this fixes that

What changed from v1

Component v1 v2
Command codex-review.md (monolithic: review + fix loop + anti-loop) review.md (clean execution wrapper with context injection)
Skill review-workflow/SKILL.md (thin: just policy/severity) code-review/SKILL.md (full review workflow with fix loop)
Agent None code-reviewer.md (specialized subagent for thorough analysis)

Plugin structure

plugins/codex-review/
├── .claude-plugin/
│   └── plugin.json
├── commands/
│   └── review.md              # /codex-review:review command
├── skills/
│   └── code-review/
│       └── SKILL.md           # When/how to review, fix-review workflow
├── agents/
│   └── code-reviewer.md       # Specialized review subagent
└── README.md

Design decisions

  • Modeled on the official coderabbit plugin — adapted for Codex CLI (different flags, no auth flow, local-only fix loop)
  • Reactive, not proactive — skill only triggers on user request, avoiding collision with coderabbit when both are installed
  • --base passes refs as-is — no hardcoded origin/ prefix, supports multi-remote setups

Test plan

  • prek run --all-files passes
  • Plugin-validator confirms valid structure
  • /codex-review:review command works (tested: auto-detected PR, ran review, found real bugs)
  • CodeRabbit review clean
  • Codex review findings fixed (committed mode fallback, origin/ hardcode)
  • Agent can be spawned as subagent for thorough review

🤖 Generated with Claude Code

@vnz vnz self-assigned this Mar 20, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates a new codex-review plugin into the system, significantly enhancing the automated code review capabilities. The plugin streamlines the review process by offering intelligent mode detection and an iterative fix-and-review mechanism, which previously required manual configuration. This addition aims to improve developer efficiency and code quality by automating a critical part of the development workflow, while also optimizing resource usage by packaging procedural instructions into a portable unit.

Highlights

  • New Plugin Added: Introduced the codex-review plugin, marking it as the first command-based plugin in the marketplace.
  • Automated Code Review Command: Provided the /codex-review slash command, featuring auto-detection of review modes (--uncommitted, --base, or --commit) and an iterative fix-and-review loop.
  • Review Workflow Skill: Included a review-workflow skill designed to guide decisions on when to review code and how to interpret findings, including P1/P2/P3 severity triage.
  • Anti-Loop Safety Guards: Implemented three independent safety guards (max cycles, no progress, no changes) to prevent runaway review loops.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new codex-review plugin for automated code reviews. The plugin is well-structured with a command, a skill, and clear documentation. The implementation thoughtfully includes an iterative fix-and-review loop with safety guards. My review has identified a significant dependency risk due to the use of a deprecated tool, and a minor inefficiency in the review loop's logic. Addressing these points will improve the plugin's long-term viability and performance.

vnz and others added 4 commits March 31, 2026 10:25
First command-based plugin in the marketplace. Provides /codex-review slash
command with auto-detection of review mode (--uncommitted, --base, --commit)
and iterative fix-and-review loop with three anti-loop safety guards.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
… cycles

- Severity informs priority but doesn't mechanically determine the action
- Redefine "no progress" as all findings dismissed or already fixed
- Increase max loop cycles from 3 to 4

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove content that overlaps with the command (background execution,
silent fallback, mode detection, when-to-review table). Skill now
only covers the review mandate, own-code rule, and severity guidance.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…ure v2.0.0

Separate concerns into command (execution), skill (autonomous behavior),
and agent (subagent delegation) — matching the proven coderabbit plugin
pattern. The v1 monolithic command was brittle and hard to trigger
proactively.

- commands/review.md: clean execution wrapper with context injection
- skills/code-review/SKILL.md: when/how to review, autonomous fix loop
- agents/code-reviewer.md: specialized subagent for thorough analysis
- Removes old codex-review.md command and review-workflow skill

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@vnz vnz force-pushed the feat/add-codex-review-plugin branch from 59e0535 to 31ad4b3 Compare March 31, 2026 08:29
vnz and others added 2 commits March 31, 2026 11:43
…command

- `committed` mode now uses `codex review` (no flags) instead of falling
  back to --uncommitted when no PR exists — fixes wrong-diff bug
- `--base` passes the ref as-is instead of prepending origin/, supporting
  multi-remote setups

Found by codex review during plugin testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Both plugins installed = both would try to review autonomously after
every code change. Match coderabbit's reactive pattern instead — only
review when the user explicitly asks.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@vnz vnz merged commit 7916536 into main Mar 31, 2026
1 check passed
@vnz vnz deleted the feat/add-codex-review-plugin branch March 31, 2026 09:55
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