codedeficient/opencode-review-enforcement — explained in plain English
Analysis updated 2026-05-18
Block git pushes that contain commits without an attached review note.
Have an AI agent automatically spawn a reviewer subagent before pushing.
Review an entire pull request by referencing its number instead of a commit hash.
Exempt old commits from review while enforcing it on everything going forward.
| codedeficient/opencode-review-enforcement | 0xkinno/neuralvault | 0xmayurrr/ai-contractauditor | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | hard | easy |
| Complexity | 3/5 | 4/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires OpenCode 1.17+, Git, and copying plugin, command, agent, and hook files into your project's .opencode and .husky directories.
This project makes sure code reviews actually happen before code gets pushed, specifically for people using OpenCode, a tool where AI agents help write code. It works by attaching review notes directly to git commits and then blocking any push that includes a commit missing one of those notes. The flow works like this: you make a commit as usual, then either type a review command yourself or let your AI agent spawn a dedicated reviewer to check the commit. Once that review finishes, the plugin automatically attaches its output as a git note on that commit. A pre push hook then checks every commit you are about to push and only allows the push through if every single one has a review note attached. Setting it up means copying a plugin file, a command file, and an agent file into specific folders inside your project, then adding a small script block to your existing pre push hook. You also create a baseline file containing the commit hash of your last exempt commit, so that only new commits going forward are required to have reviews, not your entire existing history. Once running, you can trigger a review by typing a slash command with a commit hash, or by having your AI agent spawn a reviewer subagent to do it for you, and that reviewer only has read only access to git and the GitHub command line tool. You can also review an entire pull request by referencing its number, and the tool will find and mark the commit at the tip of that pull request. It requires a fairly recent version of OpenCode, Git itself, and optionally the GitHub command line tool if you want to review pull requests by number rather than by individual commit. It is released under the MIT license.
A plugin for OpenCode AI agents that blocks git pushes unless every commit has an attached, verified code review note.
Mainly TypeScript. The stack also includes TypeScript, Git, OpenCode.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.