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

Merged
shoko merged 1 commits from feat/issue-49-queue-v2 into main 2026-04-02 04:37:41 +02:00
Owner

Summary

Fix for #49 - Queue infrastructure for autonomous PM.

Changes

Add queue infrastructure to allow PM agent to work autonomously:

  • Add QUEUE_DIR constant (~/.kugetsu/queue)
  • Add enqueue_task() - add task to queue
  • Add dequeue_task() - get next task from queue
  • Add list_queue() - list pending tasks
  • Add clear_queue() - clear all tasks
  • Modify cmd_delegate to use queue for task distribution

This allows PM agent to queue tasks when agents are busy and process them when agents become available.

Fixes #49

## Summary Fix for #49 - Queue infrastructure for autonomous PM. ## Changes Add queue infrastructure to allow PM agent to work autonomously: - Add QUEUE_DIR constant (~/.kugetsu/queue) - Add enqueue_task() - add task to queue - Add dequeue_task() - get next task from queue - Add list_queue() - list pending tasks - Add clear_queue() - clear all tasks - Modify cmd_delegate to use queue for task distribution This allows PM agent to queue tasks when agents are busy and process them when agents become available. Fixes #49
shoko added 1 commit 2026-04-02 04:21:10 +02:00
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
shoko merged commit e1050cb70a into main 2026-04-02 04:37:41 +02:00
Sign in to join this conversation.