opencode icon indicating copy to clipboard operation
opencode copied to clipboard

agent description used in /agent command are cutoff

Open ferrao opened this issue 4 weeks ago • 6 comments

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

ferrao avatar Nov 27 '25 12:11 ferrao

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

  • #4331: [FEATURE]: word wraping / horisontal scrolling while showing agent edits - Related UI readability issue for long content in the TUI, which shares the same underlying problem of displaying verbose content in the terminal interface.

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

github-actions[bot] avatar Nov 27 '25 12:11 github-actions[bot]

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.

ferrao avatar Nov 27 '25 12:11 ferrao

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

rekram1-node avatar Dec 02 '25 00:12 rekram1-node

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

dibenkobit avatar Dec 03 '25 13:12 dibenkobit

sounds good, thanks!

rekram1-node avatar Dec 03 '25 16:12 rekram1-node

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

dibenkobit avatar Dec 05 '25 14:12 dibenkobit