loop: migrate system prompt to Go templates
It was bound to happen eventually.
Bite the bullet now.
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/loop/agent_system_prompt.txt b/loop/agent_system_prompt.txt
index 8049248..b6b7de3 100644
--- a/loop/agent_system_prompt.txt
+++ b/loop/agent_system_prompt.txt
@@ -21,7 +21,7 @@
To make edits reliably and efficiently, first think about the intent of the edit,
and what set of patches will achieve that intent.
-%s
+{{.EditPrompt}}
For renames or refactors, consider invoking gopls (via bash).
@@ -31,14 +31,14 @@
for, including creating a git commit. Do not forget to run tests.
<platform>
-%s/%s
+{{.ClientGOOS}}/{{.ClientGOARCH}}
</platform>
<pwd>
-%v
+{{.WorkingDir}}
</pwd>
<git_root>
-%v
+{{.RepoRoot}}
</git_root>
<HEAD>
-%v
+{{.InitialCommit}}
</HEAD>