feat(pi): add code review mode#5577
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds Cloud Code Review mode to the Pi block and renames the existing cloud mode in the UI.
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "address mor" | Re-trigger Greptile |
Introduce a third Pi mode that reviews an existing GitHub PR in an E2B sandbox and posts a structured review with optional inline comments. Keep the stored cloud id for backward compatibility, extend github_create_pr_review for inline comments, and harden review submission against stale SHAs and invalid comment payloads. Co-authored-by: Cursor <cursoragent@cursor.com>
2760fad to
c8d7b57
Compare
|
@BillLeoutsakosvl346 the goal is for the agent to leave comments on your PR in github directly since it has all the credentials and everything similar to Greptile or Bugbot |
|
Coding agent demo: Screen.Recording.2026-07-13.at.11.03.19.AM.mp4 |
…ode-review # Conflicts: # apps/sim/app/workspace/[workspaceId]/settings/components/byok/byok.tsx # apps/sim/executor/handlers/pi/keys.test.ts # apps/sim/executor/handlers/pi/keys.ts # apps/sim/lib/api/contracts/byok-keys.ts # apps/sim/tools/types.ts
|
bugbot run |
PR SummaryHigh Risk Overview Execution is refactored around shared Docs and block UI add pull number, review outcome ( Reviewed by Cursor Bugbot for commit dd0af4d. Configure here. |
|
bugbot run |
icecrasher321
left a comment
There was a problem hiding this comment.
Review summary
The implementation is well-tested and the security boundaries are documented clearly. I found a few cleanup opportunities: keep the provider documentation aligned with the new centralized configuration, separate the large embedded sandbox helper from the TypeScript tool wiring, consolidate repeated GitHub response-parsing utilities, and remove unrelated formatting-only churn from this feature PR.
|
bugbot run |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit dd0af4d. Configure here.
Summary
Extends the Pi Coding Agent from PR creation into a complete repository workflow with three user-facing modes:
Test plan
NEXT_PUBLIC_E2B_ENABLEDis set