consult
Request a second opinion on a question, design, bug, or plan from another coding agent. Run sync for an immediate answer or async to receive a task handle for later reading.
Instructions
Second opinion on a question, design, bug or plan. Sync by default; mode async returns a task_handle (read via wait_argv or session task).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"proposal": "<proposal>"
},
"name": "consult"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | sync (default): wait; async: return task_handle, wait via wait_argv or session task. | |
| model | No | Omit unless the user names a model or price limit. doctor lists models, efforts and prices; unknown names fail. Tag ask: ask the user first, a form follows; deny: never runs. | |
| backend | No | codex, claude, agy or auto (default: configured, else other CLI, most quota). | |
| proposal | Yes | Self-contained question or plan; name files instead of pasting them. Bad: "thoughts?" | |
| task_type | No | Omit for plain question; else analysis kind. | |
| file_paths | No | ||
| timeout_ms | No | Monotonic budget, ms: sync 15m/30m, async 60m/4h. | |
| context_files | No | Workspace paths the agent reads itself; only the paths are sent. | |
| session_handle | No | Follow-up footer handle; else fresh agent. | |
| workspace_path | No | Repo path; omit for client workspace. | |
| reasoning_effort | No | Omit for the default; doctor lists per-model values. Required where listed, or as a model name suffix. | |
| output_price_below | No | User limit, USD per million output tokens, strict (5 excludes 5). Only verified prices qualify; server picks default or newest. | |
| specific_questions | No | Extra questions or criteria. |