Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Task Management

Tasks are first-class entities and support status-based flow without separate systems.

How to create, list, and complete tasks through CLI and API.

  1. Create a task:
Terminal window
pgm task add "write API docs" --context @focus --status next
  1. List by status/context:
Terminal window
pgm task list --status next --context @focus
  1. Update task fields:
Terminal window
pgm task update <id> --status waiting --version 1
  1. Mark done:
Terminal window
pgm task complete <id> --version 2
  1. REST flow:
  • POST /api/tasks
  • GET /api/tasks
  • PATCH /api/tasks/:id
  • POST /api/tasks/:id/complete
  • type is set to task on creation.
  • Completion writes a completion timestamp into metadata.
  • Keep context labels and due dates consistent if you are integrating with schedulers or automation.