Skip to content

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

Closed as not planned
Closed as not planned

Description

@natthapolvanasrivilai

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

Activity

  1. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

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

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

  2. oitan commented on Feb 16, 2026

    @oitan

    confirming this for OpenCode v1.2.5

  3. ozozozd commented on Mar 5, 2026

    @ozozozd

    Confirming as well.

    I am under the impression that the decision to write or not remains with the model. In other words, the plan contract isn't enforced by OpenCode's architecture, it's expected to be respected by the LLM.

  4. xmready commented on Mar 20, 2026

    @xmready

    I'm also confirming this. Sometimes plan mode asks me for permission before creating /tmp directories and files and sometimes it just does it. Whatever the guardrails are, they need to be made more sturdy.

  5. removed
    bugSomething isn't working
    on May 3, 2026
  6. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions