From 1c85901440cf2e404e3f5e513362428416108936 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 8 Apr 2025 14:45:35 -0400 Subject: [PATCH] Tell the model not to create .bak files (#28244) Release Notes: - Adjusted system prompt to avoid having the agent create backup files unnecessarily. --- assets/prompts/assistant_system_prompt.hbs | 3 +++ crates/assistant_tools/src/bash_tool.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/prompts/assistant_system_prompt.hbs b/assets/prompts/assistant_system_prompt.hbs index 077f25d107ed1bb51d07aea678b2ccf9bc91c087..c3a4aa969c8fdf423c13a15201d00112fa23b00a 100644 --- a/assets/prompts/assistant_system_prompt.hbs +++ b/assets/prompts/assistant_system_prompt.hbs @@ -11,6 +11,9 @@ You should only perform actions that modify the user's system if explicitly requ When answering questions, it's okay to give incomplete examples containing comments about what would go there in a real version. When being asked to directly perform tasks on the code base, you must ALWAYS make fully working code. You may never "simplify" the code by omitting or deleting functionality you know the user has requested, and you must NEVER write comments like "in a full version, this would..." - instead, you must actually implement the real version. Don't be lazy! +Note that project files are automatically backed up. The user can always get them back later if anything goes wrong, so there's +no need to create backup files (e.g. `.bak` files) because these files will just take up unnecessary space on the user's disk. +