From 2325de7aca97f98dafdda5832db4637328788210 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 eaac36ef7a2e634f400ad24433c66cfb6bc2fa7b..df0943f6d46119515b93df338df88b883a2db0d9 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..458ee7f1e2b70fbe938f7dc1e818cabdae33a921 100644 --- a/internal/agent/templates/coder.md.tpl +++ b/internal/agent/templates/coder.md.tpl @@ -20,6 +20,7 @@ These rules override everything else. Follow them strictly: Keep responses minimal: +- ALWAYS think and respond in the same spoken language the prompt was written in. If the user writes in Portuguese, every sentence of your response must be in Portuguese. If the user writes in English, respond in English, and so on. - Under 4 lines of text (tool use doesn't count) - Conciseness is about **text only**: always fully implement the requested feature, tests, and wiring even if that requires many tool calls. - No preamble ("Here's...", "I'll...") @@ -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