Skip to content

[Feature]: Agent selection and model selection with OpenCode #1122

Closed as duplicate
Closed as duplicate

Description

@davidroulier

Problem or use case

As of now, the only way to use a specific agent to execute a task is to write a custom command to launch the OpenCode CLI. The same goes for model selection, as I have a subscription for OpenCode Go, I like to switch them depending on the task.

Proposed solution

Be able to pick a specific OpenCode agent for a task and/or select the model amongst the ones available before executing a task.

Alternatives or additional context

No response

Activity

  1. changed the title [-][Feature]: Agent selection and model selection in OpenCode[/-] [+][Feature]: Agent selection and model selection with OpenCode[/+] on Apr 26, 2026
  2. nwparker commented on May 6, 2026

    @nwparker
    Contributor

    @davidroulier would you perhaps be happy if we solved this via the same means mentioned in #1473 ?

  3. davidroulier commented on May 6, 2026

    @davidroulier
    Author

    @davidroulier would you perhaps be happy if we solved this via the same means mentioned in #1473 ?

    Paperclip does that pretty well. Maybe you should sneak in some of their code into yours 😁

    Well to answer your question, I'd need to test it out. Can't say yes or no

  4. nwparker commented on May 29, 2026

    @nwparker
    Contributor

    Confirmed this is covered by #2521 rather than needing a separate #1122-specific implementation.

    Evidence:

    • Current main has one built-in OpenCode slot (opencode) and one command override; OpenCode startup already appends --prompt for submitted prompts.
    • OpenCode CLI docs list --model provider/model and --agent flags for the TUI: https://dev.opencode.ai/docs/cli/
    • Add custom TUI agent presets (#2284) #2521 adds custom TUI agent presets persisted in customTuiAgents, supports custom launch/detect commands, threads TuiAgentId through startup plans and Quick Launch/New Workspace pickers, and includes custom commands in SSH remote preflight detection.
    • That lets a user create selectable presets such as opencode --model anthropic/claude-sonnet-4-5 --agent build or opencode --model github-copilot/gpt-5.1 --agent plan, then choose the preset before running a task, without Orca hardcoding an OpenCode model discovery system.

    I am leaving this issue open until #2521 lands and can be tested by affected OpenCode users. As of May 29, 2026, #2521 is still open and GitHub reports it as conflicting with main, so the remaining work is to resolve and merge that PR rather than add another implementation here.

  5. added theissue type on Jul 12, 2026
  6. nwparker commented on Sep 27, 2026

    @nwparker
    Contributor

    Closing as a duplicate of #2284, the canonical custom-agent preset request. The OpenCode-specific model/agent choice from this issue is represented there as a preset with custom launch arguments (for example, ). This consolidates tracking only; #2284 remains open while its implementation work is pending.

  7. nwparker commented on Sep 27, 2026

    @nwparker
    Contributor

    Correction to the closure note: the OpenCode example is opencode --model provider/model --agent agent-name. Its selectable launch arguments are covered by custom agent presets in #2284. The issue is consolidated, not resolved; implementation remains pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions