From 1f41f91c72c4ee9d651832761a4ffaf458a77b9d Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sun, 8 Mar 2026 17:55:16 -0300 Subject: [PATCH] fix(system-prompt): tell the model to respond in the prompt spoken language --- Taskfile.yaml | 4 ++++ internal/agent/templates/coder.md.tpl | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 476626fde4f0ed33d26fa20c2dc8b00ecd557af6..550b5e8558cb774b3af5d94f4f234a5d86309493 100644 --- a/Taskfile.yaml +++ b/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 diff --git a/internal/agent/templates/coder.md.tpl b/internal/agent/templates/coder.md.tpl index e0bbe34b92003a691a158a40d330db55b4b9c9b8..9787d2304202123b816909b33dd60d2c899687dd 100644 --- a/internal/agent/templates/coder.md.tpl +++ b/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 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