Skip to content

Agent param in cli does not work #23180

@kotarCreative

Description

@kotarCreative

Description

Running a cli command that contains an agent param causes the error "Agent not found: {agentName}". This occurs even when trying to load the base agents like "Build".

I noticed that the agents in the tab section on the TUI are delayed in showing, seems like agents are loading async within the client now?

Plugins

None

OpenCode version

1.4.10

Steps to reproduce

  1. Run `opencode --agent Build --prompt "tell me about this repo"

Screenshot and/or share link

Image

Operating System

macOS 26.4.1

Terminal

Ghossty

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions