Skip to content

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 29, 2026

Summary by CodeRabbit

  • Documentation
    • Added comprehensive documentation for the PR loop agent, detailing usage instructions and available options, the complete workflow execution steps, argument mapping, detailed configuration details, CI and review status monitoring behavior, intelligent polling timing strategies, timeout recovery mechanisms, state file tracking information, completion outcomes, related commands reference, and practical example commands.

✏️ Tip: You can customize this high-level summary in your review settings.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, 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 introduces the /pr-loop slash command, a new automation tool aimed at streamlining the Pull Request lifecycle. It provides an iterative monitoring solution that continuously tracks a PR's progress through CI checks, review cycles, and merge readiness, ultimately reducing manual oversight and accelerating the path to integration.

Highlights

  • New /pr-loop Command: Introduces a new slash command, /pr-loop, designed to iteratively monitor a Pull Request until it achieves approval or is merged.
  • Automated PR Monitoring Workflow: The command automates the process of checking CI status, review status (approvals or change requests), and merge readiness, providing feedback and optionally triggering re-reviews for stale requests.
  • Configurable Options and Intelligent Timing: The /pr-loop command supports various options such as specifying the PR number, waiting for CI completion, setting maximum iterations, and disabling automatic re-review triggers. It also incorporates intelligent, evidence-based timing for polling different CI services.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 29, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 17 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Walkthrough

Introduces comprehensive documentation for the PR loop agent command. The new file defines usage syntax, command options, workflow steps, completion outcomes, CI polling strategies, example invocations, state file management, timeout recovery procedures, and references to related commands.

Changes

Cohort / File(s) Summary
PR Loop Agent Documentation
\.agent/scripts/commands/pr-loop.md
Adds 158 lines documenting the PR loop agent, including argument mapping, workflow execution steps, CI/review status monitoring, polling behavior, completion criteria, state tracking via .pr-loop.state file, timeout recovery logic, and usage examples

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

📋 A loop emerges from the shadows clear,
With polling wisdom and state files dear,
PR agents dance through CI's embrace,
Documenting grace in every trace. 🔄

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a new /pr-loop slash command for iterative PR monitoring, which directly corresponds to the new documentation file introduced in this pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link

@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 documentation for the new /pr-loop slash command. The documentation is thorough and well-organized, covering usage, options, workflow, and recovery steps. I've added a couple of minor suggestions to enhance the consistency and clarity of the documentation, particularly regarding placeholder conventions and the 'Completion Promises' table.

## Usage

```bash
/pr-loop [--pr N] [--wait-for-ci] [--max-iterations N] [--no-auto-trigger]

Choose a reason for hiding this comment

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

medium

For consistency with the 'Options' table below, it would be clearer to use <n> as a placeholder for numbers instead of N. This ensures a uniform convention throughout the documentation.

Suggested change
/pr-loop [--pr N] [--wait-for-ci] [--max-iterations N] [--no-auto-trigger]
/pr-loop [--pr <n>] [--wait-for-ci] [--max-iterations <n>] [--no-auto-trigger]

|---------|---------|
| PR approved | `<promise>PR_APPROVED</promise>` |
| PR merged | `<promise>PR_MERGED</promise>` |
| Max iterations reached | Exit with status report |

Choose a reason for hiding this comment

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

medium

The 'Promise' column for 'Max iterations reached' is inconsistent with the other entries. While other outcomes map to a <promise> tag, this one describes an action ('Exit with status report'). For clarity and consistency, consider either providing a corresponding promise tag (e.g., <promise>MAX_ITERATIONS_REACHED</promise>) or explicitly stating that no promise is returned in this case (e.g., 'N/A').

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 486 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Thu Jan 29 01:01:20 UTC 2026: Code review monitoring started
Thu Jan 29 01:01:21 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 486
Thu Jan 29 01:01:21 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Thu Jan 29 01:01:23 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 486
  • VULNERABILITIES: 0

Generated on: Thu Jan 29 01:02:49 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@augmentcode
Copy link

augmentcode bot commented Jan 29, 2026

🤖 Augment PR Summary

Summary: Adds documentation for a new /pr-loop slash command to iteratively monitor a pull request until it is approved or merged.

Changes:

  • Introduces .agent/scripts/commands/pr-loop.md describing the command’s purpose, usage, and supported flags.
  • Documents how /pr-loop delegates to quality-loop-helper.sh pr-review with the provided arguments.
  • Explains the per-iteration checks performed (CI status, review decision, merge readiness) and what happens when failures or change requests are detected.
  • Defines completion promises (PR_APPROVED, PR_MERGED) for loop orchestration.
  • Adds “intelligent timing” guidance for polling CI services with category-based initial waits and intervals.
  • Provides practical examples, state tracking guidance, timeout recovery steps, and links to related workflow commands.

Technical Notes: This command is designed to integrate with the existing quality-loop infrastructure and GitHub CLI-based PR status signals.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.


## State Tracking

Progress is tracked in `.agent/loop-state/quality-loop.local.state`:
Copy link

Choose a reason for hiding this comment

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

The state file referenced here (.agent/loop-state/quality-loop.local.state) is written by quality-loop-helper.sh as YAML frontmatter (e.g., type, iteration, status, options, checks_passed/failed), so the Markdown checklist example below doesn’t match what users will actually see.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.agent/scripts/commands/pr-loop.md:
- Around line 103-117: The example state block under "PR Review Loop State" uses
a fixed timestamp for the "Last Check:" field; update that markdown snippet so
it uses a placeholder like "<iso8601>" or an explicit label such as "EXAMPLE:
2025-01-29T14:30:00Z" instead of a stale concrete date; change the "Last Check:"
line in the example state (the markdown code block showing Check Results and
Last Check) to use the placeholder or example marker to avoid presenting stale
timestamps.
🧹 Nitpick comments (2)
.agent/scripts/commands/pr-loop.md (2)

11-158: Reduce inline detail; move guidance to AGENTS.md / subagent docs.

This reads like a full runbook. For .agent docs, please keep a concise overview and point to subagent/AGENTS.md for deep workflow, timing, state, and recovery steps to preserve progressive disclosure and the single-source-of-truth policy. Based on learnings: “All instructions, documentation, and operational guidance should be maintained in AGENTS.md as the single source of truth.”


13-15: Replace inline command blocks with authoritative file:line references.

Inline examples should only appear when they’re authoritative; otherwise, point to the actual implementation via file:line references. This keeps the doc aligned with the automation source of truth. As per coding guidelines: “Include code examples only when authoritative; use file:line references to point to actual implementation instead of inline code snippets.”

✅ Suggested doc edit (replace inline code blocks)
-```bash
-/pr-loop [--pr N] [--wait-for-ci] [--max-iterations N] [--no-auto-trigger]
-```
+See implementation: file:line (authoritative source for invocation syntax)

Also applies to: 40-42, 79-99, 131-148

@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 486 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Thu Jan 29 01:07:28 UTC 2026: Code review monitoring started
Thu Jan 29 01:07:29 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 486
Thu Jan 29 01:07:29 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Thu Jan 29 01:07:31 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 486
  • VULNERABILITIES: 0

Generated on: Thu Jan 29 01:08:56 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@marcusquinn marcusquinn merged commit 549d7ff into main Jan 29, 2026
9 checks passed
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