commandcode-delegate
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/relay.mjsscript executes the Command Code CLI (cmd) andgitbinaries to perform tasks, check repository status, and verify changes. All command-line arguments derived from user input are strictly validated against restrictive regular expressions to prevent command injection. - [DYNAMIC_EXECUTION]: When the
--laneoption is utilized,scripts/relay.mjsexecutes a sibling script (delegate-setup/scripts/lane.mjs) using the Node.js runtime to resolve configuration dials. This is a controlled execution of local code required for the skill's fleet management functionality. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted instructions (the task brief) which are then executed by a delegated AI agent.
- Ingestion points:
scripts/relay.mjsreads the task brief from a file path or stdin. - Boundary markers:
references/writing-the-brief.mdprovides a structured XML-based template (<task>,<verification_loop>, etc.) to isolate different types of instructions and minimize obedience to embedded malicious data. - Capability inventory: The delegated agent (
cmd) is typically executed with--yolopermissions, allowing full file system access and shell execution within the working directory. - Sanitization: The relay script validates all CLI argument tokens and pipes the brief content directly to the child process's stdin, effectively preventing it from being interpreted as shell command components.
- [DATA_EXPOSURE]: To provide security monitoring during read-only runs, the script calculates SHA-256 fingerprints of files in the working directory and monitors
git statusoutput. This data is used locally to report potential 'read-only violations' to the user and is not exfiltrated.
Audit Metadata