From 4e62e921e93cfc5f2727e2f683766cdf6c5892b5 Mon Sep 17 00:00:00 2001 From: denis Date: Thu, 21 May 2026 18:30:01 +0000 Subject: [PATCH] feat(pet): comprehensive reflection (60+ langs, all agents, errors) --- scripts/keisei-pet.sh | 47 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/scripts/keisei-pet.sh b/scripts/keisei-pet.sh index 7a8a603..b73ba1f 100644 --- a/scripts/keisei-pet.sh +++ b/scripts/keisei-pet.sh @@ -27,12 +27,42 @@ dim=$'\033[2m'; reset=$'\033[0m' _agent_emoji() { case "$1" in - *researcher*) echo "πŸ”¬";; *architect*) echo "πŸ—οΈ";; *critic*) echo "πŸ”ͺ";; - *security*) echo "πŸ›‘οΈ";; *validator*) echo "βœ…";; *cost*) echo "πŸ’°";; - *modal*) echo "☁️";; *fal*) echo "🎨";; *ml-implementer*|*ml_implementer*) echo "🧠";; - *ml-researcher*|*ml_researcher*) echo "πŸ“š";; *infra*) echo "πŸ”§";; *implementer*) echo "βš™οΈ";; - *patent*) echo "πŸ“œ";; Explore|*explore*) echo "πŸ”­";; Plan|*plan*) echo "πŸ“";; - *) echo "πŸ€–";; + # ── project specialists (match before generic families) ── + *cartoon*) echo "🎬" ;; + *cloudsync*) echo "πŸ”„" ;; + *vortex*) echo "πŸŒ€" ;; + *recruiter*) echo "πŸ§‘β€πŸ’Ό" ;; + *leadgen*) echo "🎯" ;; + *surf*) echo "πŸ„" ;; + *neuralcloak*) echo "πŸ•ΆοΈ" ;; + *openclaw*) echo "🦞" ;; + *keit0*|*keisense*) echo "πŸ–οΈ" ;; + *wave*) echo "🌊" ;; + *cortex*) echo "🧬" ;; + *keimd*) echo "πŸ•ΈοΈ" ;; + *keisei-os*|*keiseios*) echo "🧩" ;; + *sa-specialist*|*sa_specialist*) echo "🏝️" ;; + # ── kit agent families ── + *researcher*) echo "πŸ”¬" ;; + *architect*) echo "πŸ—οΈ" ;; + *critic*) echo "πŸ”ͺ" ;; + *security*) echo "πŸ›‘οΈ" ;; + *validator*) echo "βœ…" ;; + *cost*) echo "πŸ’°" ;; + *modal*) echo "☁️" ;; + *fal*) echo "🎨" ;; + *ml-implementer*|*ml_implementer*) echo "🧠" ;; + *ml-researcher*|*ml_researcher*) echo "πŸ“š" ;; + *infra*) echo "πŸ”§" ;; + *implementer*) echo "βš™οΈ" ;; + *patent*) echo "πŸ“œ" ;; + *frontend*) echo "🎨" ;; + *debug*) echo "🐞" ;; + *guide*) echo "πŸ“–" ;; + Explore|*explore*) echo "πŸ”­" ;; + Plan|*plan*) echo "πŸ“" ;; + *general*) echo "πŸ€–" ;; + *) echo "πŸ€–" ;; esac } _elapsed() { @@ -111,6 +141,11 @@ esac stats="" [ "${rust_today:-0}" -gt 0 ] 2>/dev/null && stats+=" πŸ¦€${rust_today}" [ "${patents_today:-0}" -gt 0 ] 2>/dev/null && stats+=" πŸ“œ${patents_today}" +# recent errors β€” from the kit's error-spike-detector rolling window (SSoT) +errn=0 +EWIN="${HOME}/.claude/memory/error-window.txt" +[ -f "$EWIN" ] && errn="$(awk '$2==1' "$EWIN" 2>/dev/null | wc -l | tr -d ' ')" +[ "${errn:-0}" -gt 0 ] 2>/dev/null && stats+=" $(printf '\033[31m')❌${errn}${reset}" [ "${violations:-0}" -gt 0 ] 2>/dev/null && stats+=" ⚠${violations}" proj="${PWD##*/}"; [ -z "$proj" ] && proj="~"