Ask another agent
ask_agentConsult another AI coding agent for a second opinion on a design, plan review, or stuck bug; the advisor reads your working directory and returns a session_id for follow-ups.
Instructions
Ask another AI coding agent (Claude Code, Codex, Grok or Antigravity as "agy" with Gemini models, using the CLIs signed in on this machine) for advice: a second opinion on a design, a review of your plan, help with a bug you are stuck on. The advisor runs headless with read-only access to the working directory, so point it at files instead of pasting them. It cannot edit files or ask you questions. Calls take from several seconds to a few minutes. The reply includes a session_id: pass it back to ask a follow-up in the same conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory the advisor can read. Defaults to the directory this server was started in | |
| agent | Yes | Which CLI to consult | |
| model | No | Model for that CLI, e.g. gpt-6-astra, opus, grok-4.7, gemini-3.1-pro-high. Omit for the CLI's default; list_agents shows options | |
| effort | No | Reasoning effort. Omit for the CLI's default | |
| question | Yes | The question, with enough context to answer it (file paths, what you tried, constraints) | |
| session_id | No | session_id from an earlier reply, to ask a follow-up |