ask-claude
CLI bridge that delegates a sub-question or sub-task to a Claude CLI process and returns the answer.
ask-claude is a lightweight bridge between the current OMX session and the Claude CLI. When you need a second opinion, a quick lookup, or want to run a parallel query without context pollution, ask-claude opens a fresh Claude CLI process, sends your question, and pipes the response back into the conversation.
Purpose
Some questions benefit from a clean context rather than one already loaded with implementation detail. ask-claude spawns an isolated Claude session so the sub-question is answered without the noise of the current working context. It is also useful for parallelising lookups — you can ask-claude and ask-gemini simultaneously and compare answers.
How to invoke
Direct invocation with a quoted argument:
codex
> $ask-claude "What is the recommended way to handle pagination — cursor vs offset?"codex
> ask-claude "summarize the differences between JWT and session-based auth in two paragraphs"What it does
- Opens a fresh Claude 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-geminifor multi-model comparison
Outputs
- The Claude CLI response, printed inline in the current session
- No side effects on the current session context
Related
$ask-gemini— same bridge pattern targeting the Gemini CLI$ccg— tri-model fan-out: Claude, Codex, and Gemini answer simultaneously$external-context— parallel document-specialist agents for web and doc lookups