Skip to content

feat: Force exhaustive first-pass analysis in code review prompts#323

Merged
alex-alecu merged 3 commits intomainfrom
fix-drip-feed-review-comments
Feb 18, 2026
Merged

feat: Force exhaustive first-pass analysis in code review prompts#323
alex-alecu merged 3 commits intomainfrom
fix-drip-feed-review-comments

Conversation

@alex-alecu
Copy link
Copy Markdown
Contributor

@alex-alecu alex-alecu commented Feb 18, 2026

Root cause

AI agent was interleaving analysis and commenting — it would find an issue, post it, then move on. The new prompt enforces a strict two-phase approach: complete all analysis first, then post everything at once. This should eliminate the drip-feed pattern across revisions.

The fix

  1. New hard constraint App Builder - Unit and Integration tests #7"ALL issues in ONE pass": Explicitly tells the AI to report every issue it finds in a single review and frames finding new issues on unchanged code in subsequent revisions as a failure of the first review.

  2. Restructured workflow — Two key changes:

    • Step 1 renamed from "Analyze the PR/MR" to "Analyze ALL Changed Files (complete this BEFORE posting any comments)" with a bold instruction: "Do NOT post any comments until you have reviewed EVERY changed file. Analyze ALL files first, THEN comment."
    • The per-file instructions now explicitly say "Check for ALL issue types" and "Note every issue you find — do NOT stop at the first issue per file"
    • Steps 2-3 are renamed to emphasize "ALL Issues" rather than individual verification

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Feb 18, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • src/lib/code-reviews/prompts/default-prompt-template.json
  • src/lib/code-reviews/prompts/default-prompt-template-gitlab.json

@alex-alecu alex-alecu merged commit 94f31f9 into main Feb 18, 2026
12 checks passed
@alex-alecu alex-alecu deleted the fix-drip-feed-review-comments branch February 18, 2026 21:50
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.

2 participants