Jobs
Jobs are background tasks that run asynchronously in the Chucky cloud. Unlike interactive prompts, jobs execute without waiting for real-time streaming - perfect for long-running tasks, scheduled work, or webhook-driven workflows.Create a Job
Options
| Option | Description | Default |
|---|---|---|
-m, --model <model> | Model to use (e.g., claude-sonnet-4-5-20250929, opus, haiku) | sonnet |
-s, --system-prompt <prompt> | System prompt for the session | - |
--max-turns <n> | Maximum conversation turns | - |
--callback-url <url> | Webhook URL for result delivery | - |
--callback-secret <secret> | Secret for webhook HMAC signature | - |
--ttl <seconds> | Delay execution by N seconds | - |
-w, --wait | Wait for job completion | false |
-a, --apply | Wait for completion and apply changes (implies --wait) | false |
--tools <tools> | Tools config (JSON or comma-separated names) | - |
--allowed-tools <tools> | Comma-separated list of allowed tools | - |
--disallowed-tools <tools> | Comma-separated list of disallowed tools | - |
--permission-mode <mode> | Permission mode | default |
--dangerously-skip-permissions | Bypass all permission checks | false |
Examples
Simple job:--apply flag implies --wait and will automatically fetch and apply the git bundle when the job completes successfully.
With webhook callback:
List Jobs
Options
| Option | Description | Default |
|---|---|---|
-s, --status <status> | Filter by status (PENDING, QUEUED, EXECUTING, COMPLETED, FAILED, CANCELED) | All |
-l, --limit <number> | Number of jobs to show | 25 |
Example
Get Job Details
Options
| Option | Description |
|---|---|
--json | Output raw JSON response |
Example
Cancel a Job
Job Lifecycle
- PENDING: Job created, waiting to be queued
- QUEUED: Job in queue, waiting for available worker
- EXECUTING: Job running in sandbox
- COMPLETED: Job finished successfully
- FAILED: Job encountered an error
- CANCELED: Job was manually canceled
Webhooks
When you provide a--callback-url, Chucky will POST the job result to your endpoint when the job completes:
--callback-secret, the payload will include an HMAC signature in the X-Chucky-Signature header for verification.