feat(detect): add Haiku 4.5 based overwhelm and brain dump detection (#3)
* feat(detect): add Haiku 4.5 based overwhelm and brain dump detection
Replace crude regex-only detection with Claude Haiku 4.5 classification:
- Quick regex pre-filter triggers Haiku only when patterns detected
- Haiku classifies: overwhelm, brain_dump, self_bullying, urgency
- Brain dumps are parsed and saved to DB in parallel
- Detection context prepended to message for Opus to respond appropriately
Flow: regex trigger -> Haiku classify -> (if brain_dump) Haiku parse + save
* docs: update README and CLAUDE.md for Haiku detection
- Add Haiku 4.5 detection to architecture diagram
- Add HAIKU_MODEL to environment variables
- Add detect.ts and wins.ts to project structure
- Mark M3 (detection) and M4 (tiny wins) as complete
- Document dual-model setup (Opus for agent, Haiku for detection)
* fix(detect): harden Haiku parsing
* fix(detect): preserve flags and avoid userId=0
* fix(detect): make parsed item saves atomic
---------
Co-authored-by: Claude <noreply@anthropic.com>