Task Management
Tasks are first-class entities and support status-based flow without separate systems.
What this page covers
Section titled “What this page covers”How to create, list, and complete tasks through CLI and API.
Core workflow
Section titled “Core workflow”- Create a task:
pgm task add "write API docs" --context @focus --status next- List by status/context:
pgm task list --status next --context @focus- Update task fields:
pgm task update <id> --status waiting --version 1- Mark done:
pgm task complete <id> --version 2- REST flow:
POST /api/tasksGET /api/tasksPATCH /api/tasks/:idPOST /api/tasks/:id/complete
typeis set totaskon creation.- Completion writes a completion timestamp into metadata.
- Keep context labels and due dates consistent if you are integrating with schedulers or automation.