From dbd47702b2bd1e4ded374d50f8b089b064874322 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:49:04 -0500 Subject: [PATCH] fix(core): tell plan agent to discuss plans instead of writing files by default (#46905) --- packages/core/src/plugin/plan.ts | 2 +- packages/core/test/plugin/plan.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/plugin/plan.ts b/packages/core/src/plugin/plan.ts index a271d03cfdf..68799b9bc39 100644 --- a/packages/core/src/plugin/plan.ts +++ b/packages/core/src/plugin/plan.ts @@ -12,7 +12,7 @@ import { Permission } from "../permission.js" const plan = Agent.ID.make("plan") const enter = (directory: string) => ` -You are in Plan mode. You may optionally create or update plan documents in: +You are in Plan mode. Discuss the plan with the user directly in the conversation. Do not create or update plan files unless the user explicitly asks you to; when they do, write them only in: ${directory} Do not modify any other files or ask a subagent to do so. diff --git a/packages/core/test/plugin/plan.test.ts b/packages/core/test/plugin/plan.test.ts index 5c841a76ba3..25b14394b2b 100644 --- a/packages/core/test/plugin/plan.test.ts +++ b/packages/core/test/plugin/plan.test.ts @@ -166,7 +166,7 @@ describe("plan plugin reminders", () => { const { persisted } = yield* run([agentSelected(plan, build), agentSelected(build, plan)]) yield* settle(persisted, 2) expect(persisted[0]).toContain("You are in Plan mode") - expect(persisted[0]).toContain("optionally create or update plan documents") + expect(persisted[0]).toContain("Do not create or update plan files unless the user explicitly asks you to") expect(persisted[0]).toContain(planDirectory) expect(persisted[0]).toContain("Do not modify any other files") expect(persisted[1]).toContain("NO LONGER in Plan mode")