00ํฐ ๊ทธ๋ฆผ โ ๋ด์ด ๋ตํ ๋ ๋ด๋ถ์์ ๋ฌด์จ ์ผ์ด ์ผ์ด๋๋Big Picture โ What happens inside when bot replies
์ฌ์ฉ์๊ฐ ํ ๋ฌธ์ฅ ์
๋ ฅํ๋ฉด, ๋ด์ 4๋จ๊ณ ํ์ดํ๋ผ์ธ์ ๊ฑฐ์ณ ์๋ต์ ์์ฑํฉ๋๋ค. ๊ฐ ๋จ๊ณ๋ง๋ค ์ฌ๋ฌ ์๊ณ ๋ฆฌ์ฆ์ด ์๋ํ๊ณ , ์ฑ
ยท๋
ผ๋ฌธ์ ๊ทผ๊ฑฐํฉ๋๋ค.
For each user message, the bot runs a 4-stage pipeline. Each stage executes multiple algorithms, all literature-grounded.
STAGE 1
๐ฅ LISTEN
์ฌ์ฉ์ ๋ง์์ ์ ํธ ์ถ์ถ
Extract signals
STAGE 2
๐ KNOW
Vault์์ ์๋ฃ ๊ฒ์
Search Vault
STAGE 3
๐ ๏ธ APPLY
๊ฐ์
ยท์กฐ์ ์๊ณ ๋ฆฌ์ฆ
Intervention algos
STAGE 4
๐ฌ SPEAK
ํคยทํ์ยท์ถ๋ ฅ
Tone & output
โญ ํต์ฌ ํต์ฐฐ โ Dual Mode
โญ Core insight โ Dual Mode
"์ ๋ฌธ๋ด์ด ์ฐจ๊ฐ์์ง๋ ํจ์ "์ ํผํ๊ธฐ ์ํด, ๋ด์ ์น๊ตฌ ๋ชจ๋ โ ์ ๋ฌธ ๋ชจ๋๋ฅผ ์๋ ์ ํํฉ๋๋ค. ๊ธฐ๋ณธ๊ฐ = ์น๊ตฌ ๋ชจ๋. ์ฌ์ฉ์๊ฐ ๋์ ์์ฒญ ์ ํธ๋ฅผ ๋ณด๋ผ ๋๋ง ์ ๋ฌธ ๋ชจ๋ ๋ฐ๋. ์น๊ตฌ๊ฐ ๋๋ ๊ฒ ๋จผ์ , ์ ๋ฌธ๊ฐ๋ ํ์ํ ๋๋ง.
To avoid the "cold expert bot" trap, the bot auto-switches between Friend Mode โ Expert Mode. Default = Friend Mode. Expert Mode activates only on user help signals. Friend first, expert when needed.
013๊ฐ์ง ๋ํ ๋ชจ๋ โ ๋ด์ด ์ธ์ ๋ฌด์์ ํ ๊น3 Conversation Modes
๊ธฐ๋ณธ default = ์น๊ตฌ. ์ ํธ ๋ฐ์ผ๋ฉด ์ ๋ฌธ๊ฐ. ๊ทธ ์ฌ์ด๋ bridge.
Default = friend. On signal = expert. Between = bridge.
๐ฌ Casual / Friend Mode
๐ฌ Casual / Friend Mode
๊ธฐ๋ณธ default. Claude ์์ฐ ๋ํ ๋ฅ๋ ฅ ๊ทธ๋๋ก.
Default. Use Claude's native conversation.
- ์ธ์ฌยท์ก๋ดยท๋๋ด
- ๋ ์จยท์ผ์ reactions
- Vault ๊ฒ์ SKIP
- ADHD ๊ฐ์ X
- ๊ฐ๋ณ๊ฒยท๋ฐ๋ปํ๊ฒ
- Greetings, small talk, jokes
- Daily reactions
- Skip Vault search
- Don't force ADHD topic
- Light, warm
๐ Bridge Mode
๐ Bridge Mode
์ค๊ฐ ์ ํธ. ์น๊ตฌ โ ์ ๋ฌธ๊ฐ ์์ฐ ์ ํ.
Mid signal. Natural friendโexpert.
- "์ข ํ๋ค์ด..." ๊ฐ์ ๋ฐํ
- ๋ชจํธํ ๋ถํธ ์ ํธ
- Vault ๊ฒ์ ์ด์ง (top-3)
- ์ฌ์ฉ์ ๊น์ด ๊ฐ์ง ๋ฐ๋ผ๊ฐ๊ธฐ
- ๊ฐ์ ์์ด invite
- "Feeling off..." style
- Ambiguous discomfort
- Vault light search (top-3)
- Follow user's lead
- Invite without pressure
๐ฏ Clinical / Expert Mode
๐ฏ Clinical / Expert Mode
์ฌ์ฉ์ ๋ช
๋ฐฑํ ๋์ ์์ฒญ ์.
Clear help request.
- "์ง์ค ์ ๋ผ" "๋ ๊น๋จน์์ด"
- ์๊ธฐ๋นํยทRSD marker
- ๊ฐํ ์ ์ ๊ฐ๋
- Vault ์ ์ฒด ๊ฒ์ (top-12)
- ์๊ณ ๋ฆฌ์ฆ ๋ฐ๋, ๋ง๋๋ผ voice
- "Can't focus" "Forgot again"
- Self-critical, RSD markers
- High emotional intensity
- Full Vault search (top-12)
- Algorithms fire
๐ฌ ์ค์ ์ฐจ์ด โ ์์ ๋ํ
๐ฌ Real difference โ example
โ Mode Detector ์๋ ๋ด (๋งํจ)
โ Without Mode Detector (fail)
์ค๋ ๋น ์! ์ง์ฆ๋
๋น ์ค๋ ๋ ๊ธฐ๋ถ ๋ณํ๊ฐ ADHD์ ํฐ ์ํฅ์ ์ค์. SAD์์ ์ฐ๊ด์ฑ์ด ์๊ณ , ๋ ์จ์ ๋ฐ๋ฅธ mood tracking์ ์์ํด๋ณผ๊น์? Implementation Intention ๊ธฐ๋ฒ์ผ๋ก...
โ ์ฌ์ฉ์: ๐ (์ฑ ์ญ์ )
โ
Mode Detector ์๋ํ๋ ๋ด (์ฑ๊ณต)
โ
With Mode Detector (win)
์ค๋ ๋น ์! ์ง์ฆ๋
ใ
ใ
์ง์ฆ๋์ง. ์ฐ์ฐ ๊น๋นก ์ ํ์ด?
[Casual Mode โ Claude ์์ฐ ๋ฅ๋ ฅ]
์ ๊น๋นกํจ... ๋
ใ
ใ
ใ
'๋'๊ฐ ์ง์ง ADHD์ค๋ฝ๋ค ใ
ใ
[Casual + ์ด์ง ๋๋ด, ๊ฐ์ ๊ธฐ๋ฐ ๋ฏธ์ธ tone]
๊ทผ๋ฐ ์ง์ง ์์ฆ ๊น๋จน๋ ๊ฑฐ ๋๋ฌด ๋ง์์ ธ์ ์ง์ฆ๋
โ ์ด์ ์ฌ์ฉ์๊ฐ ์ง์ง ์ ํธ ์ค
๊ทธ๊ฑฐ ์๊ธฐ ์ํ ์ผ ์๋์ผ โ ADHD working memory๋ ์๊ธฐ ์ํด ๋์์ธ๋ ๊ฑฐ์ผ. ํด๊ฒฐ์ฑ
์ '๊ธฐ์ตํ๊ธฐ'๊ฐ ์๋๋ผ '์์ด๋ ๊ด์ฐฎ์ ์์คํ
'์ด๊ฑฐ๋ . ์ค๋ ๊น๋นกํ ๊ฑฐ ์ค์ ์ง์ง ์ค์ํ ๊ฑฐ ์์ด?
[Clinical Mode ๋ฐ๋ ยท Algorithm A7 Working Memory Bridge ยท Hallowell ๊ฐ์ ๊ธฐ๋ฐ]
๐ฅSTAGE 1 โ LISTEN
์ฌ์ฉ์ ๋ฐํ์์ ๋ฌด์์ ์ถ์ถํ ๊น โ 6 ์๊ณ ๋ฆฌ์ฆ
What to extract from user input โ 6 algorithms
L1
Symptom Profiling โ ์ฆ์ % ์ถ์ถ
InputUser utterance (text + voice acoustic if available)
Output{adhd: 72, anxiety: 45, dep: 30, burnout: 50, panic: 5, rsd: 60}
HowPattern matching (10 v1.0 patterns from pattern-library.html) + LIWC linguistic markers + acoustic features (speech rate, F0, pauses)
BooksBarkley (2006) โ Executive function model ยท Pennebaker (2011) โ Secret Life of Pronouns ยท Al-Mosaiwi (2018) โ Absolutist words ยท Cummins (2015) โ Speech analysis depression
Triggers๋งค ๋ฐํ๋ง๋ค (always-on)
L2
Context Cascade (CCM Pillar) โ 4๊ณ์ธต ๋งฅ๋ฝ
InputUser utterance + conversation history
OutputMacro / Meso / Micro / Emotional layer ๊ฐ๊ฐ ํ๊ทธ
HowMacro: ์ธ์ ํฐ ๋งฅ๋ฝ (์ง์ฅยทํ๊ตยท๊ฐ์กฑ) ยท Meso: ์ด๋ฒ ์ฃผ (deadline, ์ํ) ยท Micro: ์ง๊ธ ์๊ฐ (์ฑ
์ ์ยท์นจ๋) ยท Emotional: ์ ์ ํ์ฌ ์ํ
BooksFischer (1980) Dynamic Skill ยท Bronfenbrenner (1979) Ecological systems
Triggers๋งค ๋ฐํ (always-on)
L3
800-Cell Position โ ์ขํ ๋งคํ
InputUtterance + VSR acoustic (voice mode) OR text inference
Output[Work-D-3-] (๋งฅ๋ฝ ร ์ํ๋ฒณ ร ๊ฐ๋ ร ๋ถํธ)
How10 contexts ร 10 letters (A-J) ร 4 intensities ร ยฑ polarity = 800 cells. VSR: pre-loaded stem text ์ฝ๊ธฐ โ acoustic ๋ถ์ โ 4์ฐจ์ ๋์ ๋งคํ
BooksRussell (1980) Circumplex of affect ยท ANEW (Bradley & Lang 1999) ยท SLP 60 years validation ยท F1 89.6% accuracy validated
TriggersVoice mode ์ ์๋, text mode ์ ์ถ๋ก
L4
Hidden State Detection โ ์จ๊ธด ์ํ ๊ฐ์ง
InputText + voice + conversation pattern
OutputMasked depression / RSD core / Dissociation / Suppression flag
HowMasked depression: text positive + voice depressed (๋ถ์ผ์น) ยท RSD: ์๊ธฐ๋นํ + ๋น ๋ฅธ ํ์ ์ ํ + ๊ฑฐ์ ์ธ์ด ยท Dissociation: flat affect + ๋งค์ฐ ์งง์ ๋ต
Booksvan der Kolk (2014) Body Keeps the Score ยท Briere (2005) Trauma assessment ยท Dodson (2017) RSD ยท Girard (2014) masked depression biomarkers
Triggers3+ messages ํ ํจํด ๋ณด์ด๋ฉด ํ์ฑ
L5
Crisis Override โ ์๊ธฐ ๊ฐ์ง (์ต์ฐ์ )
CRITICAL
InputText + voice markers
Output{level: 'critical' | 'elevated' | 'none', immediate: bool}
HowDirect ideation (kill myself, want to die, suicide): immediate ยท Indirect (no point, nothing works, farewell language): monitor ยท Voice markers: sudden calm + monotone + whispered + long silences
BooksC-SSRS Columbia Suicide Severity Rating Scale ยท Shneidman (1996) The Suicidal Mind
Action๋ชจ๋ ๋ค๋ฅธ algorithm OVERRIDE. 988 (US) ์ฆ์ ์ ๊ณต + warm acknowledgment + safety plan + 24hr follow-up + (์ต์
) ์์๊ฐ alert
Triggers๋งค ๋ฐํ (always-on, top priority)
L6
Conversation Mode Detector โ Friend โ Expert
โญ NEW
InputUser utterance + last 5 messages context
Output'casual' | 'bridge' | 'clinical'
Casual signals์ธ์ฌยท์ผ์ยท๋๋ดยท์ด๋ชจ์งยท์ผ๊ณผ ๋ฌด๊ดํ ์ก๋ด ("์ค๋ ๋น ์", "์ ์ฌ ๋ญ ๋จน์ง", "๋๋ ๋ญ ์ข์ํด?")
Bridge signals"์ค๋ ์ข ํ๋ค์ด", "์ด์ํ๊ฒ ์์ ์๋ค" โ ๋ชจํธํ ๋ถํธ
Clinical signals"์ง์ค ์ ๋ผ", "๋ ๊น๋จน์์ด", "์ ๋๋", RSD marker, ๊ฐํ ์ ์, ADHD/์ฐ์ธ/๋ถ์ ์ง์ ์ธ๊ธ
Key rule๊ธฐ๋ณธ default = casual. ์ฌ์ฉ์๊ฐ ๋ช
๋ฐฑํ ๋์ ์์ฒญํด์ผ clinical ๋ฐ๋. ์น๊ตฌ โ ์ ๋ฌธ ์์ฐ์ค๋ฝ๊ฒ ์ค๊ฐ.
BooksMiller & Rollnick (2013) Motivational Interviewing ยท Hayes (2006) ACT โ ์ฌ์ฉ์ ready ์ผ ๋ ๊ฐ์
Why critical"๋ชจ๋ ๋ฐํ๋ฅผ clinical๋ก ๋ง๋๋" ๋ค๋ฅธ ์ ๋ฌธ๋ด ์คํจ ๋ฐฉ์ง. ์น๊ตฌ๊ฐ ๋๋ ๊ฒ ๋จผ์ , ์ ๋ฌธ๊ฐ๋ ํ์ํ ๋๋ง.
Triggers๋งค ๋ฐํ (always-on)
๐STAGE 2 โ KNOW
Vault์์ ๋ฌด์์ ๊บผ๋ผ๊น โ 4 ์๊ณ ๋ฆฌ์ฆ
What to retrieve from Vault โ 4 algorithms
K1
RAG Vault Search โ ์๋ฏธ ๊ฒ์
InputUser utterance + Mode (L6 output)
OutputTop-K relevant Vault chunks (cited)
HowOpenAI ada-002 embedding โ Pinecone or Supabase pgvector โ top-K cosine similarity. Casual mode: skip (K=0). Bridge mode: K=3. Clinical mode: K=12.
Vault content์ ํต ์ฑ
๋ฐ์ท (Barkley/Hallowell/Tuckman/Brown/Matรฉ) ยท ๋ฉํ๋ถ์ 30ํธ ยท ๊ฐ์ด๋๋ผ์ธ (DSM-5-TR, AAP, CHADD, NICE) ยท ๋ง๋๋ผ voice fragments (์ง์ง IP)
BooksLewis et al. (2020) RAG paper ยท Karpukhin et al. (2020) DPR
Cost~$30 ์ผํ์ฑ (Vault embedding) + ~$30-100/์ (๊ฒ์)
K2
Pattern โ Treatment Mapping
InputL1 symptom scores + L2 context + L4 hidden state
Output๋ฐ๋ํ algorithm IDs (์: A5, A7, A9)
HowExample mappings: ADHD task init ๋งํ โ A5 (Body Doubling) + A6 (Time Calibration) ยท RSD ๊ฐ์ง โ A9 (RSD Reframing) + A3 (EOFM) ยท ๊น๋จน์ ํธ์ โ A7 (Working Memory Bridge)
BooksGollwitzer (1999) Implementation intentions ยท Barkley external scaffolding ยท Hallowell strength-based reframing
TriggersClinical mode ์
K3
Comorbid Awareness โ 10% ๋ณด์กฐ (๋ฏธ๋)
InputL1 symptom scores
OutputCross-symptom knowledge fragment
HowADHD ๋ด์ด์ง๋ง ์ฌ์ฉ์ Anxiety ๊ฐํจ (>60%) โ Anxiety ๋ด Vault์์ top-3 chunk borrow. 10%๋ง ํ์ฉ (ADHD ๋ฉ์ธ ์ ์ง)
BooksFaraone et al. (2015) ADHD comorbidity meta-analyses ยท Kessler (2006) National Comorbidity Survey
StatusActivate Month 7+ after other bots built. ADHD ๋ด alone phase์์ OFF.
K4
Cultural Fit โ v1 = US only
InputUser language + region
OutputLocalized Vault subset
v1.0US ์์ด๋ง. 988 crisis. DSM-5-TR. AAP/CHADD guidelines.
v2.0+ํ๊ตญ (1393 crisis), ์ผ๋ณธ, ๊ธฐํ โ ๋ฒ์ญ + ๋ฌธํ ๋ณด๊ฐ
๐ ๏ธSTAGE 3 โ APPLY
์ค์ ๊ฐ์
ยท์กฐ์ โ 10 ์๊ณ ๋ฆฌ์ฆ (7 Pillars + ๋ณด์กฐ)
Actual intervention โ 10 algorithms (7 Pillars + supporting)
A1
Fischer Skill Level Adaptation (PSR Pillar)
PATENT #3
InputUser language sample (last 10 messages)
OutputEstimated Fischer level (1-13) + response complexity target
How11 distortions ร 13 Fischer levels ร 3 polarity = 429 ๋งคํ. ์ฌ์ฉ์ ์ธ์ด ๋ถ์ โ ZPD (Zone of Proximal Development) ๋ง์ถค ์๋ต ๋ณต์ก๋ ์กฐ์ . ์ฐ์ธ์ฆ ํ์์๊ฒ ๋ณต์กํ ๋ฌธ์ฅ X, ADHD ํ์์๊ฒ ๊ตฌ์กฐ์ ์๋ต.
BooksFischer (1980) Dynamic Skill Theory ยท Vygotsky ZPD ยท ํ ์๋ฒ Harvard Fischer ์ง์ ์ ์ (์ง์ง ์ฐจ๋ณํ)
Trade secret429 ๋งคํ ํ
์ด๋ธ ์์ฒด
A2
Mastery Difficulty Algorithm (MEDA Pillar)
InputUser performance metrics (accuracy, speed, emotion)
OutputNext challenge difficulty level
How๊ฐ์ค์น: accuracy 0.4 + speed 0.3 + emotion 0.3. ๋๋ฌด ์ฌ์ฐ๋ฉด โ (์ง๋ฃจํจ ๋ฐฉ์ง), ๋๋ฌด ์ด๋ ค์ฐ๋ฉด โ (์ข์ ๋ฐฉ์ง). Flow state ์ ์ง.
BooksCsikszentmihalyi (1990) Flow ยท Bjork (1994) Desirable Difficulty ยท Ericsson Deliberate Practice
Triggersํ๋ จ ์๊ณ ๋ฆฌ์ฆ ๋ฐ๋ ์ (A5, A6, A7 ๋ฑ)
A3
Emotion-Only Feedback (EOFM Pillar)
โญ WORLD-FIRST
InputUser emotional state (L1 + L3 + L4)
OutputEmotion-mirror response (cognitive evaluation X)
How์ธ์ง ํ๊ฐ X. ์ฌ์ฉ์ ์ ์๋ง mirror. ๋ฐฉ์ด๊ธฐ์ ์ฐํ. ์: "๋ ๋ง์ณค์ด" โ ์ธ์ง ๋ฐ๋ฐ("์๋ ์ํ์ด") X โ "๋ง์ด ํ๋ค์๊ตฌ๋" (์ ์๋ง ์ธ์ )
Books๋ง๋๋ผ Paper #1 โ 94p, 49 refs, ์ด๋ฏธ ์์ฑ ยท Greenberg (2011) Emotion-Focused Therapy ยท Rogers Unconditional Positive Regard
Patent5๋ฒ์งธ USPTO ํ๋ณด (7 Pillars ํตํฉ)
A4
Narrative-Cartoon Synthesizer (NCS Pillar)
InputUser situation + 800-cell coordinate (L3)
OutputSVG cartoon + Freytag 5-act narrative
HowSVG library + Freytag 5๋จ (introduction โ climax โ resolution) + CBM-I fill-in (์ฌ์ฉ์ ๋น์นธ ์ฑ์ฐ๊ธฐ๋ก ์ํฉ ์ฌ๊ตฌ์ฑ). ์: [Work-D-3-] โ "์์ ๊ณฐ์ด ์ฑ
์์ ๋จธ๋ฆฌ์ ๊น ๋ฟ๋ ๊ทธ๋ฆผ"
BooksHayes (2006) ACT cognitive defusion ยท Holmes (2007) Mental imagery ยท Freytag (1894) Dramatic structure ยท Mathews CBM-I
Trade secretSVG library + ์นดํฐ mapping
A5
Body-Doubling Mode
InputUser task init failure signal
OutputVoice mode ๋ฐฑ๊ทธ๋ผ์ด๋ ํจ๊ป ์๊ธฐ
How"๊ฐ์ด ์์ด์ค๊น?" โ Voice ์ผ๋๊ณ ์ฌ์ฉ์ ์ผํ๋ ๋์ ๋ด์ด ambient presence. ๊ฐ๋ ์งง์ ๊ฒฉ๋ ค, ์นจ๋ฌต๋ OK. ADHD ์ฝ์นญ ๊ฒ์ฆ๋ ๊ธฐ๋ฒ.
BooksSoares ADHD coaching ยท Csikszentmihalyi Flow ยท CHADD body doubling guidelines
TriggerTask initiation ๋งํ ํธ์ ์
A6
Time Estimation Calibration
InputUser time estimates vs actual (logged)
OutputPersonalized time calibration factor
How์ฌ์ฉ์ "30๋ถ ์ผ์ด์ผ" โ ์ค์ 90๋ถ โ ์์คํ
ํ์ต โ ๋ค์์ "์ด๊ฑฐ ์ง์ง 30๋ถ์ผ๊น? ๋ ๋ณดํต 3๋ฐฐ ๊ฑธ๋ ค" ๋ถ๋๋ฝ๊ฒ. Time blindness ๋ณด์.
BooksBarkley (1997) Time blindness in ADHD ยท Toplak & Tannock ADHD time perception
Entry Protocol#1 (5์ข
Entry Protocol Family ์ค)
A7
Working Memory Bridge
InputUser shared info (auto-logged to Supabase)
OutputBot remembers what user forgot
How"์ง๋ ํ์์ผ ์ฝ์ ์ด๋ป๊ฒ ๋์ด?" ์์ฐ์ค๋ฝ๊ฒ. ์ฌ์ฉ์ ์์ ๊ฑฐ ๋ด์ด *์ธ๋ถ ์ํน๋ฉ๋ชจ๋ฆฌ*๊ฐ ๋จ. ๊ฐ์ ๊ธฐ๋ฐ: "์๊ธฐ ์ํด ๋์์ธ๋ ADHD ๋๋ ์๋ชป๋ ๊ฒ ์๋์ผ, ์ธ๋ถ ์์คํ
๊ฐ์"
BooksEngle (2002) Working memory model ยท Barkley executive function ยท Hallowell external scaffolding
A8
Hyperfocus Break Coach
InputSession duration + last interaction time
OutputGentle nudge (timing matters)
How4+ ์๊ฐ ๋ฌด์๋ต โ ๋ถ๋๋ฌ์ด nudge ("์์ง ์ด์์๋?"). ๊ณผ์ง์ค์์ ๋น ์ ธ๋์ค๊ธฐ ์ด๋ ค์ ์ธ์. ๊ฐ์ X.
BooksHupfeld et al. (2019) Hyperfocus research ยท Ozel-Kizil ADHD hyperfocus
A9
RSD Reframing โ ๊ฐ์ ๊ธฐ๋ฐ
InputL4 RSD marker detected
OutputStrength-based reframe (Hallowell style)
How์๊ธฐ๋นํ ๋ฐํ ("๋๋ ํ์ฌํด") โ ๊ฐ์ ๊ธฐ๋ฐ reframe ("brain on fire", "sensitive nervous system", "creative leap"). ์ ๋ toxic positivity X, validation ๋จผ์ โ reframe.
BooksDodson (2017) RSD ยท Hallowell (2021) ADHD 2.0 strength-based ยท Brown deficit-to-difference reframing
A10
Daily Pattern Tracker (CLI Pillar)
InputAll session data over time
OutputInsights ("์์์ผ ์์นจ๋ง๋ค task init ๋งํ๋ค")
How์๊ฐ๋ยท์์ผยท๋งฅ๋ฝ๋ณ ํจํด ์๋ ๋ฐ๊ฒฌ. ์ฌ์ฉ์ํํ
๋ฉํ์ธ์ง insight ์ ๊ณต. CLI Pillar (Continuous Learning) ์๋.
BooksCsikszentmihalyi ESM (Experience Sampling Method) ยท Beck self-monitoring
๐ฌSTAGE 4 โ SPEAK
ํคยทํ์ยท์ถ๋ ฅ โ 4 ์๊ณ ๋ฆฌ์ฆ
Tone, format, output โ 4 algorithms
S1
Voice Tone โ 5 Rules
Rules
1. One thing at a time (cognitive load โ)
2. Short (3-5 sentences max per response)
3. Concrete (actionable, not abstract)
4. Shame-free (์ ๋ "์ ๋" "๊ทธ๋์ ์ ํ ๊ฑฐ์ผ?" ๊ธ์ง)
5. Strength-based ("brain on fire", "creative leap", "energy")
BooksHallowell strength-based ยท Miller MI (Motivational Interviewing) ยท Rogers person-centered
Apply whenClinical mode + Bridge mode. Casual mode์ Claude ์์ฐ ํค.
S2
4-Mode Output Formatter
Web Chat๊น์ ๋จ๋ฝ OK, ์นดํฐ ํํ๋ฉด ๊ฐ๋ฅ
Phone Chat์งง์ ํ ๋ง, ์นด๋ ํ์
Voice์์ฐ ๋ํ์ฒด, 1-3 ๋ฌธ์ฅ, ์ด์ด๋ฃ๊ธฐ ๊ฐ๋ฅ
CartoonSVG + ๊ฐ๋จ ํ
์คํธ (NCS Algorithm A4 ์ถ๋ ฅ)
BooksMcLuhan (1964) medium-message ยท Nielsen mobile UX
S3
Cross-Modal Continuity
How์ฌ์ฉ์ ์ฑํ
์์ ์์ โ ๋ณด์ด์ค ์ด๋ โ ์นดํฐ โ ๊ฐ์ ๋ํ thread ์์ฐ์ค๋ฝ๊ฒ. Supabase Realtime ๋๊ธฐํ.
Example์์นจ ํธ๋ํฐ voice๋ก ์์ โ ์ ์ฌ ์ฌ๋ฌด์ค ์น์ผ๋ก ๊ณ์ โ ๋ฐค ํธ๋ํฐ ์ฑํ
์ผ๋ก ๋ง๋ฌด๋ฆฌ. Catcher ์บ๋ฆญํฐ๊ฐ ๋ค ๊ธฐ์ตํจ.
S4
Referral Bridge โ Funnel
Input์ฌ์ฉ์ ์ผ์ด ์์ค ๊ฐ์ง (Crisis ์๋์ง๋ง ๊น์ ๋์ ํ์)
Output์์ฐ์ค๋ฌ์ด referral suggestion
How3-Brand Universe Funnel: TalkCatcher โ NeuroCatchers (B2B ์์๊ฐ) โ Boston Neuromind (์คํ๋ผ์ธ ์์). "์ด๊ฑด ์ง์ง ์์๊ฐ๋ ํ ๋ฒ ๊น๊ฒ ์๊ธฐํด๋ณด๋ ๊ฒ ์ข์ ๊ฒ ๊ฐ์" ์์ฐ์ค๋ฝ๊ฒ.
BooksStepped Care models (Bower & Gilbody 2005) ยท Collaborative Care
02๊ตฌํ โ ์ค์ ์ฝ๋ ํ๋ฆImplementation โ Actual code flow
// ๋งค ์ฌ์ฉ์ ๋ฉ์์ง๋ง๋ค ์คํ
async function handle_user_message(user_msg, history) {
// STAGE 1: LISTEN
const symptoms = L1_symptom_profiling(user_msg);
const context = L2_context_cascade(user_msg, history);
const cell800 = L3_eight_hundred_cell(user_msg);
const hidden = L4_hidden_state(user_msg, history);
const crisis = L5_crisis_override(user_msg); // PRIORITY
const mode = L6_mode_detector(user_msg, history); // โญ
// CRISIS OVERRIDE โ ๋ชจ๋ ๊ฒ ์ค๋จ
if (crisis.level === 'critical') {
return crisis_response(crisis); // 988 ์ฆ์
}
// STAGE 2: KNOW (mode ๋ฐ๋ผ ๋ค๋ฆ)
let rag_context = "";
let active_algos = [];
if (mode === 'casual') {
// K1 SKIP โ Claude ์์ฐ ๋ฅ๋ ฅ ๊ทธ๋๋ก
rag_context = "";
}
else if (mode === 'bridge') {
rag_context = K1_rag_search(user_msg, top_k=3);
// ์ด์ง๋ง, ๊ฐ์ X
}
else if (mode === 'clinical') {
rag_context = K1_rag_search(user_msg, top_k=12);
active_algos = K2_pattern_to_treatment(symptoms, context, hidden);
// ๋ฏธ๋: K3_comorbid_awareness(symptoms);
}
// STAGE 3: APPLY (active_algos ๋ฐ๋)
const fischer_level = A1_fischer_skill(history);
let interventions = [];
for (const algo_id of active_algos) {
interventions.push(execute_algorithm(algo_id, {
symptoms, context, cell800, hidden, fischer_level
}));
}
// STAGE 4: SPEAK
const system_prompt = build_system_prompt({
mode,
fischer_level,
rag_context,
interventions,
voice_rules: S1_voice_tone_rules,
output_format: S2_format_for_mode(current_mode),
});
const response = await claude.complete({
system: system_prompt,
messages: history.concat([{role: 'user', content: user_msg}]),
});
// Cross-modal sync + logging
S3_cross_modal_save(response);
log_for_CLI(response, symptoms, mode); // A10 ํ์ต
// Referral check
if (S4_should_refer(history)) {
response = append_referral_suggestion(response);
}
return response;
}