This tutorial walks you through installing the plugin, running your first validation, and seeing the auto-trigger hooks in action. By the end, you will have Gemini actively reviewing your work inside Claude Code.
- Claude Code installed and running
- A Google AI Studio API key (free at aistudio.google.com/app/apikey)
uvinstalled (providesuvxfor running the MCP server)jqinstalled (used by hook scripts)
Open Claude Code and add the SynthForge marketplace, then install the plugin:
/plugin marketplace add azmym/SynthForge
/plugin install gemini-plugin@synthforge
During installation, Claude Code prompts you for your Google AI Studio API key:
Gemini API Key: ________
The input is masked and the key is stored securely in your system keychain (not in settings files or plain text). You only enter this once; it persists across sessions.
If you don't have a key yet, get one free at aistudio.google.com/app/apikey.
Start a new Claude Code session. You should see the gemini MCP server connected:
claude mcp list
# Expected: gemini: ... - Connected
Check that skills are available:
/gemini-plugin:gemini-validate
You should see the slash command auto-complete.
Ask Claude to create a plan for any task:
Plan how to add a login page to this project
When Claude finishes the plan and exits plan mode, the ExitPlanMode hook fires automatically. Gemini's validator reviews the plan and either approves it (you proceed normally) or blocks with specific gaps to address.
You can validate anything on demand:
/gemini-plugin:gemini-validate Is my authentication flow handling token refresh correctly?
The validator spawns, calls Gemini, and returns a structured verdict with gaps, hallucinations (if any), and recommended next actions.
Ask a question that benefits from live web data:
/gemini-plugin:gemini-research What is the latest stable version of Next.js?
The researcher returns an answer with citations and a freshness timestamp.
If you're in a design session and want every prompt grounded automatically:
/gemini-plugin:gemini-brainstorm-on
Now every prompt you type gets search-grounded by Gemini before Claude answers. Turn it off when done:
/gemini-plugin:gemini-brainstorm-off
With the plugin active, six hooks fire automatically at key moments:
- Session start builds a risk map of your repo
- User prompt grounds post-cutoff questions (keyword-gated, or always-on in brainstorm mode)
- Plan complete validates plans before you see them
- Destructive Bash challenges dangerous commands before execution
- Pre-compact preserves session state before context compaction
- Stop audits "done" claims before Claude stops working
All of these block Claude when Gemini finds issues, surfacing the critique inline so you never miss it.
- How to validate plans and claims for detailed usage patterns
- How to configure hooks to disable or customize triggers
- Architecture reference for understanding the full system