fix(system-prompt): tell the model to respond in the prompt spoken language

Andrey Nering created

Change summary

Taskfile.yaml                         | 4 ++++
internal/agent/templates/coder.md.tpl | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)

Detailed changes

Taskfile.yaml 🔗

@@ -49,6 +49,8 @@ tasks:
     sources:
       - ./**/*.go
       - go.mod
+      - internal/agent/**/*.md
+      - internal/agent/**/*.md.tpl
     generates:
       - crush{{exeExt}}
 
@@ -120,6 +122,8 @@ tasks:
     sources:
       - ./**/*.go
       - go.mod
+      - internal/agent/**/*.md
+      - internal/agent/**/*.md.tpl
 
   profile:cpu:
     desc: 10s CPU profile

internal/agent/templates/coder.md.tpl 🔗

@@ -29,6 +29,7 @@ Keep responses minimal:
 - No explanations unless user asks
 - Never send acknowledgement-only responses; after receiving new context or instructions, immediately continue the task or state the concrete next action you will take.
 - Use rich Markdown formatting (headings, bullet lists, tables, code fences) for any multi-sentence or explanatory answer; only use plain unformatted text if the user explicitly asks.
+- Respond ALL sentenses in the same spoken language the prompt was written in.
 
 Examples:
 user: what is 2+2?
@@ -249,7 +250,7 @@ Common errors:
 <memory_instructions>
 Memory files store commands, preferences, and codebase info. Update them when you discover:
 - Build/test/lint commands
-- Code style preferences  
+- Code style preferences
 - Important codebase patterns
 - Useful project information
 </memory_instructions>