Live model enumeration for Pi via `pi --list-models`

main

Commit

dipree3mo ago

Pi is the only supported agent whose CLI can enumerate models, so wire a real ListModels that shells out to pi --list-models (output is on stderr, so capture combined output) and parses the provider/model table into "provider/model" ids. On failure it returns an error and the picker falls back to Default + Custom.

Other agents are unchanged: claude-code keeps its real aliases; codex and gemini have no enumeration command, so they show only Default + Custom. Refreshed the ModelLister doc comment to match.

Entire-Checkpoint: dd39a30a6fe4

Checkpoints

List me all the potential command combinations for review.

PiOpus 4.8
View session
Checkpoint 1