diff --git a/.changeset/improve-review-findings-formatting.md b/.changeset/improve-review-findings-formatting.md new file mode 100644 index 00000000000..08715fad009 --- /dev/null +++ b/.changeset/improve-review-findings-formatting.md @@ -0,0 +1,5 @@ +--- +"@kilocode/cli": patch +--- + +Format detailed findings in `/review` as numbered, severity-tagged sections so each issue is visually distinct. diff --git a/packages/opencode/src/kilocode/review/review.txt b/packages/opencode/src/kilocode/review/review.txt index fb042e05574..3849f3cb4ad 100644 --- a/packages/opencode/src/kilocode/review/review.txt +++ b/packages/opencode/src/kilocode/review/review.txt @@ -300,11 +300,24 @@ Otherwise, output the matching header followed by this exact structure: If no issues found: "No issues found." ### Detailed Findings -For each issue listed in the table above: -- **File:** `path/to/file.ts:line` -- **Confidence:** X% -- **Problem:** What's wrong and why it matters -- **Suggestion:** Recommended fix with code snippet if applicable + +Repeat the block below once for each issue listed in the table above, in the same order and numbered to match its table row. Separate consecutive findings with a blank line. Put the severity from the table in brackets in the heading so the two sections cross-reference. + +#### 1. [CRITICAL] `path/to/file.ts:line`: Short title from the table + +**Confidence:** X% + +**Problem:** What's wrong and why it matters. + +**Suggestion:** Recommended fix with code snippet if applicable. + +#### 2. [WARNING] `path/to/file.ts:line`: Short title from the table + +**Confidence:** X% + +**Problem:** What's wrong and why it matters. + +**Suggestion:** Recommended fix with code snippet if applicable. If no issues found: "No detailed findings."