cb task
Inspect, list, scaffold and generate tasks.
Inspect, list, scaffold and generate tasks.
| Command | Description |
|---|---|
cb task info | Show detailed information about a task. |
cb task list | List tasks in a directory. |
cb task create | Scaffold a new task environment. |
cb task generate | Generate a task from a prompt using Claude. |
Every command also accepts the global options.
Inspect and manage task environments.
cb task [COMMAND]Examples
# List the tasks in a directory
cb task list ./tasks
# Inspect one task
cb task info ./tasks/hello_file_envcb task info#Show detailed information about a task.
cb task info <path>| Argument | Type | Default | Description |
|---|---|---|---|
<path> | string | required | Path to task directory (containing main.py). |
Examples
# Inspect a task's variants and lifecycle functions
cb task info ./tasks/hello_file_envcb task list#List tasks in a directory.
cb task list [<path>]| Argument | Type | Default | Description |
|---|---|---|---|
<path> | string | . | Path to directory containing tasks (default: current directory). |
Examples
# List tasks here
cb task list
# List tasks in a directory
cb task list ./taskscb task create#Scaffold a new task environment.
cb task create [<path>]| Argument | Type | Default | Description |
|---|---|---|---|
<path> | string | . | Target directory to create the task in (default: current directory). |
Examples
# Scaffold a task interactively under ./tasks
cb task create ./taskscb task generate#Generate a task from a prompt using Claude.
cb task generate [OPTIONS] <prompt> [<output>]| Argument | Type | Default | Description |
|---|---|---|---|
<prompt> | string | required | Natural language description of the task to generate (e.g., "2048 game"). |
<output> | string | optional | Output directory (default: named after the prompt). |
| Flag | Type | Default | Description |
|---|---|---|---|
--no-interaction | boolean | false | Skip interactive prompts and run Claude non-interactively. |
Examples
# Generate a task
cb task generate '2048 game'
# Generate into a directory without prompts
cb task generate 'Sort a spreadsheet column' ./tasks/sort_column --no-interaction| Code | Meaning |
|---|---|
0 | Success: every variant completed. |
1 | Failure: a variant failed or was cancelled, or the command could not run. |
2 | Usage error: an unknown command, flag or value. |
130 | Interrupted (Ctrl-C); running variants are cancelled. |