pi-runner
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses the Python
subprocessmodule inscripts/run_pi.pyandscripts/provider_runtime.pyto invoke thepiCLI. Command arguments are constructed usingshlex.quoteto prevent command injection, and execution is managed with timeouts and controlled input/output streams. - [EXTERNAL_DOWNLOADS]: The skill documentation refers to the
picoding agent CLI, which is an external dependency typically installed vianpm. The skill verifies the presence of this tool usingshutil.whichbefore attempting execution. - [INDIRECT_PROMPT_INJECTION]: The skill processes external content from files (prompts, images, session context) and interpolates them into model prompts. It includes structural mitigations such as role-based instructions and explicit execution constraints to guide the model's behavior and minimize the impact of potentially malicious data in the processed files.
- [DYNAMIC_EXECUTION]: The skill uses
sys.path.insertand dynamic imports to access shared utility scripts located in the agent environment'sshared/scripts/directory. This is used for routing, receipt validation, and prompting logic.
Audit Metadata