feat(kvb-coach): run the short coach at the first prompt of every full hour
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
hooks/reminder.sh claims the current clock hour with an atomic mkdir under ~/.claude/.coach-hours/, so only the first prompt of the hour across all agents gets the COACH HOUR hint (at most three lines, most urgent area first, then the request); earlier hours are removed. enable-plugins.js registers it next to the kvb-dream reminder. test_coach covers once per hour, silence within the hour and the cleanup; test_dream checks the single registration. Operator order 2026-11-03. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f30644ca6
commit
735bbc9b77
6 files changed
+53
-2
No files matched your search
@@ -21,6 +21,11 @@ coach.py --profile <same> show [--json]
|
||||
Areas: `psyche`, `body`, `sleep`, `food`, `tasks`, `delegate`. Every coaching
|
||||
skill beyond this one is named `kvb-coach-<name>`.
|
||||
|
||||
`hooks/reminder.sh` triggers the short form at the first prompt of every full
|
||||
hour, once across all agents (stamped in `~/.claude/.coach-hours/`): at most
|
||||
three lines, the most urgent area first, then the agent continues with the
|
||||
operator's request.
|
||||
|
||||
## Step 1: read the situation
|
||||
|
||||
- **Time**: local time and weekday, and how long the operator has been at it
|
||||
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
hours="${COACH_STAMP_DIR:-${HOME}/.claude/.coach-hours}"
|
||||
hour="${COACH_HOUR:-$(date +%Y-%m-%dT%H)}"
|
||||
|
||||
mkdir -p "${hours}"
|
||||
mkdir "${hours}/${hour}" 2>/dev/null || exit 0
|
||||
find "${hours}" -mindepth 1 -maxdepth 1 -type d ! -name "${hour}" -exec rmdir {} +
|
||||
|
||||
cat <<'HINT'
|
||||
COACH HOUR: a new full hour began. Before answering the operator's request,
|
||||
run the kvb-coach skill in its short form: at most three lines, the most
|
||||
urgent area first, then continue with the request.
|
||||
HINT
|
||||
Reference in new issue
Block a user