Skip to content

Commit 1d2785d

Browse files
codejunkie99claude
andcommitted
Make UserPromptSubmit hook nudge-only, never block non-SV prompts
Rewrote the prompt to be more defensive — returns {} for anything that isn't clearly SystemVerilog work. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aa857fc commit 1d2785d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/gateflow/hooks/hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"hooks": [
1717
{
1818
"type": "prompt",
19-
"prompt": "Decide if this user prompt is asking to CREATE, DEBUG, TEST, SIMULATE, or MODIFY SystemVerilog/Verilog/RTL hardware code. Return ONLY a JSON object. If yes: {\"systemMessage\": \"SystemVerilog task detected. Use /gf to plan first (with ASCII diagram) before implementation, or /gf-plan for planning only.\"}. If no (e.g. questions about plugins, settings, naming, general software, brainstorming non-SV topics): {}. Be strict — only trigger for actual hardware design work, not casual mentions of hardware concepts.",
19+
"prompt": "Is this prompt CLEARLY asking to CREATE, DEBUG, TEST, SIMULATE, or MODIFY SystemVerilog/Verilog/RTL hardware code? Return ONLY a JSON object. If YES (actual hardware design work): {\"systemMessage\": \"SystemVerilog task detected. Consider using /gf to plan first.\"}. If NO or UNSURE: return exactly {}. NEVER block non-SV prompts.",
2020
"timeout": 10
2121
}
2222
]

0 commit comments

Comments
 (0)