Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .agents/rules/checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,9 @@ indexes, one 75 bytes under the ceiling and one past it.

`question.sh` reads a message the maintainer sends for a question, a question mark or an opening
interrogative, and `.claude/hooks/on-prompt.sh`, run as the message arrives (`UserPromptSubmit`), tells
the turn that it answers and changes nothing, and reads no background task's notification, which reaches
the turn as a prompt the maintainer did not write: "what is left?" drew seven implement-issue workflows that
the turn that it answers and changes nothing, and reads no background task's notification and no
subagent's hand-back, `<agent-message from=...>`, which reach the turn as prompts the maintainer did not
write: "what is left?" drew seven implement-issue workflows that
had to be stopped, when it asked for the list. An order closed by a confirmation tag, "...; entendido?", is a
question too, and the check reads it as one: #1865 asked it to read such a message as an order, and the
maintainer closed it, since the tag asks whether the order was understood.
Expand Down
4 changes: 2 additions & 2 deletions .claude/hooks/on-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ command -v jq > /dev/null || exit 0
prompt=$(mktemp) || exit 0
trap 'rm -f "$prompt"' EXIT
printf '%s' "$input" | jq -r '.prompt // empty' > "$prompt"
# a background task's notification reaches the turn as a prompt, and the maintainer wrote none of it
grep -q '^<task-notification>' "$prompt" && exit 0
# a background task's notification and a subagent's hand-back reach the turn as a prompt, and the maintainer wrote neither
grep -qE '^<(task-notification>|agent-message )' "$prompt" && exit 0

checks="$(dirname "$0")/../../tools/checks"
ctx=
Expand Down
Loading