feat(kugetsu): add queue infrastructure for autonomous PM #89

Closed
shoko wants to merge 1 commits from feat/issue-49-queue-infrastructure into main

1 Commits

Author SHA1 Message Date
shokollm
9171e41e33 feat(kugetsu): add queue infrastructure for autonomous PM
Add queue management system for task queue architecture (Phase 1):

- Add QUEUE_FILE and POLL_INTERVAL constants
- Add init_queue() to initialize queue.json if missing
- Add cmd_queue with subcommands:
  - list: Show queue status with counts per tier
  - enqueue <tier> <msg>: Add task to queue
  - dequeue [tier]: Remove and return next task (priority order)
  - clear: Clear all queued tasks

Queue tiers:
- dev_followups (highest priority)
- user_interrupts (medium)
- background (lowest)

This enables the autonomous queue-based architecture where PM agent
continuously polls the queue and assigns work to dev agents.

Part of #49
Related to #46 (verbosity control)
2026-04-01 23:23:34 +00:00