agent description used in /agent command are cutoff
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:
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
- Create a new agent using the command
opencode agent create - Launch opencode
- Run the
/agentscommand
Screenshot and/or share link
No response
Operating System
No response
Terminal
Ghostty
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.
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.
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
I've started working on this, will open a PR soon.
sounds good, thanks!
Opened a PR (#5117), please take a look when you have time :)