Subagents trying to execute destructive actions (edit/delete) in Plan Mode #1732

Closed
opened 2026-02-16 17:32:22 -05:00 by yindo · 5 comments
Owner

Originally created by @NaikSoftware on GitHub (Sep 16, 2025).

Originally assigned to: @thdxr on GitHub.

It seems like Subagent doesn't know about the current mode. Because of this I always should stop planning and say "you are in plan mode, do not edit anything"

Originally created by @NaikSoftware on GitHub (Sep 16, 2025). Originally assigned to: @thdxr on GitHub. It seems like Subagent doesn't know about the current mode. Because of this I always should stop planning and say "you are in plan mode, do not edit anything"
yindo closed this issue 2026-02-16 17:32:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 16, 2025):

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

  • #2352: Subagents cannot interact normally - discusses similar issues where subagents don't understand their context and try to edit files when they shouldn't
  • #2141: bug: even after changing the mode from Plan mode to Build mode, agent still think it is in read-only mode - related to mode awareness issues
  • #1965: plan mode agent still builds - describes agents trying to use all available tools to fix issues during planning stage, including attempting destructive actions
  • #2105: BUG: Sonic gets stuck in plan mode - mentions agents not recognizing mode changes and staying in incorrect behavior patterns
  • #1682: BUG: dumps system prompt in an infinite loop - shows issues with plan mode system prompts and mode recognition

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

@github-actions[bot] commented on GitHub (Sep 16, 2025): This issue might be a duplicate of existing issues. Please check: - #2352: Subagents cannot interact normally - discusses similar issues where subagents don't understand their context and try to edit files when they shouldn't - #2141: bug: even after changing the mode from Plan mode to Build mode, agent still think it is in read-only mode - related to mode awareness issues - #1965: plan mode agent still builds - describes agents trying to use all available tools to fix issues during planning stage, including attempting destructive actions - #2105: BUG: Sonic gets stuck in plan mode - mentions agents not recognizing mode changes and staying in incorrect behavior patterns - #1682: BUG: dumps system prompt in an infinite loop - shows issues with plan mode system prompts and mode recognition Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 16, 2025):

just to confirm: plan agent is delegating subagents that try to do destructive actions?

@rekram1-node commented on GitHub (Sep 16, 2025): just to confirm: plan agent is delegating subagents that try to do destructive actions?
Author
Owner

@NaikSoftware commented on GitHub (Sep 16, 2025):

just to confirm: plan agent is delegating subagents that try to do destructive actions?

Yes

@NaikSoftware commented on GitHub (Sep 16, 2025): > just to confirm: plan agent is delegating subagents that try to do destructive actions? Yes
Author
Owner

@NaikSoftware commented on GitHub (Sep 16, 2025):

But reprodused not always, because sometimes subagent's prompt looks like "Investigate, Find info, etc...".

@NaikSoftware commented on GitHub (Sep 16, 2025): But reprodused not always, because sometimes subagent's prompt looks like "Investigate, Find info, etc...".
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1732