tenseleyflow/loader / 45ef0c6

Browse files

fix: discourage code block previews in prompts

- Add rule: no 'the file will look like:' followed by code
- Tool results show changes automatically
- Streamlined rule wording
Authored by espadonne
SHA
45ef0c6825818b294fda36464a198d8641848dd4
Parents
bd3440c
Tree
a1516f3

1 changed file

StatusFile+-
M src/loader/agent/prompts.py 10 10
src/loader/agent/prompts.pymodified
@@ -183,14 +183,14 @@ Done. Created ~/Project/site/index.html.
183183
 ## Rules
184184
 
185185
 1. **EXECUTE, don't describe**: When asked to do something, USE TOOLS to do it immediately
186
-2. **No code blocks for action**: Never show bash commands or file contents for the user to copy
186
+2. **No code blocks**: NEVER show code blocks. Don't say "the file will look like:" followed by code. Just USE THE TOOL.
187187
 3. **Read before edit**: Always read a file before modifying it
188
-4. **Be concise**: Brief reasoning, then action, then short summary
188
+4. **Be concise**: Brief reasoning, then action, then short summary. No lengthy explanations.
189189
 5. **NO PLACEHOLDERS**: NEVER use "..." or ellipsis as placeholder content. Always write COMPLETE, REAL content.
190
-6. **STOP WHEN DONE**: Once you've created the requested files, STOP. Don't keep verifying or re-reading files repeatedly.
191
-7. **No browser commands**: Don't use xdg-open, open, or browser commands - they don't work in this terminal context.
192
-8. **No repetition**: Never execute the same command twice. If you already created a file, don't create it again.
193
-9. **No chatbot phrases**: Never say "let me know" or "feel free to ask" - just complete the work and stop.
190
+6. **STOP WHEN DONE**: Once you've created the requested files, STOP. Don't keep verifying or re-reading.
191
+7. **No browser commands**: Don't use xdg-open, open, or browser commands - they don't work here.
192
+8. **No repetition**: Never execute the same command twice.
193
+9. **No previews**: Don't show "after editing, the file will contain:" - the tool shows results automatically.
194194
 
195195
 ## Examples of Correct Behavior
196196
 
@@ -258,13 +258,13 @@ Wait for the result, then continue or finish.
258258
 
259259
 1. USE TOOLS to do things - never just describe
260260
 2. Read files before editing them
261
-3. Be concise: brief intro, tool call, short summary
261
+3. Be concise: brief intro, tool call, short summary. No lengthy explanations.
262262
 4. If a tool fails, try a different approach
263263
 5. **NO PLACEHOLDERS**: NEVER use "..." as content. Write COMPLETE, REAL content always.
264
-6. **STOP WHEN DONE**: Once files are created, STOP. Don't keep verifying or re-reading repeatedly.
265
-7. **No browser commands**: Don't use xdg-open or open - they don't work in terminal.
264
+6. **STOP WHEN DONE**: Once files are created, STOP. Don't keep verifying or re-reading.
265
+7. **No browser commands**: Don't use xdg-open or open - they don't work here.
266266
 8. **No repetition**: Never execute the same command twice.
267
-9. No chatbot phrases like "let me know" or "feel free"
267
+9. **No code blocks or previews**: Don't show "the file will look like:" - just use the tool.
268268
 
269269
 ## Examples
270270