agent-review-cycle
v0.1.0
Published
Unattended review-fix loop for GitLab MRs: a Devin agent pulls Greptile/Devin-review comments, fixes or declines them, pushes, and repeats until mergeable.
Readme
agent-review-cycle
Run an unattended review-fix loop on a GitLab merge request. A Devin agent pulls unresolved comments from review bots (Devin review, Greptile), fixes or declines each, pushes, waits for re-review, and repeats until threads are resolved and CI is green. Use mr-loop in a second terminal when your MR has bot review comments and you want to loop through fixes automatically.
Install
npm i -g agent-review-cycle
npx skills add moterodiaz/agent-review-cycleUsage
See SKILL.md for full flag documentation and examples.
Preconditions: clean working tree, checked out on the MR source branch, local HEAD equal to the MR head sha, and --push-remote pointing at the MR source project (verified against source_project_id at startup). --bots is required.
Quick start:
mr-loop <iid> --bots greptile-bot,devin-review [--project group/repo] [--test-cmd "pytest -q"]Requirements
python3— CLI is Python-basedgit— for branch/fetch/push operationsglab— GitLab CLI for MR and comment APIsdevin— Devin CLI for running the agent
Development
Test:
uv run --with pytest pytest tests -qPackage check (before npm publish):
npm pack --dry-runReviewer bot usernames
Reviewer bot usernames: to be confirmed after the first live run. Run mr-loop <iid> --dry-run (no --bots) to list the thread authors.
Architecture
See docs/design.md for design spec and implementation details.
