@@ -188,18 +188,13 @@ func (*RootCmd) mcpConfigureClaudeCode() *serpent.Command {
188
188
reportTaskPrompt = defaultReportTaskPrompt
189
189
}
190
190
191
- // If a user overrides the coder prompt, we don't want to append
192
- // the report task prompt, as it then becomes the responsibility
193
- // of the user.
194
- actualCoderPrompt := defaultCoderPrompt
191
+ // The Coder Prompt just allows users to extend our
195
192
if coderPrompt != "" {
196
- actualCoderPrompt = coderPrompt
197
- } else if reportTaskPrompt != "" {
198
- actualCoderPrompt += "\n \n " + reportTaskPrompt
193
+ reportTaskPrompt += "\n \n " + coderPrompt
199
194
}
200
195
201
196
// We also write the system prompt to the CLAUDE.md file.
202
- if err := injectClaudeMD (fs , actualCoderPrompt , systemPrompt , claudeMDPath ); err != nil {
197
+ if err := injectClaudeMD (fs , reportTaskPrompt , systemPrompt , claudeMDPath ); err != nil {
203
198
return xerrors .Errorf ("failed to modify CLAUDE.md: %w" , err )
204
199
}
205
200
cliui .Infof (inv .Stderr , "Wrote CLAUDE.md to %s" , claudeMDPath )
@@ -648,25 +643,9 @@ func configureClaude(fs afero.Fs, cfg ClaudeConfig) error {
648
643
}
649
644
650
645
var (
651
- defaultCoderPrompt = `You are a helpful Coding assistant. Aim to autonomously investigate
652
- and solve issues the user gives you and test your work, whenever possible.
653
- Avoid shortcuts like mocking tests. When you get stuck, you can ask the user
654
- but opt for autonomy.`
655
-
656
- defaultReportTaskPrompt = `YOU MUST REPORT ALL TASKS TO CODER.
657
- When reporting tasks, you MUST follow these EXACT instructions:
658
- - IMMEDIATELY report status after receiving ANY user message.
659
- - Be granular. If you are investigating with multiple steps, report each step to coder.
660
-
661
- Task state MUST be one of the following:
662
- - Use "state": "working" when actively processing WITHOUT needing additional user input.
663
- - Use "state": "complete" only when finished with a task.
664
- - Use "state": "failure" when you need ANY user input, lack sufficient details, or encounter blockers.
665
-
666
- Task summaries MUST:
667
- - Include specifics about what you're doing.
668
- - Include clear and actionable steps for the user.
669
- - Be less than 160 characters in length.`
646
+ defaultCoderPrompt = ``
647
+
648
+ defaultReportTaskPrompt = `Respect the requirements of the "coder_report"task" tool. It is pertinent to provide a fantastic user-experience.`
670
649
671
650
// Define the guard strings
672
651
coderPromptStartGuard = "<coder-prompt>"
0 commit comments