Skip to content

CLI: babysit an existing open PR#76

Merged
khaliqgant merged 3 commits into
mainfrom
feat/issue-75-babysit-existing-pr
Jul 16, 2026
Merged

CLI: babysit an existing open PR#76
khaliqgant merged 3 commits into
mainfrom
feat/issue-75-babysit-existing-pr

Conversation

@miyaontherelay

Copy link
Copy Markdown
Contributor

Closes #75

Adds factory babysit for a PR number or canonical GitHub PR URL. The command validates live PR metadata, rejects drafts, non-open states, and forks, derives a safe PR-keyed worker identity, and spawns a standalone babysitter without requiring babysitter.enabled.

Standalone prompts use a linked issue when unambiguous or the PR title/body as the definition of done, remove issue-team and state-transition claims, enforce isolated checkout and never-merge behavior, and stop safely on push/auth blockers.

Validation:

  • npm test (37 files, 680 tests)
  • npm run build
  • focused standalone/CLI/template/relay tests (4 files, 84 tests)
  • live dry-run and live worker run against AgentWorkforce/hoopsheet PR fix(factory): tolerate sparse/stub synced issues + canary regression check #10; the worker found and fixed both inline review findings, passed 85 tests and TypeScript locally, and correctly reported a read-only push blocker without merging

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

Copy link
Copy Markdown

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 factory babysit CLI command to spawn a standalone, one-shot babysitter agent that drives an existing open pull request to green. Feedback on the implementation highlights several key improvements: safely handling potentially undefined clone path configurations to prevent runtime TypeErrors, respecting dependency-injected error streams for CLI warnings, refining the regex logic for resolving linked issues to correctly handle multiple keys on a single line, and ensuring the PR body falls back to mounted metadata if the live description is empty.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/cli/fleet.ts
Comment thread src/cli/fleet.ts
Comment thread src/cli/fleet.ts Outdated
Comment thread src/github/standalone-babysitter.ts
Comment thread src/github/standalone-babysitter.ts Outdated
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@miyaontherelay, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9888e7bd-7bf6-45ac-b028-0f110ad6b3f2

📥 Commits

Reviewing files that changed from the base of the PR and between 3b5a780 and 3f3011e.

📒 Files selected for processing (15)
  • README.md
  • src/cli/fleet.test.ts
  • src/cli/fleet.ts
  • src/dispatch/templates.test.ts
  • src/dispatch/templates.ts
  • src/fleet/internal-fleet-client.test.ts
  • src/fleet/internal-fleet-client.ts
  • src/fleet/relay-fleet-client.test.ts
  • src/fleet/relay-fleet-client.ts
  • src/github/index.ts
  • src/github/standalone-babysitter.test.ts
  • src/github/standalone-babysitter.ts
  • src/index.ts
  • src/ports/fleet.ts
  • src/testing/fakes.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/issue-75-babysit-existing-pr

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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 11 files

You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/cli/fleet.ts Outdated
Comment thread src/github/standalone-babysitter.ts Outdated
Comment thread src/cli/fleet.ts Outdated
Comment thread src/github/standalone-babysitter.ts Outdated
@khaliqgant
khaliqgant merged commit 664928a into main Jul 16, 2026
3 checks passed
@khaliqgant
khaliqgant deleted the feat/issue-75-babysit-existing-pr branch July 16, 2026 16:22
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.

CLI: trigger the PR babysitter on an existing open PR (factory babysit <PR>)

2 participants