name: review description: Run the reviewer sub-agent for code review argument-hint: "[target or extra review instructions] [optional: --provider <provider> --model <model>]" allowed-tools: bash
Spawn the Pi reviewer sub-agent via bash and have it perform the review.
Run:
pi --print ...
Behavior:
- Pass through user arguments (
$@) to the sub-agent invocation. - If the user specifies a model, include
--providerand--modelaccordingly. - Give the sub-agent a prompt telling it to review code for:
- Bugs and logic errors
- Security issues
- Error handling gaps
- Do not read code yourself; the sub-agent must do the code inspection.
- Return the sub-agent findings to the user.