Skip to content

model: add agent model list#80

Merged
hbrooks merged 1 commit into
mainfrom
worktree-agent-model-list
Jul 25, 2026
Merged

model: add agent model list#80
hbrooks merged 1 commit into
mainfrom
worktree-agent-model-list

Conversation

@hbrooks

@hbrooks hbrooks commented Jul 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an agent model command group (alias agent models) with list (alias ls), backed by the existing ApiClient.listSupportedModels() / GET /v1/models.
  • Table prints ID / NAME / DEFAULT, with the account default marked. --json passes the raw payload through, including rate_card.
  • The model registry was previously only reachable through the connect composer, so anyone hand-writing model: under claude: in a config YAML had to guess the id.
  • Documents the command in README usage and in the ellipsis skill command reference.

Test plan

  • bun run typecheck clean
  • bun run test (298 pass, 19 files)
  • agent model list and agent models ls against the live API return the 5 current models with Opus 5 marked default
  • agent model list --json emits the raw array
  • agent --help shows model|models; agent model --help shows list|ls
  • Bare agent model prints group help and exits 1, matching template and sandbox

The model registry was only reachable through the connect composer, so
anyone writing `model:` into a config YAML had to guess the id. Exposes
the existing GET /v1/models client method as a command, with `models` as
a group alias.
@hbrooks
hbrooks merged commit d2b376d into main Jul 25, 2026
1 check passed
@hbrooks
hbrooks deleted the worktree-agent-model-list branch July 25, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant