Repository navigation
Let executors read the skill, close their own window and clear in-review - #28
Merged
Merged
Conversation
engine start now passes --add-dir with engine's plugin directory, so an executor that reads the skill's references with Claude's Read tool is not stopped by the "read outside the working directories" prompt. The kickoff follows --, since --add-dir is variadic. The executor skill (plugin 0.3.2) removes engine:in-review once the merge closes the task, and a hands-off executor ends by closing its own tmux window, which frees its slot. A gated one leaves the window for the operator. Found running BOGA3#881: two of five sessions stalled on the read prompt, finished sessions held their slots, and closed tasks kept engine:in-review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e name, keep docs true Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Objective
Problems found running BOGA3#881 hands-off with
engine start:engine:in-review.This PR fixes all three:
engine startpasses--add-dir <engine plugin dir> -- <kickoff>.engine:in-reviewafter the merge. In hands-off mode, it closes its own tmux window as its last action.Gates
./dev test(every required lane)internal/session/trust_test.goTestPluginDir: the plugin dir under~/.claudeand under$CLAUDE_CONFIG_DIR.internal/session/trust_test.goTestMarketplaceMatchesItsFile:session.Marketplacematches.claude-plugin/marketplace.json, so a rename can't silently point--add-dirat a missing dir.internal/start/start_test.goTestLaunchCommand:--add-dir <quoted dir> --comes before the kickoff, with and withoutCLAUDE_CONFIG_DIR.internal/start/integration_test.goTestRealStart: the fake claude receives--add-dir, the dir,--and the kickoff as separate argv entries.--add-dirand goes through with it;claude … --add-dir X -- '<prompt>'still receives the prompt;tmux kill-window -t "$TMUX_PANE"and its window closes.Rulings
Ruling (risk: med): use
--add-diron engine's plugin cache directory, not a read-only allow rule.Why:
--add-diris confirmed to remove the prompt. ARead(...)allow rule may not get past this check (untested). The cost is that sessions can also write to the plugin cache, including the cachedhooks.jsonthat installs the merge guard. An edit there would not change the running session, but would disable the guard for later sessions on that host. This is a security trade-off for the operator to confirm.If wrong: swap the flag for a read-only allow rule in
internal/start/start.gocommand(). One line plus its tests.Ruling (risk: low): a hands-off executor closes its own window (
cd "$HOME" && tmux kill-window -t "$TMUX_PANE", re-run if the shell reports a deleted cwd). The coordinator'sreleasecloses it only if it is still open.Why: an interactive Claude session cannot exit by itself, and
engine rundoes not exist yet, so nothing else frees the slot. A gated session stays open because the operator reads it.If wrong: remove the sentence from step 12 of
execute.md.Review
--would turn the appended--add-dirinto a positional argument: negligible, and no host's launch line has one.internal/start/start.gocommand(): argument order, and--before the kickoff.plugins/engine/skills/engine/references/execute.mdstep 12: the self-closing window, and that it happens only in hands-off mode.Deviations
None.
docs/hosts-and-sessions.mdstays within its 2000-word budget (1999 words) by trimming, with no budget change.🤖 Generated with Claude Code