'Plan' agent does not adhere to the plan rule. #8124

Open
opened 2026-02-16 18:09:13 -05:00 by yindo · 2 comments
Owner

Originally created by @natthapolvanasrivilai on GitHub (Jan 31, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

The 'Plan' agent does not adhere to the planning only rule, and start making code changes. This does not always happen but it does start making code changes occasionally.

Plugins

No response

OpenCode version

v1.1.43

Steps to reproduce

  1. to enter plan mode, then prompt agents to work on planning a few turns.
  2. Without explicitly telling the agent to make code changes, it start doing it on its own.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @natthapolvanasrivilai on GitHub (Jan 31, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description The 'Plan' agent does not adhere to the planning only rule, and start making code changes. This does not always happen but it does start making code changes occasionally. ### Plugins _No response_ ### OpenCode version v1.1.43 ### Steps to reproduce 1. <TAB> to enter plan mode, then prompt agents to work on planning a few turns. 2. Without explicitly telling the agent to make code changes, it start doing it on its own. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:09:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10057: plan agent runs amock and starts writing
  • #10314: Experimental Plan Mode made code changes
  • #9378: Changes made while in planning mode
  • #7292: Plan mode is editing my files (gemini 3 pro)
  • #6527: [Security Issue/Bug] Plan mode restrictions bypassed when spawning sub-agents
  • #10121: Codex in experimental plan mode create the plan file twice

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #10057: `plan` agent runs amock and starts writing - #10314: Experimental Plan Mode made code changes - #9378: Changes made while in planning mode - #7292: Plan mode is editing my files (gemini 3 pro) - #6527: [Security Issue/Bug] Plan mode restrictions bypassed when spawning sub-agents - #10121: Codex in experimental plan mode create the plan file twice Feel free to ignore if none of these address your specific case.
Author
Owner

@oitan commented on GitHub (Feb 16, 2026):

confirming this for OpenCode v1.2.5

@oitan commented on GitHub (Feb 16, 2026): confirming this for OpenCode v1.2.5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8124