From 7decd43d1c79b3f45b96693a087e60cb1f4b38ae Mon Sep 17 00:00:00 2001
From: uinstinct <61635505+uinstinct@users.noreply.github.com>
Date: Wed, 19 Nov 2025 19:22:29 +0530
Subject: [PATCH] fix: plan mode system message should ask user to switch mode
---
extensions/cli/src/systemMessage.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/cli/src/systemMessage.ts b/extensions/cli/src/systemMessage.ts
index 1673914c458..b3277975e2a 100644
--- a/extensions/cli/src/systemMessage.ts
+++ b/extensions/cli/src/systemMessage.ts
@@ -171,7 +171,7 @@ export async function constructSystemMessage(
// Add plan mode specific instructions if in plan mode
if (mode === "plan") {
systemMessage +=
- '\nYou 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.\n';
+ '\nYou 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.\n';
} else {
// Check if commit signature is disabled via environment variable
if (!process.env.CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE) {