| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Too much diff to scan? Review this PR in Change Stack to start with the highest-impact changes. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 4266d122-e4a5-40cb-b534-fc72d5945969 📥 CommitsReviewing files that changed from the base of the PR and between 08481cd and 6bc5a12. 📒 Files selected for processing (2)
WalkthroughUpdates docs and changelog to describe the AI Code Review Agent’s new two-phase flow: a single MR-summary LLM pass for cross-file concerns, then parallel per-file LLM reviews (up to 5 concurrent) that post inline comments; also changes the manual trigger from /review to review. ChangesDocumentation & Changelog
Sequence Diagram(s)sequenceDiagram
participant Client
participant ReviewAgent as ReviewAgent.generatePrReview
participant MRLLM as LLM (MR Summary)
participant FileLLM as LLM (Per-file Review)
Client->>ReviewAgent: pr_payload
ReviewAgent->>MRLLM: generateMrSummary(pr_payload)
MRLLM-->>ReviewAgent: pr_summary context
ReviewAgent->>FileLLM: per-file prompt + pr_summary + file diffs (parallel, max 5)
FileLLM-->>ReviewAgent: file_diff_review (inline comments)
ReviewAgent-->>Client: aggregated file_diff_review[]
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
❌ Failed checks (1 warning)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches 🧪 Generate unit tests (beta)
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. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)docs/docs/features/agents/review-agent.mdx (1)🤖 Prompt for all review comments with AI agents6-23: ⚡ Quick win
Rewrite this new section in second person.
The new intro and How it works steps switch to third person (the agent runs, the agent posts, it returns). Please recast this as you/your to match the docs voice.
As per coding guidelines, docs/**/*.mdx should “write in second person present tense”.
🤖 Prompt for AI AgentsVerify each finding against the current code and only fix it if needed. In `@docs/docs/features/agents/review-agent.mdx` around lines 6 - 23, Rewrite the introduction and "How it works" steps to use second-person present-tense phrasing (you/your) instead of third-person; change sentences like "This agent provides", "When a review is triggered, the agent runs", "the agent posts", and "it returns nothing" to address the reader directly and use present tense, and update step headings and descriptions ("MR summary pass", "Per-file reviews", "Inline comments") so they read like instructions to the user (e.g., "You run a MR summary pass", "You run per-file reviews", "You post inline comments" or similar) while preserving the original meaning and sequence.
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/web/src/features/agents/review-agent/nodes/generateMrSummary.ts`:
- Around line 31-32: The code incorrectly uses the undefined variable modelName
in the models.find call inside the REVIEW_AGENT_MODEL branch; update the
predicate to compare m.displayName === env.REVIEW_AGENT_MODEL so it matches the
condition and the later usage (replace the modelName reference with
env.REVIEW_AGENT_MODEL in the models.find call that resolves the model).
---
Nitpick comments:
In `@docs/docs/features/agents/review-agent.mdx`:
- Around line 6-23: Rewrite the introduction and "How it works" steps to use
second-person present-tense phrasing (you/your) instead of third-person; change
sentences like "This agent provides", "When a review is triggered, the agent
runs", "the agent posts", and "it returns nothing" to address the reader
directly and use present tense, and update step headings and descriptions ("MR
summary pass", "Per-file reviews", "Inline comments") so they read like
instructions to the user (e.g., "You run a MR summary pass", "You run per-file
reviews", "You post inline comments" or similar) while preserving the original
meaning and sequence.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ab12e7a3-a174-49f2-b51f-16607592ad85
📥 CommitsReviewing files that changed from the base of the PR and between 29dfe17 and f643f86.
📒 Files selected for processing (6)
Sorry, something went wrong.
Replace the per-chunk (N LLM calls) architecture with a two-phase approach: 1. A single MR summary pass over all changed files to detect cross-file semantic changes (renames, signature changes, removed exports, etc.) that individual file reviewers should be aware of. 2. Per-file LLM reviews that batch all hunks for a file into a single call, parallelised across files via a concurrency-capped pool (MAX_CONCURRENT_FILE_REVIEWS = 5). This reduces LLM calls from one-per-hunk to one-per-file (plus one summary call), while giving each file review the full picture via the MR summary context. Additional changes: - Export `validateLogPath` from `invokeDiffReviewLlm` for reuse in the summary node - Add "How it works" section to the review agent docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Replace the per-chunk (N LLM calls) architecture with a two-phase approach:
semantic changes (renames, signature changes, removed exports, etc.)
that individual file reviewers should be aware of.
parallelised across files via a concurrency-capped pool
(MAX_CONCURRENT_FILE_REVIEWS = 5).
This reduces LLM calls from one-per-hunk to one-per-file (plus one summary
call), while giving each file review the full picture via the MR summary
context.
Additional changes:
summary node
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Summary by CodeRabbit
New Features
Improvements
Documentation