fix(hooks): make pstack opt-in on Claude Code - #19
Merged
Merged
Conversation
Replace the SessionStart mandate that routed every non-trivial task into poteto-mode with an opt-in gate. Claude invokes a pstack skill only when the user types /pstack:<name>, names pstack or one of its skills, or keeps a standing CLAUDE.md or AGENTS.md instruction. A started pstack skill keeps routing internally, and dispatched subagents follow their dispatch prompt. Closes #18
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.
Closes #18
What changed
plugins/pstack/hooks/session-start-context.mdreplaces the auto-fire mandate with an opt-in gate. Claude invokes apstack:*skill only when the user types/pstack:<name>, names pstack or one of its skills, or keeps a standing CLAUDE.md or AGENTS.md instruction for it. A pstack skill the user started keeps routing to the skills it needs, and dispatched subagents follow their dispatch prompt.unslop,typescript-best-practices). It does not adddisable-model-invocation, which would block poteto-mode from invoking them.README.md,docs/reference.md,docs/USAGE.md,NOTICE.md,CHANGES.md, andUPSTREAM-FLEX.mddescribe the opt-in behavior, the CLAUDE.md line that restores always-on routing, and the new fork-owned conflict surface.Verification
Local gate:
bun run test198 pass, 0 fail.bun run typecheckclean. Manifest JSON parse ok.PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.shall ok.claude plugin validate plugins/pstackpassed.Pre-install headless probes (
claude -p, Claude Code 2.1.287, scratch repo with atotal()that ignoresqty):pstack:tdd--plugin-dircart.tsdirectly--plugin-dir--plugin-dirpstack:poteto-mode, then readplaybooks/bug-fix.mdLive evidence:
Pending.
A pull request without live evidence remains a draft. Do not merge, tag, release, or roll it out.