Task

A task read from Claude Code’s native task store (~/.claude/tasks/<list-id>/<id>.json).

Usage

Source

Task()

Parameter Attributes

id: str
subject: str
status: str
description: str = ""
owner: str | None = None
blocked_by: tuple[str, …] = ()
blocks: tuple[str, …] = ()

Attributes

Name Description
OPEN_STATUSES Built-in immutable sequence.

OPEN_STATUSES

Built-in immutable sequence.

OPEN_STATUSES: tuple[str, …] = ("pending", "in_progress")

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.

If the argument is a tuple, the return value is the same object.