Skip to content

agent description used in /agent command are cutoff #4825

Closed
zoe531/opencode
#9

Description

@ferrao

Description

Whenever you create a new agent with the command opencode agent create, it will result in an agent file with a very extensive description field, which instructs the model on when to use this agent.

The problem is that this field is then used by the /agents command, resulting in something that is impossible to read:

Image

I think the right solution would be to have two different configuration options, one with the long description of what the agent does, which I guess will be used internally by opencode to decide when to invoke this agent, and another short configuration option, that could be used on commands that list the available agents.

OpenCode version

1.0.119

Steps to reproduce

  1. Create a new agent using the command opencode agent create
  2. Launch opencode
  3. Run the /agents command

Screenshot and/or share link

No response

Operating System

No response

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 27, 2025
  2. github-actions commented on Nov 27, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if this doesn't address your specific case.

  3. ferrao commented on Nov 27, 2025

    @ferrao
    ContributorAuthor

    I do not think this is a duplicate of #4331 but actually a different thing. Of course horizontal scrolling would help with understanding and reading the agent description, but what I am actually saying is that using a field that we know is going to contain a big paragraph of text for the description of the agents on the /agents command is wrong.

  4. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    Contributor

    Yeah we should prolly word wrap here or use "..." truncation with possibility to expand maybe?, i get what ur saying about a human friendly field that isn't a prompt for llm

  5. changed the title [-]agent description used in /agent command are impossible to read.[/-] [+]agent description used in /agent command don't wrap[/+] on Dec 2, 2025
  6. changed the title [-]agent description used in /agent command don't wrap[/-] [+]agent description used in /agent command are cutoff[/+] on Dec 2, 2025
  7. dibenkobit commented on Dec 3, 2025

    @dibenkobit

    I've started working on this, will open a PR soon.

  8. rekram1-node commented on Dec 3, 2025

    @rekram1-node
    Contributor

    sounds good, thanks!

  9. dibenkobit commented on Dec 5, 2025

    @dibenkobit

    Opened a PR (#5117), please take a look when you have time :)

  10. added a commit that references this issue on Feb 5, 2026
    17c6542
  11. added a commit that references this issue on Feb 6, 2026
    96d1268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp-wantedopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions