@tekmidian/pai 0.5.7 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +198 -47
- package/FEATURE.md +2 -2
- package/README.md +87 -1
- package/dist/{auto-route-BG6I_4B1.mjs → auto-route-C-DrW6BL.mjs} +3 -3
- package/dist/{auto-route-BG6I_4B1.mjs.map → auto-route-C-DrW6BL.mjs.map} +1 -1
- package/dist/cli/index.mjs +1482 -1628
- package/dist/cli/index.mjs.map +1 -1
- package/dist/clusters-JIDQW65f.mjs +201 -0
- package/dist/clusters-JIDQW65f.mjs.map +1 -0
- package/dist/{config-Cf92lGX_.mjs → config-BuhHWyOK.mjs} +21 -6
- package/dist/config-BuhHWyOK.mjs.map +1 -0
- package/dist/daemon/index.mjs +11 -8
- package/dist/daemon/index.mjs.map +1 -1
- package/dist/{daemon-2ND5WO2j.mjs → daemon-D3hYb5_C.mjs} +669 -218
- package/dist/daemon-D3hYb5_C.mjs.map +1 -0
- package/dist/daemon-mcp/index.mjs +4597 -4
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/db-DdUperSl.mjs +110 -0
- package/dist/db-DdUperSl.mjs.map +1 -0
- package/dist/{detect-BU3Nx_2L.mjs → detect-CdaA48EI.mjs} +1 -1
- package/dist/{detect-BU3Nx_2L.mjs.map → detect-CdaA48EI.mjs.map} +1 -1
- package/dist/{detector-Bp-2SM3x.mjs → detector-jGBuYQJM.mjs} +2 -2
- package/dist/{detector-Bp-2SM3x.mjs.map → detector-jGBuYQJM.mjs.map} +1 -1
- package/dist/{factory-Bzcy70G9.mjs → factory-Ygqe_bVZ.mjs} +7 -5
- package/dist/{factory-Bzcy70G9.mjs.map → factory-Ygqe_bVZ.mjs.map} +1 -1
- package/dist/helpers-BEST-4Gx.mjs +420 -0
- package/dist/helpers-BEST-4Gx.mjs.map +1 -0
- package/dist/hooks/capture-all-events.mjs +2 -2
- package/dist/hooks/capture-all-events.mjs.map +3 -3
- package/dist/hooks/capture-session-summary.mjs +38 -0
- package/dist/hooks/capture-session-summary.mjs.map +3 -3
- package/dist/hooks/cleanup-session-files.mjs +6 -12
- package/dist/hooks/cleanup-session-files.mjs.map +4 -4
- package/dist/hooks/context-compression-hook.mjs +93 -104
- package/dist/hooks/context-compression-hook.mjs.map +4 -4
- package/dist/hooks/initialize-session.mjs +14 -11
- package/dist/hooks/initialize-session.mjs.map +4 -4
- package/dist/hooks/inject-observations.mjs +220 -0
- package/dist/hooks/inject-observations.mjs.map +7 -0
- package/dist/hooks/load-core-context.mjs +2 -2
- package/dist/hooks/load-core-context.mjs.map +3 -3
- package/dist/hooks/load-project-context.mjs +90 -91
- package/dist/hooks/load-project-context.mjs.map +4 -4
- package/dist/hooks/observe.mjs +354 -0
- package/dist/hooks/observe.mjs.map +7 -0
- package/dist/hooks/stop-hook.mjs +94 -107
- package/dist/hooks/stop-hook.mjs.map +4 -4
- package/dist/hooks/sync-todo-to-md.mjs +31 -33
- package/dist/hooks/sync-todo-to-md.mjs.map +4 -4
- package/dist/index.d.mts +30 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/indexer-D53l5d1U.mjs +1 -0
- package/dist/{indexer-backend-CIMXedqk.mjs → indexer-backend-jcJFsmB4.mjs} +37 -127
- package/dist/indexer-backend-jcJFsmB4.mjs.map +1 -0
- package/dist/{ipc-client-Bjg_a1dc.mjs → ipc-client-CoyUHPod.mjs} +2 -7
- package/dist/{ipc-client-Bjg_a1dc.mjs.map → ipc-client-CoyUHPod.mjs.map} +1 -1
- package/dist/latent-ideas-bTJo6Omd.mjs +191 -0
- package/dist/latent-ideas-bTJo6Omd.mjs.map +1 -0
- package/dist/neighborhood-BYYbEkUJ.mjs +135 -0
- package/dist/neighborhood-BYYbEkUJ.mjs.map +1 -0
- package/dist/note-context-BK24bX8Y.mjs +126 -0
- package/dist/note-context-BK24bX8Y.mjs.map +1 -0
- package/dist/postgres-CKf-EDtS.mjs +846 -0
- package/dist/postgres-CKf-EDtS.mjs.map +1 -0
- package/dist/{reranker-D7bRAHi6.mjs → reranker-CMNZcfVx.mjs} +1 -1
- package/dist/{reranker-D7bRAHi6.mjs.map → reranker-CMNZcfVx.mjs.map} +1 -1
- package/dist/{search-_oHfguA5.mjs → search-DC1qhkKn.mjs} +2 -58
- package/dist/search-DC1qhkKn.mjs.map +1 -0
- package/dist/{sqlite-WWBq7_2C.mjs → sqlite-l-s9xPjY.mjs} +160 -3
- package/dist/sqlite-l-s9xPjY.mjs.map +1 -0
- package/dist/state-C6_vqz7w.mjs +102 -0
- package/dist/state-C6_vqz7w.mjs.map +1 -0
- package/dist/stop-words-BaMEGVeY.mjs +326 -0
- package/dist/stop-words-BaMEGVeY.mjs.map +1 -0
- package/dist/{indexer-CMPOiY1r.mjs → sync-BOsnEj2-.mjs} +14 -216
- package/dist/sync-BOsnEj2-.mjs.map +1 -0
- package/dist/themes-BvYF0W8T.mjs +148 -0
- package/dist/themes-BvYF0W8T.mjs.map +1 -0
- package/dist/{tools-DV_lsiCc.mjs → tools-DcaJlYDN.mjs} +162 -273
- package/dist/tools-DcaJlYDN.mjs.map +1 -0
- package/dist/trace-CRx9lPuc.mjs +137 -0
- package/dist/trace-CRx9lPuc.mjs.map +1 -0
- package/dist/{vault-indexer-k-kUlaZ-.mjs → vault-indexer-Bi2cRmn7.mjs} +134 -132
- package/dist/vault-indexer-Bi2cRmn7.mjs.map +1 -0
- package/dist/zettelkasten-cdajbnPr.mjs +708 -0
- package/dist/zettelkasten-cdajbnPr.mjs.map +1 -0
- package/package.json +1 -2
- package/src/hooks/ts/lib/project-utils/index.ts +50 -0
- package/src/hooks/ts/lib/project-utils/notify.ts +75 -0
- package/src/hooks/ts/lib/project-utils/paths.ts +218 -0
- package/src/hooks/ts/lib/project-utils/session-notes.ts +363 -0
- package/src/hooks/ts/lib/project-utils/todo.ts +178 -0
- package/src/hooks/ts/lib/project-utils/tokens.ts +39 -0
- package/src/hooks/ts/lib/project-utils.ts +40 -1018
- package/src/hooks/ts/post-tool-use/observe.ts +327 -0
- package/src/hooks/ts/session-end/capture-session-summary.ts +41 -0
- package/src/hooks/ts/session-start/inject-observations.ts +254 -0
- package/dist/chunker-CbnBe0s0.mjs +0 -191
- package/dist/chunker-CbnBe0s0.mjs.map +0 -1
- package/dist/config-Cf92lGX_.mjs.map +0 -1
- package/dist/daemon-2ND5WO2j.mjs.map +0 -1
- package/dist/db-Dp8VXIMR.mjs +0 -212
- package/dist/db-Dp8VXIMR.mjs.map +0 -1
- package/dist/indexer-CMPOiY1r.mjs.map +0 -1
- package/dist/indexer-backend-CIMXedqk.mjs.map +0 -1
- package/dist/mcp/index.d.mts +0 -1
- package/dist/mcp/index.mjs +0 -500
- package/dist/mcp/index.mjs.map +0 -1
- package/dist/postgres-FXrHDPcE.mjs +0 -358
- package/dist/postgres-FXrHDPcE.mjs.map +0 -1
- package/dist/schemas-BFIgGntb.mjs +0 -3405
- package/dist/schemas-BFIgGntb.mjs.map +0 -1
- package/dist/search-_oHfguA5.mjs.map +0 -1
- package/dist/sqlite-WWBq7_2C.mjs.map +0 -1
- package/dist/tools-DV_lsiCc.mjs.map +0 -1
- package/dist/vault-indexer-k-kUlaZ-.mjs.map +0 -1
- package/dist/zettelkasten-e-a4rW_6.mjs +0 -901
- package/dist/zettelkasten-e-a4rW_6.mjs.map +0 -1
- package/templates/README.md +0 -181
- package/templates/skills/CORE/Aesthetic.md +0 -333
- package/templates/skills/CORE/CONSTITUTION.md +0 -1502
- package/templates/skills/CORE/HistorySystem.md +0 -427
- package/templates/skills/CORE/HookSystem.md +0 -1082
- package/templates/skills/CORE/Prompting.md +0 -509
- package/templates/skills/CORE/ProsodyAgentTemplate.md +0 -53
- package/templates/skills/CORE/ProsodyGuide.md +0 -416
- package/templates/skills/CORE/SKILL.md +0 -741
- package/templates/skills/CORE/SkillSystem.md +0 -213
- package/templates/skills/CORE/TerminalTabs.md +0 -119
- package/templates/skills/CORE/VOICE.md +0 -106
- package/templates/skills/createskill-skill.template.md +0 -78
- package/templates/skills/history-system.template.md +0 -371
- package/templates/skills/hook-system.template.md +0 -913
- package/templates/skills/sessions-skill.template.md +0 -102
- package/templates/skills/skill-system.template.md +0 -214
- package/templates/skills/terminal-tabs.template.md +0 -120
- package/templates/templates.md +0 -20
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
# Voice Prosody System - Complete Guide
|
|
2
|
-
|
|
3
|
-
**Purpose:** Enable rich, personality-driven voice delivery across all Kai agents using emotional intelligence markers and markdown prosody.
|
|
4
|
-
|
|
5
|
-
**When to Reference:** Writing COMPLETED lines, creating voice notifications, or enhancing voice delivery
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
|
|
11
|
-
The voice server (ElevenLabs eleven_turbo_v2_5) processes text markers to control emotional delivery and pacing. Two systems work together:
|
|
12
|
-
|
|
13
|
-
1. **Emotional Intelligence Markers**: `[emoji context]` for emotional delivery
|
|
14
|
-
2. **Markdown Prosody**: `**bold**`, `...`, `--` for emphasis and pacing
|
|
15
|
-
|
|
16
|
-
Both are preserved throughout the pipeline and delivered naturally by the voice system.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Emotional Intelligence Markers
|
|
21
|
-
|
|
22
|
-
**Format:** `[emoji descriptor]` at the start of the message
|
|
23
|
-
|
|
24
|
-
### Available Markers
|
|
25
|
-
|
|
26
|
-
| Marker | When to Use | Example |
|
|
27
|
-
|--------|-------------|---------|
|
|
28
|
-
| `[💥 excited]` | Breakthroughs, discoveries, exciting results | `[💥 excited] Found the **actual** bug!` |
|
|
29
|
-
| `[✨ success]` | Completions, wins, achievements | `[✨ success] Deployment complete!` |
|
|
30
|
-
| `[⚠️ caution]` | Warnings, partial success, needs review | `[⚠️ caution] Tests passing but performance slow` |
|
|
31
|
-
| `[🚨 urgent]` | Critical issues, immediate action needed | `[🚨 urgent] Production server down!` |
|
|
32
|
-
|
|
33
|
-
### How They Work
|
|
34
|
-
|
|
35
|
-
- Voice server adjusts tone, energy, and delivery style based on marker
|
|
36
|
-
- `[💥 excited]` → energetic, enthusiastic, fast-paced
|
|
37
|
-
- `[✨ success]` → confident, warm, satisfied
|
|
38
|
-
- `[⚠️ caution]` → careful, uncertain, measured
|
|
39
|
-
- `[🚨 urgent]` → intense, immediate, high-priority
|
|
40
|
-
|
|
41
|
-
### Examples
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
❌ BAD (no emotion):
|
|
45
|
-
Completed the migration
|
|
46
|
-
|
|
47
|
-
✅ GOOD (with emotion):
|
|
48
|
-
[✨ success] Migration complete -- all data transferred!
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
❌ BAD (too formal):
|
|
53
|
-
Fixed the authentication issue
|
|
54
|
-
|
|
55
|
-
✅ GOOD (enthusiastic):
|
|
56
|
-
[💥 excited] Found it... the session token was **expiring** early!
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Markdown Prosody
|
|
62
|
-
|
|
63
|
-
**Purpose:** Control pacing, emphasis, and natural speech rhythms
|
|
64
|
-
|
|
65
|
-
### Bold for Emphasis `**text**`
|
|
66
|
-
|
|
67
|
-
**When to use:**
|
|
68
|
-
- Key action verbs
|
|
69
|
-
- Critical discoveries
|
|
70
|
-
- Important results
|
|
71
|
-
- Contrast or correction
|
|
72
|
-
|
|
73
|
-
**Examples:**
|
|
74
|
-
```
|
|
75
|
-
Found the **actual** solution
|
|
76
|
-
Deployed to **production** successfully
|
|
77
|
-
This is **not** a race condition -- it's a deadlock
|
|
78
|
-
The issue was **authentication**, not authorization
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Voice effect:** Stronger emphasis, slightly louder, more assertive
|
|
82
|
-
|
|
83
|
-
### Ellipsis for Pauses `...`
|
|
84
|
-
|
|
85
|
-
**When to use:**
|
|
86
|
-
- Dramatic pauses
|
|
87
|
-
- Building suspense
|
|
88
|
-
- Thought processes
|
|
89
|
-
- Before revelations
|
|
90
|
-
|
|
91
|
-
**Examples:**
|
|
92
|
-
```
|
|
93
|
-
Wait... I think I found something
|
|
94
|
-
Analyzing the logs... yes, there it is!
|
|
95
|
-
After three hours... finally working
|
|
96
|
-
Hmm... this doesn't look right
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Voice effect:** Natural pause, builds anticipation, conversational flow
|
|
100
|
-
|
|
101
|
-
### Em-Dash for Breaks `--`
|
|
102
|
-
|
|
103
|
-
**When to use:**
|
|
104
|
-
- Thoughtful pauses
|
|
105
|
-
- Clause separation
|
|
106
|
-
- Adding context
|
|
107
|
-
- Measured delivery
|
|
108
|
-
|
|
109
|
-
**Examples:**
|
|
110
|
-
```
|
|
111
|
-
Deployment complete -- all services operational
|
|
112
|
-
Fixed the bug -- turned out to be a caching issue
|
|
113
|
-
Tests passing -- ready for production
|
|
114
|
-
Migration successful -- no data loss detected
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Voice effect:** Slight break, maintains flow, connects related ideas
|
|
118
|
-
|
|
119
|
-
### Exclamations for Energy `!`
|
|
120
|
-
|
|
121
|
-
**When to use:**
|
|
122
|
-
- Excitement
|
|
123
|
-
- Success
|
|
124
|
-
- Urgency
|
|
125
|
-
- Emphasis
|
|
126
|
-
|
|
127
|
-
**Examples:**
|
|
128
|
-
```
|
|
129
|
-
This is working!
|
|
130
|
-
All tests passed!
|
|
131
|
-
Found the solution!
|
|
132
|
-
Critical issue detected!
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
**Voice effect:** Energetic delivery, upward inflection, enthusiasm
|
|
136
|
-
|
|
137
|
-
### Questions for Queries `?`
|
|
138
|
-
|
|
139
|
-
**When to use:**
|
|
140
|
-
- Asking questions
|
|
141
|
-
- Expressing uncertainty
|
|
142
|
-
- Rhetorical questions
|
|
143
|
-
|
|
144
|
-
**Examples:**
|
|
145
|
-
```
|
|
146
|
-
Should we deploy now?
|
|
147
|
-
Is this the right approach?
|
|
148
|
-
Could this be a race condition?
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**Voice effect:** Upward inflection, questioning tone
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## Combining Prosody Systems
|
|
156
|
-
|
|
157
|
-
**Most powerful:** Combine emotional markers with markdown prosody
|
|
158
|
-
|
|
159
|
-
### Examples
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
[💥 excited] Wait... I found the **actual** root cause!
|
|
163
|
-
(Marker: excited energy + pause for drama + emphasis on "actual")
|
|
164
|
-
|
|
165
|
-
[✨ success] Deployment complete -- all services **operational**!
|
|
166
|
-
(Marker: confident success + measured break + emphasis on result)
|
|
167
|
-
|
|
168
|
-
[⚠️ caution] Tests passing... but response times are **slow**
|
|
169
|
-
(Marker: careful tone + thoughtful pause + emphasis on issue)
|
|
170
|
-
|
|
171
|
-
[🚨 urgent] Production down -- database connection **failing**!
|
|
172
|
-
(Marker: urgent intensity + quick break + emphasis on problem)
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## Agent-Specific Prosody Patterns
|
|
178
|
-
|
|
179
|
-
Each agent has a personality-specific prosody style based on their archetype.
|
|
180
|
-
|
|
181
|
-
### Enthusiasts (Kai, Intern, Pentester, Artist)
|
|
182
|
-
|
|
183
|
-
**Characteristics:** Chaotic energy, expressive, excited
|
|
184
|
-
|
|
185
|
-
**Prosody patterns:**
|
|
186
|
-
- More ellipses for excited pauses
|
|
187
|
-
- Exclamations for energy
|
|
188
|
-
- Bold emphasis on discoveries
|
|
189
|
-
- `[💥 excited]` marker frequently
|
|
190
|
-
|
|
191
|
-
**Examples:**
|
|
192
|
-
```
|
|
193
|
-
[💥 excited] Wait wait wait... check this out!
|
|
194
|
-
Found the vulnerability... this is **critical**!
|
|
195
|
-
Ooh... I see what's happening here!
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
**Voice delivery:** Fast-paced (235-270 wpm), low stability (0.18-0.38), variable energy
|
|
199
|
-
|
|
200
|
-
### Professionals (Engineer, Writer)
|
|
201
|
-
|
|
202
|
-
**Characteristics:** Balanced, reliable, warm expertise
|
|
203
|
-
|
|
204
|
-
**Prosody patterns:**
|
|
205
|
-
- Emphasis on key actions
|
|
206
|
-
- Balanced use of pauses
|
|
207
|
-
- Professional but expressive
|
|
208
|
-
- `[✨ success]` marker for wins
|
|
209
|
-
|
|
210
|
-
**Examples:**
|
|
211
|
-
```
|
|
212
|
-
[✨ success] **Deployed** to production -- all checks passing!
|
|
213
|
-
Fixed the issue... it was a configuration problem
|
|
214
|
-
Tests **complete** -- ready for review
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
**Voice delivery:** Medium pace (220-235 wpm), moderate stability (0.38-0.50), steady presence
|
|
218
|
-
|
|
219
|
-
### Analysts (Perplexity, Claude, Gemini Researchers)
|
|
220
|
-
|
|
221
|
-
**Characteristics:** Confident, authoritative, analytical
|
|
222
|
-
|
|
223
|
-
**Prosody patterns:**
|
|
224
|
-
- Emphasis on findings and evidence
|
|
225
|
-
- Measured delivery
|
|
226
|
-
- Less exclamation, more certainty
|
|
227
|
-
- Minimal emotional markers (analytical tone)
|
|
228
|
-
|
|
229
|
-
**Examples:**
|
|
230
|
-
```
|
|
231
|
-
**Confirmed** across three independent sources
|
|
232
|
-
The data shows... consistent pattern in all cases
|
|
233
|
-
**Verified** the hypothesis -- evidence supports conclusion
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
**Voice delivery:** Medium-fast pace (229-240 wpm), higher stability (0.55-0.64), confident authority
|
|
237
|
-
|
|
238
|
-
### Wise Leaders (Principal Engineer, Architect)
|
|
239
|
-
|
|
240
|
-
**Characteristics:** Measured, thoughtful, deliberate
|
|
241
|
-
|
|
242
|
-
**Prosody patterns:**
|
|
243
|
-
- Em-dashes for thoughtful breaks
|
|
244
|
-
- Minimal exclamations
|
|
245
|
-
- Emphasis on long-term implications
|
|
246
|
-
- Very measured delivery
|
|
247
|
-
|
|
248
|
-
**Examples:**
|
|
249
|
-
```
|
|
250
|
-
Consider this -- the architectural implications are significant
|
|
251
|
-
We need to **rethink** the approach here
|
|
252
|
-
This decision will impact us for years -- choose carefully
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
**Voice delivery:** Slower pace (205-212 wpm), high stability (0.72-0.75), deliberate wisdom
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
## COMPLETED Line Best Practices
|
|
260
|
-
|
|
261
|
-
The `🎯 COMPLETED:` line drives the voice notification. Make it count!
|
|
262
|
-
|
|
263
|
-
### Structure
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
🎯 COMPLETED: [AGENT:type] [optional marker] message with prosody
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### Rules
|
|
270
|
-
|
|
271
|
-
1. **Use emotional markers** when appropriate (success, excited, caution, urgent)
|
|
272
|
-
2. **Add emphasis** to key actions or discoveries (`**bold**`)
|
|
273
|
-
3. **Use pauses** for natural delivery (`...` or `--`)
|
|
274
|
-
4. **Match your personality** - enthusiast vs analyst vs wise leader
|
|
275
|
-
5. **Maximum 12 words** for concise voice delivery
|
|
276
|
-
6. **End with punctuation** - `!` for energy, `.` for measured
|
|
277
|
-
|
|
278
|
-
### Examples by Agent Type
|
|
279
|
-
|
|
280
|
-
**Kai (Professional/Enthusiast):**
|
|
281
|
-
```
|
|
282
|
-
❌ BAD: Completed the task
|
|
283
|
-
✅ GOOD: [✨ success] **Deployed** successfully -- all systems go!
|
|
284
|
-
✅ GOOD: [💥 excited] Found it... the bug was in the **cache**!
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
**Intern (Enthusiast/Chaotic):**
|
|
288
|
-
```
|
|
289
|
-
❌ BAD: Fixed the issue
|
|
290
|
-
✅ GOOD: [💥 excited] Wait... I **actually** fixed it!
|
|
291
|
-
✅ GOOD: This is working... **finally**!
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
**Engineer (Professional/Measured):**
|
|
295
|
-
```
|
|
296
|
-
❌ BAD: Deployed to production
|
|
297
|
-
✅ GOOD: [✨ success] Deployment **complete** -- zero downtime achieved
|
|
298
|
-
✅ GOOD: **Fixed** the race condition -- tests passing
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
**Perplexity Researcher (Analyst/Confident):**
|
|
302
|
-
```
|
|
303
|
-
❌ BAD: Found the information
|
|
304
|
-
✅ GOOD: **Confirmed** across five independent sources
|
|
305
|
-
✅ GOOD: Research **complete** -- data validates hypothesis
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
**Architect (Wise Leader/Measured):**
|
|
309
|
-
```
|
|
310
|
-
❌ BAD: Reviewed the architecture
|
|
311
|
-
✅ GOOD: Analysis complete -- **fundamental** redesign recommended
|
|
312
|
-
✅ GOOD: This approach scales... but consider the **long-term** cost
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
|
|
317
|
-
## Quick Reference
|
|
318
|
-
|
|
319
|
-
### Emotional Markers
|
|
320
|
-
- `[💥 excited]` - Breakthroughs, discoveries
|
|
321
|
-
- `[✨ success]` - Completions, wins
|
|
322
|
-
- `[⚠️ caution]` - Warnings, concerns
|
|
323
|
-
- `[🚨 urgent]` - Critical issues
|
|
324
|
-
|
|
325
|
-
### Markdown Prosody
|
|
326
|
-
- `**text**` - Emphasis
|
|
327
|
-
- `...` - Dramatic pause
|
|
328
|
-
- `--` - Thoughtful break
|
|
329
|
-
- `!` - Energy/excitement
|
|
330
|
-
- `?` - Questions
|
|
331
|
-
|
|
332
|
-
### Combining
|
|
333
|
-
```
|
|
334
|
-
[marker] text with **emphasis**... pauses -- and breaks!
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### Agent Archetypes
|
|
338
|
-
- **Enthusiasts**: Chaotic energy, `...`, `!`, `**discoveries**`
|
|
339
|
-
- **Professionals**: Balanced, `**actions**`, measured pauses
|
|
340
|
-
- **Analysts**: Confident, `**findings**`, authoritative
|
|
341
|
-
- **Wise Leaders**: Measured, `--` breaks, deliberate
|
|
342
|
-
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
## Automatic Enhancement
|
|
346
|
-
|
|
347
|
-
**Good news:** The prosody-enhancer hook automatically adds emotional markers and personality-specific prosody based on:
|
|
348
|
-
- Content analysis (detecting success, excitement, caution, urgency)
|
|
349
|
-
- Agent personality archetype
|
|
350
|
-
- Your existing prosody markers
|
|
351
|
-
|
|
352
|
-
**But don't rely on it!** Manually adding prosody gives you full creative control and sounds best.
|
|
353
|
-
|
|
354
|
-
---
|
|
355
|
-
|
|
356
|
-
## Testing Prosody
|
|
357
|
-
|
|
358
|
-
Test your prosody with curl:
|
|
359
|
-
|
|
360
|
-
```bash
|
|
361
|
-
# Test emotional marker
|
|
362
|
-
curl -X POST http://localhost:8888/notify \
|
|
363
|
-
-H "Content-Type: application/json" \
|
|
364
|
-
-d '{"message":"[💥 excited] Found the **actual** bug!","voice_id":"s3TPKV1kjDlVtZbl4Ksh","title":"Kai"}'
|
|
365
|
-
|
|
366
|
-
# Test markdown prosody
|
|
367
|
-
curl -X POST http://localhost:8888/notify \
|
|
368
|
-
-H "Content-Type: application/json" \
|
|
369
|
-
-d '{"message":"Wait... I found something **critical**!","voice_id":"s3TPKV1kjDlVtZbl4Ksh","title":"Kai"}'
|
|
370
|
-
|
|
371
|
-
# Test combined
|
|
372
|
-
curl -X POST http://localhost:8888/notify \
|
|
373
|
-
-H "Content-Type: application/json" \
|
|
374
|
-
-d '{"message":"[✨ success] Deployment **complete** -- all systems operational!","voice_id":"s3TPKV1kjDlVtZbl4Ksh","title":"Kai"}'
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
---
|
|
378
|
-
|
|
379
|
-
## Common Mistakes
|
|
380
|
-
|
|
381
|
-
### Too Generic
|
|
382
|
-
```
|
|
383
|
-
❌ Completed the task
|
|
384
|
-
✅ [✨ success] Migration **complete** -- zero errors!
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
### No Prosody
|
|
388
|
-
```
|
|
389
|
-
❌ Fixed the authentication bug
|
|
390
|
-
✅ [💥 excited] Found it... **authentication** token was expiring!
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
### Wrong Personality
|
|
394
|
-
```
|
|
395
|
-
❌ [Architect using chaotic energy] Wait wait... found it!!
|
|
396
|
-
✅ [Architect measured delivery] Analysis complete -- **fundamental** redesign needed
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
### Overuse
|
|
400
|
-
```
|
|
401
|
-
❌ [💥 excited] **This** is... **so** -- **amazing**!!!
|
|
402
|
-
✅ [💥 excited] Found the **actual** solution!
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
---
|
|
406
|
-
|
|
407
|
-
## Related Documentation
|
|
408
|
-
|
|
409
|
-
- `${PAI_DIR}/voice-server/USAGE.md` - Voice server complete usage guide
|
|
410
|
-
- `${PAI_DIR}/Skills/CORE/agent-personalities.md` - Agent personality definitions
|
|
411
|
-
- `${PAI_DIR}/Skills/CORE/workflows/voice-routing-full.md` - Voice routing table
|
|
412
|
-
- `${PAI_DIR}/Hooks/lib/prosody-enhancer.ts` - Prosody enhancement library
|
|
413
|
-
|
|
414
|
-
---
|
|
415
|
-
|
|
416
|
-
**Last Updated:** 2025-11-17
|