Pull the latest Claude log
tail -n 120 .claude/sessions/current.log > $GEMINI_OUTPUT_DIR/current-session.txt
Use Gemini as a parallel teammate for research, validation, and orchestration. This page shows how to connect the toolkit to the Gemini CLI.
AI-toolkit/ into the project root so relative paths work in every command.export GEMINI_TOOLKIT=$PWD/AI-toolkit
export GEMINI_OUTPUT_DIR=$PWD/.gemini
mkdir -p "$GEMINI_OUTPUT_DIR"
gemini chat "ready for the toolkit" and verify the CLI reads files from $GEMINI_TOOLKIT.Keep a dedicated virtualenv or uv project for Gemini tooling so dependencies (markdown parsing, jq, yq) are isolated from application code.
gemini prompt --file $GEMINI_TOOLKIT/prompts/create_brief.md < brief.txt to generate a north-star summary and share it with Claude.gemini agent --file $GEMINI_TOOLKIT/agents/orchestration/tech-lead-orchestrator.md with your story description to obtain a cross-tool execution plan.notes/research.md) by piping web results through general-research-agent.md.gemini prompt --file $GEMINI_TOOLKIT/prompts/code_review.md --input git.diff so Gemini highlights risky chunks you should verify in Claude.gemini prompt --file $GEMINI_TOOLKIT/prompts/write_docs.md and paste the bundle into /project:session-end.tail -n 120 .claude/sessions/*.md > /tmp/session.txt and feed it to gemini chat --input /tmp/session.txt so Gemini offers a status recap.project-analyst.md to list stacks, build commands, and risk areas: gemini agent --file $GEMINI_TOOLKIT/agents/orchestration/project-analyst.md --input repo-scan.txt.gemini prompt --file $GEMINI_TOOLKIT/prompts/plan_feature.md --mode bug and have Gemini call out blast radius, rollback, and targeted tests..claude/sessions/<date>-gemini-notes.md and reference it in /project:session-update.| Scenario | Agent command | Output to expect |
|---|---|---|
| Backend/API deep dive | gemini agent --file $GEMINI_TOOLKIT/agents/frameworks/django/django-api-developer.md --input context.md | Endpoint scaffolds, serializer advice, integration checklist. |
| Security or compliance review | gemini agent --file $GEMINI_TOOLKIT/agents/quality/security-auditor.md --files src/ | Severity-ranked findings with remediation steps. |
| Frontend alignment | gemini agent --file $GEMINI_TOOLKIT/agents/frameworks/react/react-component-architect.md --input component-spec.md | Component breakdown, state strategy, accessibility cues. |
| Performance troubleshooting | gemini agent --file $GEMINI_TOOLKIT/agents/quality/performance-optimizer.md --input flamegraph.txt | Hotspot analysis and next profiling actions. |
| Team workflow guardrails | gemini agent --file $GEMINI_TOOLKIT/agents/root/reliability-commander.md --input readiness.md | Go/no-go checklist and process gaps. |
Capture agent output to $GEMINI_OUTPUT_DIR/<timestamp>-agent.md so you can attach the evidence to tickets or pull requests.
gemini agent --file $GEMINI_TOOLKIT/agents/orchestration/tech-lead-orchestrator.md --input epic.md to produce a phase map that lists downstream agents and expected artefacts.team-configurator.md so you know which agent hands over to whom and what evidence is required.gemini agent --file $GEMINI_TOOLKIT/agents/frameworks/django/django-api-developer.md --input plan-phase1.md.session-closer.md or a custom handoff template, then feed that file to the next command.reliability-commander.md and testing-expert.md to validate readiness, then append their output to the Claude session log for shared visibility.Store each agent’s output in $GEMINI_OUTPUT_DIR/chain/<step>.md. You can replay or resume the sequence by reusing those artefacts as inputs.
gemini prompt --file $GEMINI_TOOLKIT/prompts/create_brief.md --input incident.md to capture severity, affected services, and stakeholders. Share the brief within Claude.tech-lead-orchestrator.md to lay out the chain (project-analyst → reliability-commander → testing-expert) and run team-configurator.md to document roles.project-analyst.md, run reliability-commander.md for mitigation checklists, then let testing-expert.md design regression tests. Save outputs to $GEMINI_OUTPUT_DIR.gemini chat --input ... for a summary, and append new findings back via /project:session-update.gemini prompt --file $GEMINI_TOOLKIT/prompts/write_docs.md --input summary.md, then mirror the report to the session log and ticketing system.Keep every agent output referenced by filename inside the session log so responders can audit how Gemini assisted during the incident.
gemini prompt --model gemini-pro --file $GEMINI_TOOLKIT/prompts/plan_feature.md --input story.txt for architectural plans, PRDs, or code skeletons.gemini prompt --model gemini-pro --code --input sourcefile.py to request refactors, docstrings, or test suites.gemini prompt --model gemini-pro --stdin to summarise articles, RFCs, or incident timelines into bullet points.gemini prompt --model imagen-3 --text "hero illustration of secure payment" --output assets/payment.png.gemini prompt --model imagen-3 --image mocks/dashboard.png --text "add dark theme" --output assets/dashboard-dark.png.gemini prompt --model imagen-3 --text "sequence of 6 storyboard panels for onboarding" --frames 6 to generate concept art.gemini prompt --model gemini-pro with TTS tooling (e.g. edge-tts) to produce narrated walkthroughs.gemini prompt --model gemini-pro --file scripts/video-outline.md, then hand the plan to production teams.gemini prompt --model gemini-pro --input data/metrics.csv --analyze to summarise trends, anomalies, and suggested actions.gemini prompt --model gemini-pro --text "Generate SQL for..." with --schema schema.sql to produce queries that match your database.gemini prompt --json to create API payload examples or contract tests.SetGEMINI_MODELin your environment to swap defaults quickly (e.g.export GEMINI_MODEL=gemini-pro-visionfor multimodal prompts).
| Prompt | Command pattern | Best practice |
|---|---|---|
| @plan_feature.md | printf "%s" "$STORY" | gemini prompt --file $GEMINI_TOOLKIT/prompts/plan_feature.md | Pipe the story via stdin; archive the plan in your shared engineering notes. |
@code_review.md | git diff main...HEAD > /tmp/diff.patch && gemini prompt --file $GEMINI_TOOLKIT/prompts/code_review.md --input /tmp/diff.patch | Request severity tags and ask Gemini to list manual test ideas. |
@write_docs.md | gemini prompt --file $GEMINI_TOOLKIT/prompts/write_docs.md --input release-context.md | Provide plan, review, and deployment notes so docs are audit-ready. |
| @create_brief.md | gemini prompt --file $GEMINI_TOOLKIT/prompts/create_brief.md --input kickoff.md | Save the output as a shared brief and circulate it inside Claude. |
tail -n 120 .claude/sessions/current.log > $GEMINI_OUTPUT_DIR/current-session.txt
gemini chat --input $GEMINI_OUTPUT_DIR/current-session.txt --system "Summarise blockers, decisions, next steps."
Paste the summary back into /project:session-update and attach as evidence in your ticket tracker.
Store every Gemini summary in a searchable session insights archive so new contributors can replay historical research.
django-orm-expert.md or api-architect.md for migration strategies and compatibility checks.react-nextjs-expert.md for SSR/ISR decisions. Gemini can also script Playwright test outlines.reliability-commander.md to produce runbooks, then schedule follow-up actions in Claude.content-writer.md for release notes, prd-writer.md for product docs, and vibe-coding-coach.md for creative direction.fzf for fast file selection, entr for rerunning commands when files change, jq/yq for massaging JSON/YAML before sending to Gemini.curl + httpie to gather API responses and feed them into agents as evidence.pytest, npm test, or go test runs, capture the logs, and let Gemini suggest additional coverage.notionx, obsidian-export).git diff --stat plus targeted git diff -- src/file attachments to keep prompts under token limits.--system "act as a critic" to stress-test the plan.