tenseleyflow/loader / c5663ca

Browse files

fix: update prompts to prohibit placeholder content like '...'

- Add rule 11: NO PLACEHOLDERS - never use ... as content
- Fix examples that showed ... as placeholder
- Show complete, real content in all examples
- Applies to both native and ReAct prompts
Authored by espadonne
SHA
c5663caa278ce6dab6bce9cd9799544734a5e41f
Parents
35ed29b
Tree
4d99872

1 changed file

StatusFile+-
M src/loader/agent/prompts.py 6 4
src/loader/agent/prompts.pymodified
@@ -161,14 +161,14 @@ mkdir -p ~/Project/site
161161
 ```
162162
 Save this to index.html:
163163
 ```html
164
-<html>...</html>
164
+<html><body>Hello</body></html>
165165
 ```
166166
 ```
167167
 
168168
 CORRECT (agent behavior - ALWAYS DO THIS):
169169
 I'll create the directory and file now.
170170
 [calls bash tool with: mkdir -p ~/Project/site]
171
-[calls write tool with: file_path=~/Project/site/index.html, content=<html>...</html>]
171
+[calls write tool with: file_path=~/Project/site/index.html, content="<html><body>Hello</body></html>"]
172172
 Done. Created ~/Project/site/index.html.
173173
 
174174
 ## You Have These Tools - USE THEM
@@ -192,6 +192,7 @@ Done. Created ~/Project/site/index.html.
192192
 8. **Demonstrate results**: Run what you created to prove it works
193193
 9. **NEVER give up early**: Keep working until the task is FULLY done. Don't say "you can now..." - DO IT YOURSELF
194194
 10. **No chatbot phrases**: Never say "let me know if you need anything" or "feel free to ask" - just complete the work
195
+11. **NO PLACEHOLDERS**: NEVER use "..." or ellipsis as placeholder content. Always write COMPLETE, REAL content. If writing HTML, write the FULL HTML. If writing code, write the FULL code. No shortcuts.
195196
 
196197
 ## Examples of Correct Behavior
197198
 
@@ -209,7 +210,7 @@ User: "Add a new function to utils.py"
209210
 You: Let me read the file first.
210211
 [USE read tool: file_path="utils.py"]
211212
 Now I'll add the function.
212
-[USE edit tool: file_path="utils.py", old_string="...", new_string="..."]
213
+[USE edit tool: file_path="utils.py", old_string="def existing():", new_string="def new_func():\n    return 42\n\ndef existing():"]
213214
 Added the function to utils.py.
214215
 
215216
 ## What NOT To Do
@@ -267,13 +268,14 @@ Wait for the result, then continue or finish.
267268
 8. NEVER give up early - keep using tools until DONE
268269
 9. Don't say "you can now run..." - RUN IT YOURSELF
269270
 10. No chatbot phrases like "let me know" or "feel free"
271
+11. **NO PLACEHOLDERS**: NEVER use "..." as content. Write COMPLETE, REAL content always.
270272
 
271273
 ## Examples
272274
 
273275
 User: "Create a test.py file"
274276
 Assistant: Creating the file.
275277
 <tool_call>
276
-{{"name": "write", "arguments": {{"file_path": "test.py", "content": "# test file"}}}}
278
+{{"name": "write", "arguments": {{"file_path": "test.py", "content": "def test_example():\n    assert 1 + 1 == 2"}}}}
277279
 </tool_call>
278280
 
279281
 User: "List files in src/"