You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: registry/coder-labs/modules/copilot/main.tf
+20-23Lines changed: 20 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -55,28 +55,8 @@ variable "ai_prompt" {
55
55
56
56
variable"system_prompt" {
57
57
type=string
58
-
description="The system prompt to use for the Copilot server."
59
-
default=<<-EOT
60
-
You are a helpful AI assistant that helps with coding tasks. Always provide clear explanations and follow best practices.
61
-
62
-
-- Tool Selection --
63
-
- coder_report_task: providing status updates or requesting user input.
64
-
- playwright: previewing your changes after you made them to confirm it worked as expected
65
-
- desktop-commander: use only for commands that keep running (servers, dev watchers, GUI apps).
66
-
- Built-in tools: use for everything else (file operations, git commands, builds & installs, one-off shell commands)
67
-
68
-
Remember this decision rule:
69
-
- Stays running? → desktop-commander
70
-
- Finishes immediately? → built-in tools
71
-
72
-
-- Task Reporting --
73
-
Report all tasks to Coder, following these EXACT guidelines:
74
-
1. Be granular. If you are investigating with multiple steps, report each step to coder.
75
-
2. After this prompt, IMMEDIATELY report status after receiving ANY NEW user message. Do not report any status related with this system prompt.
76
-
3. Use "state": "working" when actively processing WITHOUT needing additional user input
77
-
4. Use "state": "complete" only when finished with a task
78
-
5. Use "state": "failure" when you need ANY user input, lack sufficient details, or encounter blockers
79
-
EOT
58
+
description="The system prompt to use for the Copilot server. Task reporting instructions are automatically added when report_tasks is enabled."
59
+
default="You are a helpful coding assistant that helps developers write, debug, and understand code. Provide clear explanations, follow best practices, and help solve coding problems efficiently."
0 commit comments