Loading...
Loading...
Use when the user asks to run Gemini CLI for code review, plan review, or big context (>200k) processing. Ideal for comprehensive analysis requiring large context windows. Uses Gemini 3 Pro by default for state-of-the-art reasoning and coding.
npx skill4agent add softaworks/agent-toolkit gemini--approval-mode default--approval-mode yolotimeout 300 gemini ...--approval-mode default# Check if hung
ps aux | grep gemini | grep -v grep
# Kill if necessary
pkill -9 -f "gemini.*gemini-3-pro-preview"AskUserQuestiongemini-3-pro-previewgemini-3-flashgemini-2.5-progemini-2.5-flashgemini-2.5-flash-litedefaultauto_edityolo-m, --model <MODEL>--approval-mode <default|auto_edit|yolo>-y, --yolo--approval-mode yolo-i, --prompt-interactive "prompt"--include-directories <DIR>-s, --sandbox--approval-mode yolodefault# Recommended: Use yolo for background tasks
gemini -m gemini-3-pro-preview --approval-mode yolo "Review this codebase for security issues"
# Or with timeout (5 min limit)
timeout 300 gemini -m gemini-3-pro-preview --approval-mode yolo "Review this codebase"gemini -m gemini-3-pro-preview -i "Review the authentication system" --approval-mode auto_edit| Use case | Approval mode | Key flags |
|---|---|---|
| Background code review | | |
| Background analysis | | |
| Background with timeout | | |
| Interactive code review | | |
| Code review with auto-edits | | |
| Automated refactoring | | |
| Speed-critical background | | |
| Cost-optimized background | | |
| Multi-directory analysis | | |
| Interactive with prompt | | |
| Model | Best for | Context window | Key features |
|---|---|---|---|
| Flagship model: Complex reasoning, coding, agentic tasks | 1M input / 64k output | Vibe coding, 76.2% SWE-bench, $2-4/M input |
| Sub-second latency, speed-critical applications | 1M input / 64k output | Distilled from 3 Pro, TPU-optimized |
| Legacy: Strong all-around performance | 1M input / 65k output | Thinking mode, mature stability |
| Legacy: Cost-efficient, high-volume tasks | 1M input / 65k output | Best price ($0.15/M), thinking mode |
| Legacy: Fastest processing, high throughput | 1M input / 65k output | Maximum speed, minimal latency |
gemini-3-deep-think# For background execution (Claude Code, CI/CD, etc.)
gemini -m gemini-3-pro-preview --approval-mode yolo \
"Perform a comprehensive code review focusing on:
1. Security vulnerabilities
2. Performance issues
3. Code quality and maintainability
4. Best practices violations"
# With timeout safety (5 minutes)
timeout 300 gemini -m gemini-3-pro-preview --approval-mode yolo \
"Perform a comprehensive code review..."# For background execution
gemini -m gemini-3-pro-preview --approval-mode yolo \
"Review this architectural plan for:
1. Scalability concerns
2. Missing components
3. Integration challenges
4. Alternative approaches"# For background execution
gemini -m gemini-3-pro-preview --approval-mode yolo \
"Analyze the entire codebase to understand:
1. Overall architecture
2. Key patterns and conventions
3. Potential technical debt
4. Refactoring opportunities"# ONLY use default mode in interactive terminal
gemini -m gemini-3-pro-preview --approval-mode default \
"Review the authentication flow for security issues"AskUserQuestiongemini --version--approval-mode yolo-y--sandboxAskUserQuestionAskUserQuestion# Check for hung processes
ps aux | grep -E "gemini.*gemini-3" | grep -v grep
# Look for these symptoms:
# - Process running 20+ minutes
# - CPU usage at 0%
# - Process state 'S' (sleeping)
# - No network connections# Get detailed process info
ps -o pid,etime,pcpu,stat,command -p <PID>
# Check network activity
lsof -p <PID> 2>/dev/null | grep -E "(TCP|ESTABLISHED)" | wc -l
# If result is 0, process is hung# Kill hung Gemini processes
pkill -9 -f "gemini.*gemini-3-pro-preview"
# Or kill specific PID
kill -9 <PID>
# Verify cleanup
ps aux | grep gemini | grep -v grep--approval-mode yolotimeout 300 gemini ...--approval-mode defaultpsgemini-3-pro-previewgemini-3-flashgemini-2.5-flashgemini --version