ask-gemini
CLI bridge that delegates a sub-question or sub-task to a Gemini CLI process and returns the answer.
ask-gemini mirrors ask-claude but routes to the Gemini CLI instead. Use it when you want Google's model to weigh in, when you need a large-context lookup that Gemini handles particularly well, or when you are running a multi-model comparison alongside ask-claude.
Purpose
Different models have different strengths. ask-gemini lets you tap Gemini's perspective without leaving the OMX session, keeping the current context clean while adding a parallel voice. It is especially useful for factual lookups, code generation alternatives, or confirming that a decision holds across model boundaries.
How to invoke
Direct invocation with a quoted argument:
codex
> $ask-gemini "What changed in the Gemini 2.0 function-calling API compared to 1.5?"codex
> ask-gemini "review this SQL query for performance issues: SELECT * FROM orders WHERE status='pending'"What it does
- Opens a fresh Gemini CLI process with no inherited context
- Sends the quoted question or task as the sole input
- Returns the response inline in the current OMX session
- Closes the subprocess cleanly after the response is received
- Can be run in parallel with
$ask-claudefor side-by-side model comparison
Outputs
- The Gemini CLI response, printed inline in the current session
- No side effects on the current session context
Related
$ask-claude— same bridge pattern targeting the Claude CLI$ccg— tri-model fan-out: Claude, Codex, and Gemini answer simultaneously$external-context— parallel document-specialist agents for web and doc lookups
Was this page helpful?