[BUG] Plan Mode (Opus Plan): Claude executes file edits instead of only planning when iterating on the plan

Resolved 💬 7 comments Opened Apr 1, 2026 by matheuspimentaa Closed Jun 13, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using the Opus Plan mode (plan with Opus, execute with Sonnet), Claude correctly generates the plan. However, when I iterate on the plan by providing additional prompts/feedback instead of accepting or rejecting it, Claude starts executing file edits directly instead of updating the plan.

In Plan Mode, Claude should not have permission to create or edit files — it should only refine the plan. But instead of iterating on the plan, it proceeds to make actual file modifications (reads, writes, updates) as if it were in execution mode.

This happens consistently when I provide follow-up prompts to refine the plan before accepting it. Claude interprets the iteration as an instruction to execute rather than to revise the plan.

As shown in the attached screenshots:

  1. Claude reads files and analyzes the context correctly during planning
  2. Claude generates the plan and writes it to the .claude/plans/ directory
  3. When I provide feedback to iterate on the plan (instead of accepting/rejecting), Claude starts executing file edits — updating actual project files with Update operations, which should not be allowed in Plan Mode

<img width="1891" height="625" alt="Image" src="https://github.com/user-attachments/assets/90d1cd03-9c4b-44f2-9455-340e44868b2f" />

<img width="1795" height="499" alt="Image" src="https://github.com/user-attachments/assets/9df44c41-9fe1-4f16-a8b1-120813956b5a" />

What Should Happen?

When in Plan Mode (Opus Plan), iterating on the plan by providing additional prompts should cause Claude to revise/update the plan only — not execute any file creation or modification operations.

Specifically:

  • After generating a plan, if the user provides feedback or additional context, Claude should refine the plan within the .claude/plans/ directory
  • Claude should not perform Update, Write, or any file modification operations on actual project files while still in Plan Mode
  • File edits should only happen after the user explicitly accepts the plan and transitions to execution mode (Sonnet)

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code and set the model configuration to Opus Plan (plan with Opus, execute with Sonnet)
  2. Give Claude a task that requires file modifications (e.g., resolving code review comments on a PR)
  3. Claude will read files, analyze the context, and generate a plan — writing it to .claude/plans/<plan-name>.md
  4. Instead of accepting or rejecting the plan, provide additional feedback/prompts to iterate on the plan (e.g., clarify requirements, add context, or ask for adjustments)
  5. Observe: Claude starts executing actual file edits (Update operations on project files) instead of revising the plan
  6. The file modifications happen directly on the codebase, bypassing the plan approval step

Note: This happens consistently when iterating on the plan. The bug appears to be that Claude treats follow-up prompts during plan review as execution instructions rather than plan refinement requests.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.89 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

Screenshots

Screenshots attached below showing the behavior:

  • Screenshot 1: Claude reads files, analyzes CodeRabbit review comments, generates insights, and creates a plan file at .claude/plans/dynamic-shimmying-river.md. This is the expected planning behavior.

<img width="1891" height="625" alt="Image" src="https://github.com/user-attachments/assets/da8e8e8d-fe6b-45e9-b30f-392fe5ef3738" />

  • Screenshot 2: After providing follow-up feedback to iterate on the plan, Claude immediately starts executing file edits — performing Update operations on actual project files (e.g., negotiate.md) with real code changes (adding/removing lines), which should not be allowed in Plan Mode. A Tool use rejected message is also visible, suggesting the system partially blocks the action but Claude still proceeds with edits.

<img width="1795" height="499" alt="Image" src="https://github.com/user-attachments/assets/0b23d49b-f31e-4176-b11b-6ac8641ea1c2" />

Workflow Context

I use the Opus Plan workflow extensively to plan complex tasks before executing them. The ability to iterate on plans is critical to my workflow. Currently, I have to be very careful not to provide any follow-up feedback after a plan is generated, because Claude will break out of Plan Mode and start editing files directly.

Frequency

This happens consistently — nearly every time I try to iterate on a plan instead of immediately accepting or rejecting it.

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗