opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): add agent descriptions to autocomplete options

Open assagman opened this issue 4 weeks ago • 3 comments

Enhance the agent selection autocomplete by displaying agent descriptions alongside the agent names.

This helps users:

  • understand what each agent does before picking one,
  • differentiate agents from local files

Feature request: https://github.com/sst/opencode/issues/5805

assagman avatar Dec 19 '25 18:12 assagman

@assagman Consider truncating long descriptions as I am doing in this dummy PR: https://github.com/ariane-emory/opencode/pull/51/changes (don't worry, will not submit that PR upstream to sst, wouldn't want to steal your glory).

ariane-emory avatar Dec 19 '25 21:12 ariane-emory

hey @ariane-emory , thanks for the interest and suggestion. Initially I also thought that it might be good to limit description chars, but later on I realized that the menu has horizontal scroll functionality :) . One may want to read more about their agents by leveraging this feature, so left as it is.

https://github.com/user-attachments/assets/aaf1c66e-0c8d-4a29-8f80-246d1bdbcde3

assagman avatar Dec 20 '25 15:12 assagman

@assagman Fair enough, I wasn't previously aware of that either, you taught me something. :)

ariane-emory avatar Dec 20 '25 16:12 ariane-emory