ah task create
Create a new task or add to an existing task branch.
ah task create [OPTIONS] [BRANCH]Arguments
| Argument | Description |
|---|---|
[BRANCH] | Branch name for new tasks |
Prompt Options
| Option | Description |
|---|---|
--prompt <TEXT> | Task prompt (direct) |
--prompt-file <FILE> | Read prompt from file |
Agent Options
| Option | Description |
|---|---|
--agent <TYPE> | Agent type (repeatable) |
--model <NAME> | Model for last —agent |
--instances <N> | Instances for last —agent |
Sandbox Options
| Option | Description | Default |
|---|---|---|
--sandbox <TYPE> | none, local, devcontainer, vm | none |
--allow-network <BOOL> | Allow internet access | no |
--allow-containers <BOOL> | Enable container device access | no |
--allow-kvm <BOOL> | Enable KVM device access | no |
Delivery Options
| Option | Description |
|---|---|
--delivery <METHOD> | pr, branch, patch |
--target-branch <NAME> | Target branch for delivery |
--push-to-remote <BOOL> | Auto-push branch to remote |
Other Options
| Option | Description | Default |
|---|---|---|
--follow | Launch TUI to monitor | false |
-y, --yes | Skip interactive prompts | false |
--non-interactive | Non-interactive mode | false |
--mcp-config <PATH> | Path to MCP config file | — |
--create-task-files <BOOL> | Create local task files | yes |
--notifications <BOOL> | OS notifications on completion | yes |
Examples
Basic task:
ah task create --agent claude --prompt "Add unit tests"Read prompt from file:
ah task create --agent claude --prompt-file task.mdMultiple agents:
ah task create --agent claude --agent codex --prompt "Add tests"Multiple instances:
ah task create --agent claude --instances 3 --prompt "Find bugs"With specific model:
ah task create --agent claude --model sonnet --prompt "Refactor"With delivery method:
ah task create --agent claude --prompt "Fix bug" --delivery pr --target-branch mainNon-interactive with auto-push:
ah task create --agent claude --prompt "Update docs" --non-interactive --push-to-remote trueFollow task in TUI:
ah task create --agent claude --prompt "Task" --follow