pi-delegation
Warn
Audited by Gen Agent Trust Hub on Jun 22, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill facilitates the execution of arbitrary shell commands through its sub-agent functionality. Specifically, the
bashtool can be provided to sub-agents, allowing them to run CLI programs and modify the local environment. - [EXTERNAL_DOWNLOADS]: The documentation instructs users to install external software using
npm(e.g.,pi install npm:pi-mcp-adapter). It also references a third-party GitHub repository (github.com/nicobailon/pi-subagents) for portable agent definitions which are outside the verified control of the skill author. - [REMOTE_CODE_EXECUTION]: The skill's architecture involves delegating tasks to an external binary (
pi) which performs autonomous actions including code synthesis and execution. This creates a secondary execution context that must be monitored for safety. - [DATA_EXFILTRATION]: The sub-agents are designed to use MCP adapters to connect to external search engines and APIs (like Exa). This involves transmitting user-provided topics and context to these external services.
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because sub-agents ingest files and repository content. If these files contain malicious instructions, they could influence the sub-agent's behavior.
- Ingestion points: The
pi_run_tasktool takes afiles[]argument which provides repository content to the sub-agent. - Boundary markers: The documentation suggests using isolated git worktrees as a boundary, but does not specify explicit prompt delimiters to prevent sub-agent instruction override.
- Capability inventory: The sub-agent has access to
bash, file system modifications, and external network tools via MCP adapters. - Sanitization: No explicit sanitization of input files or user-provided topics is mentioned before they are passed to the sub-agent.
Audit Metadata