feat: add review-loop command for autonomous PR review cycles#1569
Open
potb wants to merge 10 commits intocode-yeongyu:devfrom
Open
feat: add review-loop command for autonomous PR review cycles#1569potb wants to merge 10 commits intocode-yeongyu:devfrom
potb wants to merge 10 commits intocode-yeongyu:devfrom
Conversation
# Conflicts: # src/config/schema.ts
marlon-costa-dc
pushed a commit
to marlon-costa-dc/oh-my-opencode
that referenced
this pull request
Feb 9, 2026
…ous PR review cycles **Source**: code-yeongyu#1569 **Author**: @potb (Peïo Thibault) **Branch**: origin/review-loop → dev ## Feature Overview Adds `/review-loop` command that continuously reviews code until no CRITICAL or HIGH issues remain (max 10 iterations). Autonomous quality improvement workflow. ## Modular Architecture Adaptation This merge adapts the review-loop feature to upstream's modular schema architecture (commit 3d5abb9): ### Files Added (Modular Pattern) - `src/config/schema/review-loop.ts` - Extracted from inline schema - `ReviewLoopConfigSchema`: enabled, default_max_iterations, state_dir - Follows upstream pattern: isolated feature schema with barrel export - `src/hooks/review-loop/` - Hook implementation (index.ts, storage.ts, constants.ts, types.ts, tests) - `src/features/builtin-commands/templates/review-loop.ts` - Command template ### Files Modified - `src/config/schema.ts` - Added: `export * from "./schema/review-loop"` (barrel export) - Integration point for modular schema system - `src/features/builtin-commands/commands.ts` - Added: `REVIEW_LOOP_TEMPLATE` import and command definition - `src/features/builtin-commands/types.ts` - Added: `"review-loop"` to `BuiltinCommandName` union - `src/hooks/index.ts` - Added: `createReviewLoopHook` export - `src/index.ts` - Added: Review-loop hook registration with conditional enablement - Added: Loop trigger detection in chat.message handler - Added: Command detection in PreToolUse handler ## Patch Hierarchy This feature is **self-contained** and has NO dependencies on other feature PRs. **Dependencies**: None (standalone feature) **Required by**: None (other features don't depend on this) ## Verification ```bash bun run typecheck # ✅ MUST pass with 0 errors bun run build # ✅ MUST succeed ``` **Tested**: Each modification maintains modular architecture compliance.
# Conflicts: # src/config/schema.ts # src/features/builtin-commands/commands.ts # src/features/builtin-commands/types.ts # src/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
/review-loopbuiltin command that runs autonomous PR review cycles with parallel review agents, automatic issue verification, and auto-fix capabilities.Implementation
review-loophook following ralph-loop patternsFiles Changed
Created (6 files, ~1410 lines):
src/hooks/review-loop/- Hook implementation with types, constants, storage, testssrc/features/builtin-commands/templates/review-loop.ts- 9-step review loop templateModified (5 files):
Testing
Verification
Usage
Commits
Summary by cubic
Adds a new /review-loop command and hook to run autonomous PR review cycles with parallel reviewers and automatic continuation until no CRITICAL/HIGH issues remain. Merges the latest dev branch and restores a lost managers initialization.
New Features
Bug Fixes
Written for commit 939f63c. Summary will update on new commits.