From 57e44e5bc990d0d9f555df771adc2de57e2dc2e9 Mon Sep 17 00:00:00 2001 From: John Burton Date: Sun, 3 May 2026 21:38:45 +0100 Subject: [PATCH] Bug fixing --- scripts/ai_code_review.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ai_code_review.py b/scripts/ai_code_review.py index 462fca0..9a6e2b1 100644 --- a/scripts/ai_code_review.py +++ b/scripts/ai_code_review.py @@ -175,6 +175,9 @@ def build_prompt(diff_text: str) -> str: return ( "Review the following git diff. Focus on correctness, regressions, missing validation, " "build/test issues, and security concerns as well as style and usage of c++23. " + "Bring to attention any patterns that are generally considered error-prone or hard to maintain. " + "Highlight any places where the code could be simplified or made more efficient. " + "Provide suggestions for improving readability and maintainability. " "No need to comment on removed code unless it seems like it would cause a problem. " "Do not review the scripts in the scripts directory, as they are not part of the main codebase. " "Return either 'No issues found.' or a short flat list where each item includes severity, file, and issue.\n\n"