devin_request_async
Start a Cognition Devin CLI request as a durable background job. Poll its status with llm_job_status and collect results with llm_job_result.
Instructions
Start a Cognition Devin CLI request as a durable background job. Poll with llm_job_status, collect with llm_job_result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model name or alias (e.g. opus, latest) | |
| config | No | Config file path (Devin --config <PATH>) | |
| prompt | No | Prompt text for Devin CLI. Required in practice; promptFile is additive (loads an initial prompt from a file). | |
| sandbox | No | Run the Devin session in a sandbox (Devin --sandbox). Safety control: never defaulted on; pass true to opt in. | |
| sessionId | No | Devin session ID to resume (--resume <id>; use resumeLatest for --continue). Note: the gw-* id minted for a brand-new session is not resumable via sessionId; continue with resumeLatest:true. | |
| promptFile | No | Load the initial prompt from a file (--prompt-file) | |
| agentConfig | No | Agent config file path (Devin --agent-config <FILE>) | |
| forceRefresh | No | Bypass dedup and force a fresh CLI run even if a recent identical request exists | |
| resumeLatest | No | Resume the most recent Devin session in cwd (--continue). Note: the gw-* id minted for a brand-new session is not resumable via sessionId; continue with resumeLatest:true. | |
| correlationId | No | Request trace ID (auto if omitted) | |
| exportSession | No | Export the session (Devin --export [<PATH>]). true emits a bare --export; a string path emits --export <path>. | |
| idleTimeoutMs | No | Idle timeout in ms (min 30s, max 1h, omit=CLI default) | |
| optimizePrompt | No | Optimize prompt before execution | |
| permissionMode | No | Devin CLI permission mode (--permission-mode). auto, smart, or dangerous. When omitted, Devin uses its own headless default; pass auto or smart for unattended runs. | |
| compressResponse | No | Compress the response display text when collected via llm_job_result (native compressor; default: [compression].enabled). | |
| createNewSession | No | Force a new session | |
| respectWorkspaceTrust | No | Respect workspace trust (Devin --respect-workspace-trust <bool>). Devin defaults true for interactive and false for print mode; set explicitly to override. |