[PR #4446] Added opencode agent list command to show all available agents with details. #10975

Closed
opened 2026-02-16 18:15:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4446

State: closed
Merged: Yes


Perfect! I've added the new list subcommand (with ls alias) to the opencode agent command. The implementation:

  1. Lists all available agents using the existing Agent.list() function
  2. Shows agent details including name, type (built-in/custom), mode (primary/subagent/all), and description
  3. Sorts agents with built-in agents first, then alphabetically by name
  4. Provides clear formatting with proper spacing and summary

The command can now be used as:

  • opencode agent list
  • opencode agent ls (alias)

This will help users discover what agents are available and their capabilities, addressing the feature request from the issue.

related to #4443

New%20session%20-%202025-11-18T08%3A02%3A43.286Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4446 **State:** closed **Merged:** Yes --- Perfect! I've added the new `list` subcommand (with `ls` alias) to the `opencode agent` command. The implementation: 1. **Lists all available agents** using the existing `Agent.list()` function 2. **Shows agent details** including name, type (built-in/custom), mode (primary/subagent/all), and description 3. **Sorts agents** with built-in agents first, then alphabetically by name 4. **Provides clear formatting** with proper spacing and summary The command can now be used as: - `opencode agent list` - `opencode agent ls` (alias) This will help users discover what agents are available and their capabilities, addressing the feature request from the issue. related to #4443 <a href="https://opencode.ai/s/uH3pl9gr"><img width="200" alt="New%20session%20-%202025-11-18T08%3A02%3A43.286Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTE4VDA4OjAyOjQzLjI4Nlo=.png?model=opencode/glm-4.6&version=1.0.72&id=uH3pl9gr" /></a> [opencode session](https://opencode.ai/s/uH3pl9gr)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19458568041)
yindo added the pull-request label 2026-02-16 18:15:45 -05:00
yindo closed this issue 2026-02-16 18:15:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10975