opencode-delegate
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
relay.mjsscript executes theopencodeCLI andgitto manage coding tasks and inspect the repository state. Potential command injection via flags like--modeland--variantis mitigated by strict regex validation (MODEL_TOKENandSAFE_TOKEN). The task description (brief) is passed to the subprocess viastdin, further reducing the risk of shell-based injection attacks. - [INDIRECT_PROMPT_INJECTION]: As the skill involves delegating tasks to another AI agent, it is susceptible to indirect prompt injection from the sub-agent's output. The skill addresses this by dedicating an entire section (
review-and-land.md) to verifying the 'implementer's' work, instructing the orchestrator to re-run tests, read diffs for scope creep, and never trust the implementer's self-report. - [DYNAMIC_EXECUTION]: The script uses
node:child_processfunctions (spawn,spawnSync,execSync) to interface with system tools. While it usesshell: trueon Windows foropencodecompatibility, the arguments are pre-validated, and the shell is not used for critical path data interpolation. It also dynamically resolves a sibling scriptlane.mjsfrom thedelegate-setupskill, which is a standard pattern for multi-skill systems by the same author.
Audit Metadata