diff --git a/commands/tri-review.md b/commands/tri-review.md index 9582890..b34c9a9 100644 --- a/commands/tri-review.md +++ b/commands/tri-review.md @@ -113,7 +113,7 @@ Retrieve result with `/codex:result` when done. Omit `--model` to use the accoun ```bash if [ "$HAS_CODEX_CLI" = "yes" ]; then - codex exec --full-auto "{prompt} $(cat /tmp/tri-review-diff.txt)" \ + cat /tmp/tri-review-diff.txt | codex exec --full-auto "{prompt}" \ > /tmp/tri-review-codex.txt 2>&1 & CODEX_PID=$! fi @@ -134,7 +134,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou ```bash if [ "$HAS_GEMINI_CLI" = "yes" ]; then - gemini -p "{prompt} $(cat /tmp/tri-review-diff.txt)" \ + cat /tmp/tri-review-diff.txt | gemini -p "{prompt}" \ -y --output-format text \ > /tmp/tri-review-gemini.txt 2>&1 & GEMINI_PID=$! diff --git a/commands/tri-security.md b/commands/tri-security.md index 34eac78..41929a3 100644 --- a/commands/tri-security.md +++ b/commands/tri-security.md @@ -122,7 +122,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou ```bash if [ "$HAS_GEMINI_CLI" = "yes" ]; then - gemini -p "{prompt} $(cat /tmp/tri-security-diff.txt)" -y \ + cat /tmp/tri-security-diff.txt | gemini -p "{prompt}" -y \ --output-format text > /tmp/tri-security-gemini.txt 2>&1 & fi