opencode-api
Pass
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The 'Email-Driven Follow-Up Pattern' section describes a workflow where the agent ingests data from external sources to perform tasks via the API.
- Ingestion points: Untrusted data is ingested from Gmail triage emails as described in the automation pattern section of SKILL.md.
- Boundary markers: The instructions do not specify the use of delimiters or 'ignore' markers to isolate the untrusted email content from the agent's core instructions.
- Capability inventory: The skill uses
curlto interact withPOST /session/{id}/messageandPOST /session/{id}/prompt_asyncendpoints, which enable searching files, reading content, and applying code changes through the OpenCode server. - Sanitization: No sanitization, escaping, or validation of the email content is documented before it is interpolated into API requests.
- [COMMAND_EXECUTION]: The skill documentation includes shell commands for local server management and API interaction.
- The
opencode servecommand is used to initialize and configure the local REST API server. - A shell function named
api()is defined to executecurlcommands for authenticated communication with the server at127.0.0.1:4096.
Audit Metadata