packages/builtin-skills/src/task/references/commands.md
lh task list [--status <status>] [--root] [--parent <id>] [--agent <id>] [-L <limit>] [--tree] - List tasks
--status: pending, running, paused, completed, failed, canceled--root: Only root tasks (no parent)--tree: Display as tree structurelh task view <id> - View task details (instruction, workspace, activities)lh task create -i <instruction> [-n <name>] [--agent <id>] [--parent <id>] [--priority <0-4>] - Create task
lh task edit <id> [-n <name>] [-i <instruction>] [--status <status>] [--priority <0-4>] [--agent <id>] - Update tasklh task delete <id> [--yes] - Delete tasklh task clear [--yes] - Delete all taskslh task tree <id> - Show subtask tree with dependencieslh task start <id> [--no-run] [-p <prompt>] [-f] [-v] - Start task (pending → running)
--no-run: Only update status, skip agent execution-f, --follow: Follow agent output in real-time-v, --verbose: Show detailed tool call infolh task run <id> [-p <prompt>] [-c <topicId>] [-f] [--topics <n>] [--delay <s>] - Run/re-run agent execution
-c, --continue: Continue on existing topic--topics <n>: Run N topics in sequencelh task pause <id> - Pause running tasklh task resume <id> - Resume paused tasklh task complete <id> - Mark as completedlh task cancel <id> - Cancel tasklh task comment <id> -m <message> - Add commentlh task sort <parentId> <id1> <id2> ... - Reorder subtaskslh task heartbeat <id> - Send manual heartbeatlh task watchdog - Detect and fail stuck taskslh task checkpoint view <id> - View checkpoint configlh task checkpoint set <id> [--on-agent-request <bool>] [--topic-before <bool>] [--topic-after <bool>] [--before <ids>] [--after <ids>] - Configure checkpoints
--on-agent-request: Allow agent to request review--topic-before/after: Pause before/after each topic--before/after <ids>: Pause before/after specific subtask identifierslh task review view <id> - View review configlh task review set <id> [--model <model>] [--provider <provider>] [--max-iterations <n>] [--no-auto-retry] [--recursive] - Configure reviewlh task review criteria list <id> - List review rubricslh task review criteria add <id> -n <name> [--type <type>] [-t <threshold>] [-d <description>] [--value <value>] [--pattern <pattern>] [-w <weight>] [--recursive] - Add rubric
lh task review criteria rm <id> -n <name> [--recursive] - Remove rubriclh task review run <id> --content <text> - Manually run reviewlh task dep add <taskId> <dependsOnId> [--type <blocks|relates>] - Add dependencylh task dep rm <taskId> <dependsOnId> - Remove dependencylh task dep list <taskId> - List dependencieslh task topic list <id> - List topics for tasklh task topic view <id> <topicId> - View topic messages (topicId can be seq number like "1")lh task topic cancel <topicId> - Cancel running topic and pause tasklh task topic delete <topicId> [--yes] - Delete topic and messageslh task doc create <id> -t <title> [-b <content>] [--parent <docId>] [--folder] - Create and pin documentlh task doc pin <id> <documentId> - Pin existing documentlh task doc unpin <id> <documentId> - Unpin documentlh task doc mv <id> <documentId> <folder> - Move document into folder (auto-creates folder)--json [fields] for structured outputlh task tree to visualize full task hierarchy before planning worklh task comment to log progress — comments appear in task activities