Auto-launch adopted tasks in herdr#45
Open
gering wants to merge 1 commit into
Open
Conversation
Extend /adopt so that, inside a herdr session, it opens the task's tab and starts the chosen worker after creating the worktree — exactly like /kickoff. Outside herdr it prints the manual launch block unchanged. - adopt/SKILL.md: add `[agent-selector]` argument; new step 12 (worker selection, deferring to kickoff step 12 for the picker/announce rules) and step 13 (herdr gate → `herdr-launch.sh launch` with the selector, branching on the result via kickoff step 13a; else a registry-driven manual block). Reuse the shared helper — no launch logic duplicated. - Label derives from the resolved task name, so it stays sensible when /adopt keeps the original branch name; templates show the adopted branch, not an assumed `task/<name>`. - READMEs: herdr section and root README note /adopt auto-launches too; Adopting section lists the selector flags. - Knowledge: extend herdr-kickoff-automation with the adopt auto-launch and its reference-not-duplicate design decision. - Bump work-system 1.9.2 → 1.9.3 (plugin.json + marketplace.json). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EwptRCfLvt4Knpz9rdU7z6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/adoptso that, inside a herdr session, it opens the task's tab and starts the chosen worker after creating the worktree — exactly like/kickoff./adoptprints the manual launch block unchanged (now registry-driven, so it honors the selected worker).herdr-launch.shhelper — no launch logic duplicated; the intricate result-branching stays a single source in/kickoff.Changes
adopt/SKILL.md: new[agent-selector]argument; step 12 (worker selection, deferring to kickoff step 12 for picker/announce rules); step 13 (herdr gate →herdr-launch.sh launchwith the selector, branching via kickoff step 13a; else a registry-driven manual block)./adoptkeeps the original branch name; templates show the adopted branch, not an assumedtask/<name>; worktree path built from the main-repo path captured in step 1 (cwd-safety)./adoptauto-launches too; Adopting section lists the selector flags.herdr-kickoff-automationextended with the adopt auto-launch and its reference-not-duplicate design decision.Readiness
check-structure.py: 0 errorsTest plan
/adopt <branch>opens a background tab at the worktree running the chosen worker--pick/--sol: worker selection routes through the registry and the manual block/tab reflects it/adopt <branch>prints the registry-driven manual launch block, worktree created unchanged/adoptthat keeps the original branch name → tab label + templates still use the resolved task name / adopted branch🤖 Generated with Claude Code