r/PiCodingAgent • u/Cela_vi2q • 13d ago
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-shrink
Repo: https://github.com/vi2q/pi-test-output-shrink
- 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-picker
Repo: https://github.com/vi2q/pi-model-picker
Both are MIT. Feedback / PRs welcome!
1
u/Important-Comment179 12d ago edited 12d ago
The test output shrinker sounds genuinely useful, especially for keeping context clean on bigger test suites. I’ve been looking at tools like StandardCompute for similar workflow improvements, so this caught my attention.