feat: v4.44.0 — deterministic intent routing without slash commands#30
Open
sadewadee wants to merge 1 commit into
Open
feat: v4.44.0 — deterministic intent routing without slash commands#30sadewadee wants to merge 1 commit into
sadewadee wants to merge 1 commit into
Conversation
Adds a UserPromptSubmit hook (route-intent.sh) that keyword-matches every prompt for debugging / refine-existing-code / scope-new-feature shapes and injects a hedged suggestion to dispatch qa-engineer / reviewer / architect — so the swarm can engage without the user typing /dev-squad first. Prose-only dispatch (agent description matching) fires ~50-80% of the time per prior project learnings; this makes routing deterministic while staying advisory, since keyword matching can't tell "fix this crash" from "explain this error". Also adds "Use PROACTIVELY when..." trigger clauses to qa-engineer, reviewer, backend, frontend, and architect descriptions so Claude Code's own dispatcher has a fallback path even without the hook. Co-Authored-By: Claude Sonnet 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.
Summary
hooks/route-intent.shwired toUserPromptSubmit: deterministically keyword-matches every prompt for debugging / refine-existing-code / scope-new-feature shapes and injects a hedged suggestion to dispatchdev-squad:qa-engineer/dev-squad:reviewer/dev-squad:architect— no/dev-squadslash command required to engage the swarm.Use PROACTIVELY when...trigger clauses toqa-engineer,reviewer,backend,frontend,architectdescriptions so Claude Code's own auto-delegation has a matching path even without the hook (prose-only fires ~50-80% per prior project learnings — the hook is the deterministic backstop, the description edits are the probabilistic fallback).4.43.0→4.44.0inplugin.json+marketplace.json.Kept deliberately advisory, not a hard mandate: keyword matching can't distinguish "my app is crashing, fix it" from "explain what this error message generally means", so the injected note always hedges rather than asserting an intent it can't verify. No-ops on prompts starting with
/to avoid double-injection on explicit slash-command usage.Test plan
route-intent.shmanually tested against sample prompts (crash/bug, refactor, new-feature, explanatory question,/dev-squad build, unrelated prompt) — fires only on the intended cases, silent otherwisehooks/hooks.jsonvalidated as well-formed JSON after edit