Plugin

LH Task Queue is a single work queue for human and AI agent tasks, with atomic claiming, dependency tracking, and MCP abilities. Tasks live as a dedicated post type; workflow state (New, Claimed, In Progress, Pending, Blocked, Resolved, Closed, Cancelled, Deferred) is tracked in a companion status table rather than native WordPress post_status, so an atomic claim/complete/fail/reassign lifecycle can run safely under concurrent access from multiple human and agent sessions.

Key features

  • Atomic task claiming (FIFO or targeted) with claim-token verification, so concurrent sessions can’t double-claim the same task
  • Dependency tracking via blocked_by, with automatic requeue if a claimed task turns out to be blocked
  • Queue/lane and task-type taxonomies for routing
  • Stale-claim sweep (cron) to recover tasks left claimed by a crashed or disconnected agent, with a renew-claim heartbeat so a still-live long-running claim can stay ahead of the sweep
  • Full MCP ability surface: create, claim-next, complete, fail, reassign, renew-claim, edit (staff override), get, list
  • Dashboard widget and admin list-table columns for at-a-glance workflow status

Install & setup

Network-activate the plugin (requires lh-markdown-converter). Tasks are created via the MCP abilities or programmatically via LH_Tasks_task_post_type_class::create_task().

Contents