You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: OpenCode GitHub Actions can't work with disabled default agents #4578
This is very useful when making custom primary agents that have the same purpose but with prompts that better suit one's needs. And I personally place them in my repositories to enforce these agents on my team members.
The issue
When working with the OpenCode agent, it also uses this config file. And if the default agents are disabled, OpenCode workflow fails with an error:
opencode
undefined is not an object (evaluating 'agent.name')
There is an obvious work-around that I am currently using, which is to (surprise) turn on the default agents. But personally, it's very annoying because it forces me to toggle between ~7 agents every time I start up opencode
Proposal
It'd be great to add the ability to specify the agent you want OpenCode to use when prompting it through CLI, then add support for that feature in GitHub actions:
opencode --agent [name-of-primary-agent] <prompt>
Then in GitHub when prompting, add a possibility to pass the agent name as an option
Activity
rekram1-node commentedon Nov 21, 2025
Yeah makes sense will fix
AdiKsOnDev commentedon Nov 21, 2025
Thanks!
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.