feat: add basic prompt submit hook (#694)

This commit is contained in:
jnjpng
2026-01-26 17:41:51 -08:00
committed by GitHub
parent 5776c55728
commit 2edf2bd4b1
3 changed files with 32 additions and 1 deletions

11
hooks/prompt-instructions.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# UserPromptSubmit hook - adds instructions to every prompt
# Reads JSON from stdin, outputs instructions to stdout, exits 0
# Consume stdin (required for hook protocol)
cat > /dev/null
# Output instructions that will be injected into agent context
echo "Be specific. Double check your work. Ask clarifying questions."
exit 0