From 449cf1b6d7ef34cd6953aa87bbed3e78355bb0f0 Mon Sep 17 00:00:00 2001 From: Bo He Date: Wed, 7 Jan 2026 17:00:55 +0800 Subject: [PATCH 1/2] Delete the redundant characters --- crates/agent/src/templates/system_prompt.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/templates/system_prompt.hbs b/crates/agent/src/templates/system_prompt.hbs index 2477e46a851838..49dfb837104224 100644 --- a/crates/agent/src/templates/system_prompt.hbs +++ b/crates/agent/src/templates/system_prompt.hbs @@ -181,7 +181,7 @@ The user has specified the following rules that should be applied: Rules title: {{title}} {{/if}} `````` -{{contents}}} +{{contents}} `````` {{/each}} {{/if}} From b85894880ae1b21e4537f653b545fd6242d5568c Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Wed, 7 Jan 2026 04:22:17 -0500 Subject: [PATCH 2/2] fix --- crates/agent/src/templates/system_prompt.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/templates/system_prompt.hbs b/crates/agent/src/templates/system_prompt.hbs index 49dfb837104224..4714bf3fbab570 100644 --- a/crates/agent/src/templates/system_prompt.hbs +++ b/crates/agent/src/templates/system_prompt.hbs @@ -32,7 +32,7 @@ If appropriate, use tool calls to explore the current project, which contains th - Bias towards not asking the user for help if you can find the answer yourself. - When providing paths to tools, the path should always start with the name of a project root directory listed above. - Before you read or edit a file, you must first find the full path. DO NOT ever guess a file path! -{{# if (contains available_tools 'grep') }} +{{#if (contains available_tools 'grep') }} - When looking for symbols in the project, prefer the `grep` tool. - As you learn about the structure of the project, use that information to scope `grep` searches to targeted subtrees of the project. - The user might specify a partial file path. If you don't know the full path, use `find_path` (not `grep`) before you read the file.