Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/tri-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou
```bash
if [ "$HAS_GEMINI_CLI" = "yes" ]; then
gemini -p "{prompt} {context}" -y \
--output-format text > /tmp/tri-debug-gemini.txt 2>/dev/null &
--output-format text > /tmp/tri-debug-gemini.txt 2>&1 &
GEMINI_PID=$!
fi

Expand Down
2 changes: 1 addition & 1 deletion commands/tri-dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou
```bash
if [ "$HAS_GEMINI_CLI" = "yes" ]; then
gemini -p "$PROMPT" -y \
--output-format text > /tmp/tri-dispatch-gemini.txt 2>/dev/null &
--output-format text > /tmp/tri-dispatch-gemini.txt 2>&1 &
fi

wait
Expand Down
19 changes: 17 additions & 2 deletions commands/tri-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,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)" \
> /tmp/tri-review-codex.txt 2>/dev/null &
> /tmp/tri-review-codex.txt 2>&1 &
CODEX_PID=$!
fi
```
Expand All @@ -136,7 +136,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou
if [ "$HAS_GEMINI_CLI" = "yes" ]; then
gemini -p "{prompt} $(cat /tmp/tri-review-diff.txt)" \
-y --output-format text \
> /tmp/tri-review-gemini.txt 2>/dev/null &
> /tmp/tri-review-gemini.txt 2>&1 &
GEMINI_PID=$!
fi

Expand All @@ -145,6 +145,21 @@ wait

Note: Gemini CLI defaults to the best available model. Don't hardcode a model name — it may not be available on all accounts.

### Post-dispatch validation

After `wait`, check each CLI output file. If empty, report the failure instead of silently dropping the agent:

```bash
for agent_file in /tmp/tri-review-codex.txt /tmp/tri-review-gemini.txt; do
if [ -f "$agent_file" ] && [ ! -s "$agent_file" ]; then
agent=$(basename "$agent_file" | sed 's/tri-review-//;s/\.txt//')
echo "WARNING: $agent produced empty output — check CLI installation and authentication"
fi
done
```

If an agent's output contains only stderr (error messages, not review content), note it in the consolidation as a failure rather than omitting it silently.

## Autonomy Flags

| Agent | Method | Flags |
Expand Down
2 changes: 1 addition & 1 deletion commands/tri-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,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 \
--output-format text > /tmp/tri-security-gemini.txt 2>/dev/null &
--output-format text > /tmp/tri-security-gemini.txt 2>&1 &
fi

wait
Expand Down
2 changes: 1 addition & 1 deletion commands/tri-test-gen.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Retrieve result with `/gemini:result` when done. Omit `--model` to use the accou
```bash
if [ "$HAS_GEMINI_CLI" = "yes" ]; then
gemini -p "{prompt} {source_code}" -y \
--output-format text > /tmp/tri-test-gemini.txt 2>/dev/null &
--output-format text > /tmp/tri-test-gemini.txt 2>&1 &
fi

wait
Expand Down
Loading