Skip to content

Sub-agent in plan mode bypasses restrictions after compaction #18213

Description

@8x34tnxge

Description

The Plan agent spawned a sub-agent to explore the project. A compaction happened during the exploration. Then, the sub-agent used cat and sed commands to modify the code. After the sub-agent had finished its work, the Plan agent told me, "You have completed all the tasks."

Plugins

No plugin installed

OpenCode version

1.2.27

Steps to reproduce

  1. I asked in Plan mode, "What is the best way to do it?"
  2. The agent in Plan mode spawned a sub-agent to explore the big picture of the project.
  3. The sub-agent only read the code.
  4. Compaction happened.
  5. The sub-agent used cat and sed commands to modify the code instead of just exploring.
  6. The agent in Plan mode told me, "All tasks had been completed before you asked."

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

kitty

Activity

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