feat: add kugetsu session manager skill #12
Closed
shoko
wants to merge 0 commits from
feat/kugetsu-wrapper into main
pull from: feat/kugetsu-wrapper
merge into: shoko:main
shoko:main
shoko:fix/issue-254
shoko:fix/issue-252
shoko:fix/issue-248
shoko:fix/issue-246
shoko:fix/issue-165
shoko:fix/issue-158
shoko:fix/issue-244
shoko:fix/issue-121
shoko:fix/issue-119
shoko:fix/issue-166
shoko:fix/issue-229-pr-conflict-check
shoko:fix/issue-212
shoko:fix/issue-229-user-message-with-base-workflow
shoko:fix/issue-229-ensure-session-worktree-bug
shoko:fix/issue-168
shoko:fix/issue-225-cmd-continue-message-truncation
shoko:fix/issue-223-pr-creation-instructions
shoko:fix/issue-220-pm-context-enhancement
shoko:fix/issue-210-msg-file-race-condition
shoko:fix/issue-207-queue-daemon-set-debug-mode
shoko:fix/issue-message-encoding
shoko:fix/issue-118
shoko:fix/issue-daemon-worktree-session-handling
shoko:fix/issue-write-index-quoting
shoko:fix/issue-cmd-destroy-unbound-var
shoko:fix/issue-daemon-worktree-path-fix
shoko:fix/issue-syntax-error-372
shoko:fix/issue-187-start-forks-agent
shoko:fix/issue-185-worktree-wrong-directory
shoko:fix/issue-183-destroy-base-requires-target
shoko:fix/issue-181-get-repo-url-strips-user-org
shoko:fix/issue-179-worktree-path-doubled
shoko:fix/issue-176-extract-issue-ref
shoko:fix/issue-174-queue-daemon-crashes
shoko:fix/issue-172-init-script-wrong-session-ids
shoko:fix/issue-170-duplicate-update-queue
shoko:fix/issue-167-notification-bash
shoko:fix/issue-156-queue-fixes
shoko:fix/issue-155-queue-list-json
shoko:fix/issue-160-gitea-token-from-pm-agent
shoko:fix/issue-156
shoko:fix/issue-150
shoko:fix/issue-116-modularize-script
shoko:fix/issue-120
shoko:fix/issue-144-parse-issue-ref-format-v2
shoko:fix/issue-queue-daemon-excess-agents
shoko:fix/issue-142-process-queue-missing-parens
Labels
Clear labels
0.2.x-only
0.3.x-only
backport
blocked
bug
critical
feature
foundation
high
meta
need-review
parallelization
ready
ready-to-merge
task-delegation
Available only in 0.2.x, not backportable
Available only in 0.3.x, not backportable
Backport compatible - can merge to 0.1.x
Issue needs clarification/discussion before it can be worked on
Bug report
Critical - blocking parallel work
New feature
Foundation work for 0.2.x
High priority - workflow improvements
Meta issue tracking multiple issues
PR needs review before merge
Issues related to parallelization
Issue is clear and ready to be implemented/delegated
PR approved and ready to merge
Issues related to task-delegation
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: shoko/kugetsu#12
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "feat/kugetsu-wrapper"
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
kugetsuskill for opencode session managementstart,list [--all],resume,stop,helpused→idle(graceful) orleft(interrupted)Files
skills/kugetsu/SKILL.md- Skill documentation (agentskills.io format)skills/kugetsu/scripts/kugetsu- Main wrapper scriptskills/kugetsu/scripts/kugetsu-install.sh- Installation scriptRelated
Test Results
Test Suite Improvements - Summary
Test Results: 9/12 passing (previously 6/12)
Fixes Applied:
Fixed test 3/6 - Removed premature
cleanupcall after test 4 that was deleting sessions before tests 5/6 could verify themFixed test 8 - Added "Using provided message:" output to
kugetsu resumewhen a message is provided on the command lineFixed test 9 - Updated grep pattern from "not resumable" to "cannot be resumed" to match actual error message
Added cleanup functions -
cleanup_sessions()andcleanup_opencode()to clean up between tests that spawn opencodeFiles Modified:
skills/kugetsu/tests/test-kugetsu.sh- Fixed test logic and cleanupskills/kugetsu/scripts/kugetsu- Added "Using provided message:" outputRemaining Issue:
Tests 9, 10, 11 fail intermittently due to session state from earlier tests in the same run. This is a test isolation issue - the tests share session state that causes intermittent failures. The core kugetsu functionality works correctly.
Test Suite Update: All 12 Tests Passing
The issue was bash exit status handling with pipes and set -euo pipefail.
Changed from:
if ! timeout 5 bash -c "$KUGETSU resume ..." 2>&1 | grep -q "cannot be resumed";
To:
OUTPUT=$(timeout 5 bash -c "$KUGETSU resume ..." 2>&1 || true)
if echo "$OUTPUT" | grep -q "cannot be resumed";
Also added test isolation cleanup (rm specific session, not all).
All 12 tests now pass consistently.
lgtm
Pull request closed