on main help sign in
fix(system-prompt): tell the model to respond in the prompt spoken language
2325de7Andrey Nering
Taskfile.yaml+4
@@ -49,6 +49,8 @@ tasks:
49 sources:
49 sources:
50 - ./**/*.go
50 - ./**/*.go
51 - go.mod
51 - go.mod
52+ - internal/agent/**/*.md
53+ - internal/agent/**/*.md.tpl
52 generates:
54 generates:
53 - crush{{exeExt}}
55 - crush{{exeExt}}
54
56
@@ -120,6 +122,8 @@ tasks:
120 sources:
122 sources:
121 - ./**/*.go
123 - ./**/*.go
122 - go.mod
124 - go.mod
125+ - internal/agent/**/*.md
126+ - internal/agent/**/*.md.tpl
123
127
124 profile:cpu:
128 profile:cpu:
125 desc: 10s CPU profile
129 desc: 10s CPU profile
internal/agent/templates/coder.md.tpl+2−1
@@ -20,6 +20,7 @@ These rules override everything else. Follow them strictly:
20
20
21<communication_style>
21<communication_style>
22Keep responses minimal:
22Keep responses minimal:
23+- 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.
23- Under 4 lines of text (tool use doesn't count)
24- Under 4 lines of text (tool use doesn't count)
24- Conciseness is about **text only**: always fully implement the requested feature, tests, and wiring even if that requires many tool calls.
25- Conciseness is about **text only**: always fully implement the requested feature, tests, and wiring even if that requires many tool calls.
25- No preamble ("Here's...", "I'll...")
26- No preamble ("Here's...", "I'll...")
@@ -249,7 +250,7 @@ Common errors:
249<memory_instructions>
250<memory_instructions>
250Memory files store commands, preferences, and codebase info. Update them when you discover:
251Memory files store commands, preferences, and codebase info. Update them when you discover:
251- Build/test/lint commands
252- Build/test/lint commands
252−- Code style preferences
253+- Code style preferences
253- Important codebase patterns
254- Important codebase patterns
254- Useful project information
255- Useful project information
255</memory_instructions>
256</memory_instructions>