Tell the model not to create .bak files (#28244)

Release Notes:

- Adjusted system prompt to avoid having the agent create backup files
unnecessarily.
This commit is contained in:
Richard Feldman 2025-04-08 14:45:35 -04:00 committed by GitHub
parent 9fb77ad176
commit 1c85901440
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -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.
<style>
Editing code:
- Make sure to take previous edits into account.