"import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'gemini' in m['name']]"
When to Use
Good use cases
:
Before committing major changes (final review)
When stuck debugging after multiple attempts
Architecture decisions with multiple valid options
Security-sensitive code review
Avoid using for
:
Simple syntax checks (Claude handles these faster)
Every single edit (too slow, unnecessary)
Questions with obvious answers
Prompt Construction
Critical
Always use the AI-to-AI prompting format. Write the full prompt to a file — never pass code inline via bash arguments (shell escaping will break it).
When building the prompt:
Start with the AI-to-AI header from
references/prompt-templates.md
Append the mode-specific template
Append the file contents with clear
--- filename ---
separators
Write to
.claude/artifacts/gemini-prompt.txt
Generate and run the API call script
Reference Files
When
Read
Building prompts for any mode
references/prompt-templates.md