feat(kugetsu): smart delegate with worktree awareness #130
Reference in New Issue
Block a user
Delete Branch "feature/smart-delegate-worktree-awareness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Improve
cmd_delegateto be worktree-aware and inject context about missing information.Changes
New Helper Functions
parse_issue_ref_from_message()- Extract gitserver/owner/repo/issue from messageget_missing_info()- Identify which fields are missingbuild_missing_info_context()- Build context string for missing infofind_worktrees_by_issue_number()- Find existing worktrees by issue numberfind_sessions_by_issue_number()- Find existing sessions by issue numberModified
cmd_delegategitserver.com/owner/repo/issues/123andowner/repo#123patterns)How It Works
PM agent receives context about:
Note on Routing
This implementation uses "context injection" approach rather than automatic routing to
cmd_start/cmd_continue. The PM agent receives full context and can decide how to act. This is more conservative and allows PM agent flexibility.Closes
Fixes #128
lgtm