improve prompts

This commit is contained in:
AI Christianson 2025-02-25 17:13:17 -05:00
parent 78793bb786
commit 3f2a706ff6
1 changed files with 6 additions and 4 deletions

View File

@ -58,7 +58,9 @@ def run_programming_task(
Before using this tool, ensure all related files have been emitted with emit_related_files.
The programmer sees only what you provide, no conversation history.
The programmer sees *ONLY* what you provide, no conversation history.
If you have not called emit_related_files on files that the programmer will need, the programmer will *NOT* be able to see them.
Give detailed instructions including multi-file tasks but do not write the code in the instructions.
@ -66,8 +68,6 @@ def run_programming_task(
The programmer cannot run commands or see context other than related files and what you say in the instructions.
If new files are created, emit them after finishing.
They can add/modify files, but not remove. Use run_shell_command to remove files. If referencing files you'll delete, remove them after they finish.
If the programmer wrote files, they actually wrote to disk. You do not need to rewrite the output of what the programmer showed you.
@ -155,9 +155,11 @@ def run_programming_task(
# Log the programming task
log_work_event(f"Executed programming task: {_truncate_for_log(instructions)}")
extra_ins = "\n\nRemember to call emit_related_files on any new files created!"
# Return structured output
return {
"output": truncate_output(result[0].decode()) if result[0] else "",
"output": (truncate_output(result[0].decode()) + extra_ins) if result[0] else "",
"return_code": result[1],
"success": result[1] == 0,
}