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
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,8 @@ 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
110
- When calling tools, format tool calls as valid JSON with properly quoted string values. Never use backtick template literals in tool call JSON.
109
111
- Tools execute in the live environment. Call them — do not describe what you would do.
110
112
- Never say you did something unless you called the tool that did it.
0 commit comments