Loading...
Loading...
Execute Google Gemini CLI for large-context code analysis, multimodal reasoning, and repository-scale reviews. Also use for delegating tasks requiring 1M token context windows or Gemini-specific capabilities.
npx skill4agent add zpankz/mcp-skillset geminigeminigemini "<PROMPT>" -m <MODEL> --approval-mode <MODE> --output-format <FORMAT>gemini "<CONTINUATION PROMPT>" --resume latestgemini "<DETAILED CONTEXT>" --output-format jsonwhich gemini--yolo--approval-mode yolo--include-directoriesSelect gemini configuration (model, approval mode, and output format):
1. "gemini-3-pro-preview / default / json (Recommended)" - High quality, safe mode
2. "gemini-3-pro-preview / auto_edit / json" - High quality, auto-approve edits
3. "gemini-3-flash-preview / default / json" - Fast, safe mode
4. "gemini-3-flash-preview / auto_edit / json" - Fast, auto-approve edits
5. "gemini-3-pro-preview / yolo / json" - High quality, fully autonomous
6. "gemini-3-flash-preview / yolo / json" - Fast, fully autonomous
7. "Custom" - User will specify model, approval, and format separatelyReady to execute with these flags: [LIST FLAGS]. Proceed?
1. "Execute now" - Run as configured
2. "Modify configuration" - Change settings
3. "Cancel" - AbortGemini completed. [SUMMARY]. Next steps?
1. "Resume with additional prompt" - Continue session
2. "Analyze results" - Review output
3. "Complete" - Finished
4. "Retry with different config" - Adjust settingsError: [SPECIFIC ERROR]. How to proceed?
1. "Resume with adjustments" - Fix and continue
2. "Retry with different config" - Change model/approval/format
3. "Accept partial results" - Use what worked
4. "Invoke heal-skill" - Fix outdated SKILL.md-m, --model <MODEL>--approval-mode <MODE>-o, --output-format <FORMAT>--include-directories <DIRS>-r, --resume <SESSION>| Use case | Approval mode | Key flags |
|---|---|---|
| Safe analysis | | |
| Auto-approve edits | | |
| Fully autonomous | | |
| Resume recent session | Inherited | |
| Add workspace directories | Match task | |
| Interactive continuation | default | |
| Model | Use Case | Context | Speed |
|---|---|---|---|
| Complex reasoning, architecture review | 1M tokens | Slower |
| Quick analysis, simple tasks | 1M tokens | Faster |
# List available sessions
gemini --list-sessions
# Resume most recent session
gemini --resume latest
# Resume specific session by index
gemini --resume 5
# Delete a session
gemini --delete-session 3# List configured MCP servers
gemini mcp list
# Add an MCP server
gemini mcp add <name> <command> [args...]
# Remove an MCP server
gemini mcp remove <name>
# Limit to specific MCP servers
gemini "<PROMPT>" --allowed-mcp-server-names mcp-skillset# List installed extensions
gemini extensions list
# Install extension from git or path
gemini extensions install <source> [--auto-update] [--pre-release]
# Update extensions
gemini extensions update [--all]
# Disable/enable extension
gemini extensions disable <name>
gemini extensions enable <name>geminigemini "<new prompt>" --resume latestgemini --versiongemini| Feature | Gemini | Codex |
|---|---|---|
| Context window | 1M tokens | ~200K tokens |
| Primary models | gemini-3-pro/flash | gpt-5.2-codex |
| Approval modes | default/auto_edit/yolo | never/on-request/on-failure |
| Sandbox | Boolean (--sandbox) | read-only/workspace-write/danger-full-access |
| Resume | --resume latest/index | codex exec resume --last |
| Stderr handling | N/A | 2>/dev/null for thinking tokens |
| Output format | text/json/stream-json | json flag |
# Use gemini for large context, codex for GPT-specific
gemini "Analyze entire codebase architecture" --output-format json
codex exec "Implement specific feature based on analysis" --full-auto
# Chain with research CLI
research docs -t "framework API" --format json | gemini "Apply this to codebase"# Gemini can process images inline with code
gemini "Analyze this architecture diagram and compare with implementation" \
--include-directories ./docs ./src/heal-skill geminigemini --helpgemini --version