[FEATURE]: Enabling dynamically changing agents and permissions while running prompt #3753

Open
opened 2026-02-16 17:41:21 -05:00 by yindo · 4 comments
Owner

Originally created by @jmarcelomb on GitHub (Dec 22, 2025).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hello,
I like to be able to move between plan, build and autoaccept (yolo). However, I noticed that for example if I prompt with autoaccept I can click tab and the agent changes but it is not applied, only when doing a new prompt.

Is this already possible to change the agent permissions while working on a prompt?

My current config is:

{
  "$schema": "https://opencode.ai/config.json",
  "autoupdate": true,
  "permission": {
    "edit": "ask",
  },
  "lsp": {
    "ty-python": {
      "command": [
        "ty",
        "server"
      ],
      "extensions": [
        ".py",
        ".pyi"
      ]
    }
  },
  "agent": {
    "autoaccept": {
      "mode": "primary",
      "tools": {
        "write": true,
        "edit": true,
        "bash": true
      },
      "permission": {
        "edit": "allow"
      }
    }
  }
}

Thank you all!
Marcelo

Originally created by @jmarcelomb on GitHub (Dec 22, 2025). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Hello, I like to be able to move between plan, build and autoaccept (yolo). However, I noticed that for example if I prompt with autoaccept I can click tab and the agent changes but it is not applied, only when doing a new prompt. Is this already possible to change the agent permissions while working on a prompt? My current config is: ```json { "$schema": "https://opencode.ai/config.json", "autoupdate": true, "permission": { "edit": "ask", }, "lsp": { "ty-python": { "command": [ "ty", "server" ], "extensions": [ ".py", ".pyi" ] } }, "agent": { "autoaccept": { "mode": "primary", "tools": { "write": true, "edit": true, "bash": true }, "permission": { "edit": "allow" } } } } ``` Thank you all! Marcelo
yindo added the discussion label 2026-02-16 17:41:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 22, 2025):

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

  • #1813: Feature Request: Yolo and non-Yolo mode (auto-accept) - Requests the ability to switch between different permission modes (ask vs allow) similar to Claude's SHIFT+TAB cycling through Plan/Build/Yolo modes
  • #5891: [FEATURE]: Full automation support - Requests full automation without manual confirmation for commands like rm, mv, copy
  • #3261: Feature Request: Streamlined Agent Permission Management with an Interactive TUI - Proposes a TUI for managing agent permissions on-the-fly without editing config files

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

@github-actions[bot] commented on GitHub (Dec 22, 2025): This issue might be a duplicate of existing issues. Please check: - #1813: Feature Request: Yolo and non-Yolo mode (auto-accept) - Requests the ability to switch between different permission modes (ask vs allow) similar to Claude's SHIFT+TAB cycling through Plan/Build/Yolo modes - #5891: [FEATURE]: Full automation support - Requests full automation without manual confirmation for commands like rm, mv, copy - #3261: Feature Request: Streamlined Agent Permission Management with an Interactive TUI - Proposes a TUI for managing agent permissions on-the-fly without editing config files Feel free to ignore if none of these address your specific case.
Author
Owner

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

You have to submit a message to change the agent, otherwise it's just a toggle. You can even just send "." and itll change the agent mid loop

@rekram1-node commented on GitHub (Dec 22, 2025): You have to submit a message to change the agent, otherwise it's just a toggle. You can even just send "." and itll change the agent mid loop
Author
Owner

@jmarcelomb commented on GitHub (Dec 25, 2025):

Would be that bad to add ability to when tabbing it could switch the agent dynamically?
Or for example, after enabling for all, would be nice to have a /reset command, something like that

@jmarcelomb commented on GitHub (Dec 25, 2025): Would be that bad to add ability to when tabbing it could switch the agent dynamically? Or for example, after enabling for all, would be nice to have a /reset command, something like that
Author
Owner

@jmarcelomb commented on GitHub (Jan 5, 2026):

In the last update I like that we have a second prompt, no more writing auto accept mistakes, but we have
This will allow edit until OpenCode is restarted.

Could it be possible to reset this in any point of time and not needing to restart? It would be very nice.
Thank you for all the work!

@jmarcelomb commented on GitHub (Jan 5, 2026): In the last update I like that we have a second prompt, no more writing auto accept mistakes, but we have `This will allow edit until OpenCode is restarted.` Could it be possible to reset this in any point of time and not needing to restart? It would be very nice. Thank you for all the work!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3753