opencode
opencode copied to clipboard
[FEATURE]: Configurable Agent Cycling Order (Tab)
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
I use multiple primary agents in my workflow (e.g., Build, Plan, and a custom Development agent). Currently, when I use Tab to cycle between them, the order seems fixed (likely alphabetical or based on load order). For example, I often want to toggle quickly between Build and Plan. However, my custom Development agent sits between them in the cycle. Pressing Tab from Build sends me to Development instead of Plan. Instead I want it to be in the order of Build, Plan, Development.
I propose being able to configure the order with something like:
"agent": {
"build": {
"mode": "primary",
"priority": 10
},
"plan": {
"mode": "primary",
"priority": 5
},
"development": {
"mode": "primary",
"priority": 1
}
}