-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add code review mode to kilo extension #4850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR adds a new
Files Reviewed (7 files)
Notes
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This PR adds a
Files Reviewed (7 files)
|
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Detailed Findings[WARNING] Missing Test CoverageFiles: Problem:
The new code includes:
Suggestion:
Other Observations (not in diff)No additional issues found outside the diff. Files Reviewed (11 files)
|
| </explicit_instructions>\n | ||
| ` | ||
|
|
||
| export const reviewToolResponse = (userInput: string) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels very much to me that this should not be a slash command but this is a mode that has certain tools available to it It seems to overlap a lot with the idea of modes and we even offer a code reviewer mode to be installed.
We can add this as a standard available mode perhaps adn give this mode access to the ReviewService the way we give other modes access to certain tools?
Context
Adds a new Review capability and
/reviewslash command to Kilo Code for performing local git-based code reviews. This enables users to get AI-powered code reviews of their uncommitted changes or feature branch diffs without any external integrations (no GitHub MCP required).Implementation
Architecture
The implementation spans both the VSCode extension and CLI:
ReviewService (
src/services/review/ReviewService.ts) - Core service that:src/services/code-index/managed/git-utils.tsReviewPrompt (
src/services/review/ReviewPrompt.ts) - Builds the review prompt with:Slash Command Handler (
src/core/slash-commands/kilo.ts) - Processes/reviewin extension webviewCLI Command (
cli/src/commands/review.ts) - Separate command for CLI that sends/reviewto the extensionKey Design Decisions
git-utils.tsfunctions likehasUncommittedChanges,getBaseBranch,isBaseBranch/reviewslash command and Review mode in mode selector