콘텐츠로 이동

[보관] 08. Hook 실제 fire 검증

시각: 2026-04-27 17:10 KST (logs/history-unset.jsonl 첫 엔트리: 2026-04-27T08:10:04Z UTC)

  • /Users/hamsters/hamster-lab/logs/ 비우고 Bash 한 번 실행
  • 직후 logs 디렉토리 재확인 → history-unset.jsonl 자동 생성, PreToolUse·PostToolUse 두 이벤트 모두 캡처됨
  • 캡처된 페이로드: session_id, transcript_path, cwd, permission_mode, tool_name, tool_input(command + description), tool_response(stdout, stderr, duration_ms)
  • “watcher가 새 settings.json을 인식 못 할 수 있다”는 알려진 caveat가 있어 검증 필수
  • 다행히 이번 세션에서는 즉시 fire — 별도 /hooks 재로드 불필요했음
  • 현재 세션은 EXPERIMENT_TOOL 미설정 상태 → history-unset.jsonl로 쌓이는 중
  • 다음부터는 EXPERIMENT_TOOL=meta claude로 진입해야 깔끔히 분리