Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Sureshkumars
Copy link
Member

Context

Implements Review Mode - a new mode that allows users to perform local code reviews using git diffs. Users can review either uncommitted changes or full branch diffs against the base branch.

Implementation

  • Added "review" mode to DEFAULT_MODES with read-only tools (read, browser, mcp, command)
  • Created ReviewService in src/services/review/ to detect available review scopes and generate file summaries
  • Added ReviewScopeSelector dialog in webview for users to choose between "Uncommitted changes" and "Branch diff"
  • Agent dynamically explores changes using git tools rather than receiving pre-generated diff content
  • Added git utilities: detectBaseBranch(), hasUncommittedChanges(), getBranchDiff(), etc.

How to Test

  1. Open a git repository with uncommitted changes or on a feature branch
  2. Switch to "Review" mode from the mode selector
  3. Select either "Uncommitted changes" or "Branch diff" scope
  4. The agent should analyze the changes and provide code review feedback
image image

@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

🦋 Changeset detected

Latest commit: 08c5c55

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
kilo-code Major
@kilocode/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 26, 2026

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 2
Issue Details (click to expand)

WARNING

File Line Issue
webview-ui/src/components/chat/ReviewScopeSelector.tsx 47 Uses selectedScope instead of effectiveScope - when user's selection is unavailable, the wrong scope will be sent
src/services/review/ReviewService.ts 26 Untracked files (?) are converted to added (A), losing their distinct status

SUGGESTION

File Line Issue
packages/types/src/vscode-extension-host.ts 259 Comment says "Skills data response" but describes skillsData which is correct - however the adjacent askReviewScope comment pattern is inconsistent
packages/types/src/vscode-extension-host.ts 950 Comment says "Request skills data refresh" but describes refreshSkills which is correct - however the adjacent reviewScopeSelected comment pattern is inconsistent
Files Reviewed (12 files)
  • .changeset/flat-jobs-wink.md - No issues
  • cli/src/state/atoms/__tests__/keyboard.test.ts - No issues (test updates for new mode)
  • packages/types/src/mode.ts - No issues (new Review mode definition)
  • packages/types/src/vscode-extension-host.ts - 2 suggestions (comment consistency)
  • src/core/webview/ClineProvider.ts - No issues (discussed: hardcoding pattern matches architect mode)
  • src/services/review/ReviewService.ts - 1 warning (untracked file status)
  • src/services/review/__tests__/ReviewService.spec.ts - No issues
  • src/services/review/__tests__/prompts.spec.ts - No issues
  • src/services/review/index.ts - No issues
  • src/services/review/prompts.ts - No issues
  • src/services/review/types.ts - No issues
  • src/utils/git.ts - No issues (new git utilities)
  • webview-ui/src/components/chat/ChatView.tsx - No issues
  • webview-ui/src/components/chat/ReviewScopeSelector.tsx - 1 warning (scope bug)
  • webview-ui/src/components/chat/__tests__/ReviewScopeSelector.spec.tsx - No issues

Fix these issues in Kilo Cloud

@Sureshkumars Sureshkumars force-pushed the feat/local-review-mode branch from 8811a4a to 5a49128 Compare January 27, 2026 08:50
Sureshkumars and others added 2 commits January 27, 2026 11:46
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@Sureshkumars Sureshkumars merged commit a2189d5 into main Jan 27, 2026
12 checks passed
@Sureshkumars Sureshkumars deleted the feat/local-review-mode branch January 27, 2026 11:05
@github-actions github-actions bot mentioned this pull request Jan 27, 2026
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.

3 participants