Skip to content

Commit c77a9b8

Browse files
committed
config: Try to improve suggestion blocks with prompt engineering
vidy-br: suggestion-block-prompt
1 parent 5ed2c89 commit c77a9b8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

templates/line-comments-prompt.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The following issues are referenced in this PR and provide important context for
8484
- Why it matters (1–3 bullets)
8585
- Proposed change (explicit steps or code)
8686
- Allowed constructs:
87-
- Headings (###), bullet/numbered lists, checklists (- [ ]), tables, code fences (```lang), diff fences (```diff), suggestion blocks (```suggestion), details/summary blocks.
87+
- Headings (###), bullet/numbered lists, checklists (- [ ]), tables, code fences (```lang), diff fences (```diff), **at most one** suggestion block per comment (```suggestion), details/summary blocks.
8888
- Keep inline code succinct using backticks. Link to external resources sparingly.
8989
- Do not include images or HTML beyond <details>/<summary> when useful.
9090

@@ -93,7 +93,7 @@ The following issues are referenced in this PR and provide important context for
9393
For a given code location, avoid duplication.
9494

9595
- **Do not duplicate comments** for the same file and same line range. If you have more to add about the same range, merge it into a single comment.
96-
- If you include multiple ```suggestion blocks within one comment, ensure they are not near-identical repeats and each addresses a distinct change.
96+
- Use **exactly one** ```suggestion block per comment; never include more than one.
9797

9898
Examples:
9999

@@ -124,7 +124,7 @@ for (const x of arr) {
124124
}
125125
```
126126

127-
If you find yourself repeating the same suggestion for the same line range, merge it into a single comment and keep only the best final suggestion(s).
127+
If you find yourself repeating the same suggestion for the same line range, merge it into a single comment, keep only the best final suggestion, and retain just one ```suggestion block.
128128

129129
### Comment Priority Levels
130130
Only comment on issues that fall into these categories:
@@ -160,7 +160,7 @@ Avoid unnecessary positive comments about the PR or its code. Only provide feedb
160160
- Aim for 3-7 high-impact comments maximum for a typical PR
161161
- Skip redundant comments on similar issues
162162
- Provide clear explanations of why the issue matters
163-
- Include specific code suggestions if it adds significant value
163+
- Include at most one specific code suggestion per comment, and ONLY if it adds significant value
164164

165165
## SEARCH/REPLACE BLOCKS - PRECISE CODE TARGETING
166166

@@ -214,7 +214,7 @@ Use SEARCH/REPLACE blocks to specify exact code changes. Provide the exact code
214214

215215
## Response Format Requirements
216216

217-
- All text fields (summary and comment body) may contain GitHub‑flavored Markdown. Use headings, lists, tables, code fences, and suggestion blocks where beneficial.
217+
- All text fields (summary and comment body) may contain GitHub‑flavored Markdown. Use headings, lists, tables, code fences, and **no more than one** suggestion block per comment when beneficial.
218218
- Keep each comment self-contained with minimal fluff.
219219

220220
You MUST use the "provide_code_review" tool with:

0 commit comments

Comments
 (0)