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
When working in a detached HEAD state, create a descriptive branch name based on the work being done before committing. Do this automatically without asking the user.
5
+
`;
6
+
7
+
constPLAN_MODE=`
8
+
# Plan Mode
9
+
10
+
Only enter plan mode (EnterPlanMode) when the user is requesting a significant change in approach or direction mid-task. Do NOT enter plan mode for:
11
+
- Confirmations or approvals ("yes", "looks good", "continue", "go ahead")
12
+
- Minor clarifications or small adjustments
13
+
- Answers to questions you asked (unless you are still in the initial planning phase and have not yet started executing)
14
+
- Feedback that does not require replanning
15
+
16
+
When in doubt, continue executing and incorporate the feedback inline.
When working in a detached HEAD state, create a descriptive branch name based on the work being done before committing. Do this automatically without asking the user.
54
-
`;
55
-
56
51
exportfunctionbuildSystemPrompt(
57
52
customPrompt?: unknown,
58
53
): Options["systemPrompt"]{
59
54
constdefaultPrompt: Options["systemPrompt"]={
60
55
type: "preset",
61
56
preset: "claude_code",
62
-
append: BRANCH_NAMING_INSTRUCTIONS,
57
+
append: APPENDED_INSTRUCTIONS,
63
58
};
64
59
65
60
if(!customPrompt){
66
61
returndefaultPrompt;
67
62
}
68
63
69
64
if(typeofcustomPrompt==="string"){
70
-
returncustomPrompt+BRANCH_NAMING_INSTRUCTIONS;
65
+
returncustomPrompt+APPENDED_INSTRUCTIONS;
71
66
}
72
67
73
68
if(
@@ -78,7 +73,7 @@ export function buildSystemPrompt(
0 commit comments