ask_agent
Send a question to another local agent (Claude Code or Codex) and receive its answer, with optional thread context and sandboxed execution.
Instructions
Ask another local agent a question and get its answer (headless, blocking). Pass session_id to ask within an existing thread's context — the answer comes from a snapshot of that thread (for Claude Code, a hidden parallel branch in the same session); a live interactive view of it will not see the exchange. Codex runs sandboxed read-only unless allow_writes. Cursor is not askable (no CLI). Relay depth is capped at 2 to prevent agent-to-agent loops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the callee | |
| from | No | Who is asking, e.g. 'claude session abc123' | |
| agent | Yes | ||
| model | No | claude only: model override, e.g. 'haiku' | |
| prompt | Yes | ||
| timeout_s | No | Default 240 | |
| session_id | No | Existing thread to resume for context | |
| allow_writes | No | codex only: workspace-write sandbox |