anomalyco / anomalyco/opencode
TUI rejects explicitly selected hidden primary agents
@kommander is already working on this.
Since Aug 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Starting the TUI with opencode --agent <name> rejects a hidden primary agent with Agent not found. The same agent remains valid for explicit use through opencode run --agent <name>.
The TUI uses its visible-only agent list for both the picker and explicit startup validation. Hidden primary agents should stay out of the picker and Tab cycle while remaining selectable when named with --agent. Subagents should remain invalid as primary agents.
Related to #44751, which documents the intended hidden-agent behavior.
Plugins
None required.
OpenCode version
dev at 5f5ea53afb
Steps to reproduce
- Configure an agent with
mode: primaryandhidden: true. - Start the TUI with
opencode --agent <name>. - Observe the
Agent not foundwarning and fallback agent.
Expected behavior is for the explicit hidden primary agent to be selected without adding it to the picker or Tab cycle.
Operating System
macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.