[PR #6073] refactor(agent): set Explore subagent bash permissions to read-only #11725

Open
opened 2026-02-16 18:16:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6073

State: open
Merged: No


Fixes #5475

It takes some work to convince the Plan agent to cause the deletion via Explore subagent, but it's technically possible as evident from the linked issue. This does not do any changes regarding YOLO-switching, I just understand Explore to be a read-only (sub)agent and set as such always.

Before:
Plan agent:
before
Explore agent:
before2

After:
Plan agent:
after
Explore agent:
after2

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6073 **State:** open **Merged:** No --- Fixes #5475 It takes some work to convince the Plan agent to cause the deletion via Explore subagent, but it's technically possible as evident from the linked issue. This does _not_ do any changes regarding YOLO-switching, I just understand Explore to be a read-only (sub)agent and set as such always. **Before**: Plan agent: <img width="1513" height="440" alt="before" src="https://github.com/user-attachments/assets/5be4122d-a681-406e-b91e-c60e3a1a5bbb" /> Explore agent: <img width="1193" height="417" alt="before2" src="https://github.com/user-attachments/assets/56800bab-0eb4-4bed-8f21-0a046a9d1e03" /> **After**: Plan agent: <img width="869" height="372" alt="after" src="https://github.com/user-attachments/assets/6fa4d9fd-fb2c-4e90-94c0-fa0ac8e06eb2" /> Explore agent: <img width="525" height="217" alt="after2" src="https://github.com/user-attachments/assets/7c1e71b2-0f1b-456a-8b58-fe372dec379a" />
yindo added the pull-request label 2026-02-16 18:16:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11725