> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# profclaw task

> Create, list, inspect, cancel, and retry agentic tasks.

## Synopsis

```bash theme={null}
profclaw task <subcommand> [flags]
```

## Description

`task` manages the agentic work queue. Tasks are units of work assigned to agents - they can originate from GitHub issues, Jira tickets, Linear cards, Slack messages, cron schedules, or the CLI. Each task progresses through a lifecycle: `pending` -> `queued` -> `in_progress` -> `completed` (or `failed` / `cancelled`).

## Subcommands

| Subcommand | Alias | Description |
| - | - | - |
| `list` | `ls` | List all tasks with filtering |
| `show <id>` | `get` | Show detailed information for a task |
| `create <title>` | - | Create a new task |
| `cancel <id>` | - | Cancel a running or pending task |
| `retry <id>` | - | Requeue a failed task |
| `status [id]` | - | Quick status check or summary counts |

## `task list`

**-s, --status** `string`

Filter by task status: `pending`, `queued`, `in_progress`, `completed`, `failed`, `cancelled`.

**-l, --limit** `string` (default: 20)

Maximum number of tasks to return.

**--json** `boolean`

Output as JSON array.

## `task create <title>`

**title** `string` *required*

Task title. The title is also used as the initial prompt if no description is provided.

**-d, --description** `string`

Task description / detailed prompt for the agent.

**-p, --priority** `string` (default: 3)

Priority level from 1 (critical) to 5 (low). Affects queue ordering.

**-a, --agent** `string`

Agent name to assign the task to. Defaults to the system's configured default agent.

**--json** `boolean`

Output created task as JSON.

## `task show <id>`

**id** `string` *required*

Task ID or ID prefix (first 8 characters are sufficient).

**--json** `boolean`

Output as JSON.

## `task status [id]`

Without an ID, prints a summary count by status. With an ID, prints just the status string for that task - useful in scripts.

## Examples

```bash List all tasks theme={null}
profclaw task list
```

```bash List only failed tasks theme={null}
profclaw task list --status failed
```

```bash Create a simple task theme={null}
profclaw task create "Review pull request #123"
```

```bash Create a detailed task with priority theme={null}
profclaw task create "Analyze codebase dependencies" \
  --description "Check all npm packages for outdated versions and security issues" \
  --priority 2 \
  --agent claude
```

```bash Show task details theme={null}
profclaw task show abc12345
```

```bash Cancel a task theme={null}
profclaw task cancel abc12345
```

```bash Retry a failed task theme={null}
profclaw task retry abc12345
```

```bash Count tasks by status theme={null}
profclaw task status
```

```bash Quick status check in a script theme={null}
STATUS=$(profclaw task status abc12345)
echo "Task is: $STATUS"
```

## Task Status Values

| Status | Description |
| - | - |
| `pending` | Waiting to be picked up by the queue |
| `queued` | In the queue, waiting for an available agent |
| `in_progress` | Currently being executed by an agent |
| `completed` | Finished successfully |
| `failed` | Execution ended with an error |
| `cancelled` | Manually cancelled before completion |

## Related

* [`profclaw agent`](https://docs.profclaw.ai/cli/agent) - View agent health and stats
* [`profclaw queue`](https://docs.profclaw.ai/cli/queue) - Inspect the task queue
* [`profclaw summary`](https://docs.profclaw.ai/cli/summary) - Browse completed work summaries
* [`profclaw chat`](https://docs.profclaw.ai/cli/chat) - Interactive agentic chat


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.