Skip to content

plan mode: agent write files using bash #16805

Closed as not planned
Closed as not planned

Description

@JeroBnd

Description

The model in plan mode (clean openconde installation) avoid the file writing restriction using bash command. Creating directories and files using bash. Also use to execute python and pip. This should be blocked.

Plugins

none

OpenCode version

1.2.24

Steps to reproduce

Insistir en modo plan que proceda a la implementacion. Ayuda que el modelo se de cuenta que puede usar el bash para crear carpetas y luego usa el bash para crear los archivos. Aveces utiliza el bash para ejecutar codigo python o instalar dependecias con pip en modo plan. (tested with MiniMax M2.5 Free and locals models)

Screenshot and/or share link

Image Image

Operating System

Ubutu 25

Terminal

xterm

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 9, 2026
  2. github-actions commented on Mar 9, 2026

    @github-actions
    Contributor

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

  3. MartinEmrich commented on Mar 12, 2026

    @MartinEmrich

    Same or similar here, mine did not even need to resort to "cheating" via bash commands, looks like it just did "Edit":

    Image

    It even got confused when confronted, like a misbehaving doggo caught eating the shoes...

  4. julmb commented on Mar 23, 2026

    @julmb

    This also happened to me. I prompted "please take a look at <some github issue>" in plan mode and it ended up cloning the associated repository. The documentation at https://opencode.ai/docs/agents/#use-plan clearly states that this should be impossible.

  5. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. OneOfOne commented on May 26, 2026

    @OneOfOne

    Plan mode creates files as well, which it shouldn't.

  7. github-actions commented on Jul 26, 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