Skip to content

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

Closed as not planned

Description

@jmarcelomb

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

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 22, 2025
  2. github-actions commented on Dec 22, 2025

    @github-actions
    Contributor

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

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

  3. rekram1-node commented on Dec 22, 2025

    @rekram1-node
    Contributor

    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

  4. jmarcelomb commented on Dec 25, 2025

    @jmarcelomb
    Author

    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

  5. jmarcelomb commented on Jan 5, 2026

    @jmarcelomb
    Author

    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!

  6. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
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