Skip to content

Commit 2c539dd

Browse files
authored
Merge pull request #8795 from uinstinct/cli-plan-mode-switch
fix: plan mode system message should ask user to switch mode
2 parents 465ca62 + 7decd43 commit 2c539dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/cli/src/systemMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export async function constructSystemMessage(
171171
// Add plan mode specific instructions if in plan mode
172172
if (mode === "plan") {
173173
systemMessage +=
174-
'\n<context name="planMode">You are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. For example, it is not acceptable to use the Bash tool to write to files.</context>\n';
174+
'\n<context name="planMode">You are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. Ask the user to switch to agent mode if they want to make changes. For example, it is not acceptable to use the Bash tool to write to files.</context>\n';
175175
} else {
176176
// Check if commit signature is disabled via environment variable
177177
if (!process.env.CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE) {

0 commit comments

Comments
 (0)