Run Claude Code
qoder_runStart a background subagent run to complete a task with read-only consult or file-editing execute permissions, then poll qoder_status for results.
Instructions
Start a new Claude Code session in a workspace. Returns a jobId immediately; the run continues in the background. Use qoder_status to poll for the result. Tier "consult" is read-only; "execute" may edit files in the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Permission tier for the run. | |
| model | No | Model alias or full name; defaults to the CLI's. | |
| prompt | Yes | The task for the subagent. | |
| workspace | Yes | Absolute path to an allowed workspace directory. | |
| waitSeconds | No | Block up to this long for the first result instead of returning at once. | |
| maxOutputTokens | No | Cap on one response. This is the only brake available: the CLI has no turn limit and no spend cap, so it does not bound the whole run. | |
| reasoningEffort | No | Reasoning effort. Falls back to the model's own default. |