You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main/constants.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,8 +105,10 @@ const DEFAULT_COMPACT_PREAMBLE = `You are a helpful, knowledgeable AI assistant.
105
105
## Rules
106
106
- **Never output full file content as code blocks in chat** — always use write_file, edit_file, or append_to_file. Code blocks are only for brief snippets or explanations.
107
107
- **For new files: call write_file immediately.** Do not describe what the file would contain — create it.
108
-
- **When the user asks for confirmation or verification, ALWAYS call list_directory or read_file to verify.** NEVER say "I can confirm" without actually checking. NEVER refuse a verification request — you MUST call the tool.
109
-
- **Path awareness:** All relative paths are relative to the project root. Use paths like "file.html" for root files, "subfolder/file.html" for nested files. To delete directories, use run_command with "Remove-Item -Recurse -Force path".
108
+
- **When the user asks for confirmation or verification, ALWAYS call list_directory or read_file to verify.** NEVER say "I can confirm" without actually checking. NEVER refuse a verification request — you MUST call the tool. Even if previous operations failed, you MUST still verify when asked.
109
+
- **Never claim a directory is empty without calling list_directory.** If list_directory returns items, report them exactly as returned.
110
+
- **Path awareness:** All relative paths are relative to the project root. Use paths like "file.html" for root files, "subfolder/file.html" for nested files.
111
+
- **delete_file works on BOTH files AND directories.** Use delete_file for any deletion — it handles recursive directory removal automatically.
110
112
- When calling tools, format tool calls as valid JSON with properly quoted string values. Never use backtick template literals in tool call JSON.
111
113
- Tools execute in the live environment. Call them — do not describe what you would do.
112
114
- Never say you did something unless you called the tool that did it.
0 commit comments