pi-runner
Run a prompt on a gateway model (Kimi, GLM, Qwen, Gemma, Minimax, Mistral, DeepSeek) through the local Pi CLI. Use when the host cannot run the selected model natively, or the user asks for Pi.
How do I install this agent skill?
npx skills add https://github.com/robsonrung/rar-skills --skill pi-runnerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a wrapper for the pi coding agent CLI, designed to route prompts to various AI models through the OpenRouter gateway. It implements a verification mechanism using a Node.js hook to enforce request policies and model routing. Security concerns are low, primarily involving the inherent risks of command execution and potential indirect prompt injection via unsanitized input files.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Pi Runner
In T3 Code, run all model calls as internal subagents under shared/references/host-model-execution.md. If the approved route is unavailable, report it. Do not execute this runner in T3 Code.
Run one prompt through the local pi CLI, which reaches models behind a gateway such as OpenRouter. A host that offers the model natively (a T3 Code Pi provider) runs it there instead.
Run
python3 <skill-dir>/scripts/run_pi.py "<prompt>" --seat <seat> --thinking <effort> \
--session <role-session-file> --json
--seatpins a named seat's model fromshared/model-routing.json; for any other model, pass--provider <gateway> --model <model>. Omit--thinkingfor a model without selectable effort.- Seats marked zero-retention in
shared/model-routing.jsonget strict privacy routing automatically;--provider-routing '<json>'sets it explicitly. --no-toolsanswers from the prompt alone;--restrict-toolsreads files only and is the default for analysis roles;--role implementer, or no role, gets full tools.--prompt-file <file>replaces the inline prompt for a long brief;--working-dir <path>sets the repository.- Credentials come from
OPENROUTER_API_KEYor Pi's auth store; missing ones returnstatus: auth_missing. --backgroundreturns a job id forshared/scripts/runner_jobs.py(status,wait-many,result,cancel).--helplists the rest, including browser work (--tool-policy browser) and images (--image-file).
Continue
Pi returns no session id: the file passed to --session is the role's context. Give every role its own file from its first call, and pass that same file on each later turn.
Result
Read agent_message. This runner never falls back, which keeps seat fidelity: the answer comes from this seat, or success is false. On failure, report status and the telling stderr lines, and leave the seat unanswered.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/robsonrung/rar-skills/pi-runner">View pi-runner on skillZs</a>