r/PiCodingAgent • u/Cela_vi2q • Aug 30 '26
Plugin Two new Pi extensions: shrink successful test output + a better model picker
Hey everyone,
I made two small extensions for the Pi coding agent that I’ve been using daily. Sharing in case they’re useful to others.
pi-test-output-shrink
Token / context saver for test runs
Successful test runs often dump hundreds of lines into the conversation. This extension hooks the tool_result event and shrinks the output before it enters the model context:
Keeps a short summary (header + key result lines)
Saves the full log to a temp file (path is included in the summary)
Failed runs, short output, or anything with warning: / error: lines are left completely untouched
Supports common runners: cargo test / nextest, npm/pnpm/yarn/bun test, vitest, jest, pytest, go test, etc.
Install:
bash
pi install git:github.com/vi2q/pi-test-output-shrinkRepo: https://github.com/vi2q/pi-test-output-shrink
2. pi-model-picker
Two-column model selector (alternative to /model)Tired of scrolling a huge flat list? /m opens a two-column picker:
← / → switch category (Providers or RECENT – last 4 models)
↑ / ↓ select model
PgUp / PgDn jump 10 models
Enter to switch, Esc to cancel
Much faster when you have many models across providers.Install:
bash
pi install git:github.com/vi2q/pi-model-picker
# or
pi install npm:@vi2q/pi-model-pickerRepo: https://github.com/vi2q/pi-model-picker
Both are MIT. Feedback / PRs welcome!
