项目文件夹

文件
kazuki dbdf861e45 feat(hooks): implement v5 hook set (session-restore, confidence-gate, session-summary, reflexion, tab-title)
- session-restore.sh (SessionStart, command): emits TASK.md head, git
  branch/status/log, and probes mindbase on :18002/:18003 with 1s
  timeout; every probe degrades silently, always exits 0. Replaces
  session-init.sh (its git summary folded in; banner text dropped).
- confidence-gate (PreToolUse Write|Edit, prompt): enforces
  confidence-check skill criteria before non-trivial new
  implementations; trivial edits and test fixes exempt.
- session-summary (Stop, prompt): 2-3 bullet outcome summary, stored
  via mindbase_store when available.
- reflexion-trigger (Stop, prompt): applies pm-reflexion
  failure-reflexion when a session hit real errors.
- tab-title.sh: ported from airis-tab-title.sh, opt-in via
  SUPERCLAUDE_TAB_TITLE=1, silent no-op otherwise; wired to
  SessionStart/UserPromptSubmit/PreToolUse/PostToolUse/Notification/
  Stop to keep the idle/running/waiting/stop state machine working.
- statusline.sh: genericized statusline asset (not wired into
  hooks.json; users reference it from settings).

Hook schema verified against code.claude.com/docs/en/hooks:
type=command and type=prompt confirmed; timeout is in seconds.
2026-06-12 11:30:55 +09:00
..