From 17bb293aabc34e75a5337eaf50e2611533984786 Mon Sep 17 00:00:00 2001 From: Jirasak Date: Fri, 24 Oct 2025 17:34:23 +0700 Subject: [PATCH] mod: add extra instructions --- pr_agent/settings/configuration.toml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 5e21b4f8cc..3dd6557f8e 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -139,7 +139,29 @@ commitable_code_suggestions = false dual_publishing_score_threshold=-1 # -1 to disable, [0-10] to set the threshold (>=) for publishing a code suggestion both in a table and as commitable focus_only_on_problems=true # -extra_instructions = "" +extra_instructions = """\ +- Always apply clean code principles in suggestions: + - Meaningful variable/function names + - Single responsibility principle + - Consistent formatting and style +- Follow DRY (Don't Repeat Yourself) principle: + - Extract duplicated code into reusable functions + - Identify and consolidate similar logic +- Identify and fix potential bugs: + - Edge cases handling + - Input validation + - Error handling + - Resource cleanup +- Improve code readability: + - Add clear comments for medium to complex logic + - Break down long functions + - Use descriptive variable names + - Proper code organization +- Maintain existing core logic: + - Keep business logic unchanged + - Focus on implementation improvements + - Preserve existing functionality +""" enable_help_text=false enable_chat_text=false persistent_comment=true