Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

fix: Resolve 4 community issues — VoiceServer camelCase, hardcoded voice_id, hooks README, notification config

Daniel Miessler011c54549825
diff --git a/Releases/v3.0/.claude/VoiceServer/server.ts b/Releases/v3.0/.claude/VoiceServer/server.ts
index c6bc4f3e..3d3a4400 100644
--- a/Releases/v3.0/.claude/VoiceServer/server.ts
+++ b/Releases/v3.0/.claude/VoiceServer/server.ts
@@ -135,6 +135,7 @@ interface LoadedVoiceConfig {
defaultVoiceId: string;
voices: Record<string, VoiceEntry>; // keyed by name ("main", "algorithm")
voicesByVoiceId: Record<string, VoiceEntry>; // keyed by voiceId for lookup
+ desktopNotifications: boolean; // whether to show macOS notification banners
}
// Last-resort defaults if settings.json is entirely missing or unparseable
@@ -154,13 +155,14 @@ function loadVoiceConfig(): LoadedVoiceConfig {
try {
if (!existsSync(settingsPath)) {
console.warn('⚠️ settings.json not found — using fallback voice defaults');
- return { defaultVoiceId: '', voices: {}, voicesByVoiceId: {} };
+ return { defaultVoiceId: '', voices: {}, voicesByVoiceId: {}, desktopNotifications: true };
}
const content = readFileSync(settingsPath, 'utf-8');
const settings = JSON.parse(content);
const daidentity = settings.daidentity || {};
const voicesSection = daidentity.voices || {};
+ const desktopNotifications = settings.notifications?.desktop?.enabled !== false;
// Build lookup maps
const voices: Record<string, VoiceEntry> = {};
@@ -173,10 +175,10 @@ function loadVoiceConfig(): LoadedVoiceConfig {
voiceId: entry.voiceId,
voiceName: entry.voiceName,
stability: entry.stability ?? 0.5,
- similarity_boost: entry.similarity_boost ?? 0.75,
+ similarity_boost: entry.similarity_boost ?? entry.similarityBoost ?? 0.75,
style: entry.style ?? 0.0,
speed: entry.speed ?? 1.0,
- use_speaker_boost: entry.use_speaker_boost ?? true,
+ use_speaker_boost: entry.use_speaker_boost ?? entry.useSpeakerBoost ?? true,
volume: entry.volume ?? 1.0,
};
voices[name] = voiceEntry;
@@ -193,10 +195,10 @@ function loadVoiceConfig(): LoadedVoiceConfig {
console.log(` ${name}: ${entry.voiceName || entry.voiceId} (speed: ${entry.speed}, stability: ${entry.stability})`);
}
- return { defaultVoiceId, voices, voicesByVoiceId };
+ return { defaultVoiceId, voices, voicesByVoiceId, desktopNotifications };
} catch (error) {
console.error('⚠️ Failed to load settings.json voice config:', error);
- return { defaultVoiceId: '', voices: {}, voicesByVoiceId: {} };
+ return { defaultVoiceId: '', voices: {}, voicesByVoiceId: {}, desktopNotifications: true };
}
}
@@ -505,14 +507,16 @@ async function sendNotification(
}
}
- // Display macOS notification
- try {
- const escapedTitle = escapeForAppleScript(safeTitle);
- const escapedMessage = escapeForAppleScript(safeMessage);
- const script = `display notification "${escapedMessage}" with title "${escapedTitle}" sound name ""`;
- await spawnSafe('/usr/bin/osascript', ['-e', script]);
- } catch (error) {
- console.error("Notification display error:", error);
+ // Display macOS notification (can be disabled via settings.json: notifications.desktop.enabled: false)
+ if (voiceConfig.desktopNotifications) {
+ try {
+ const escapedTitle = escapeForAppleScript(safeTitle);
+ const escapedMessage = escapeForAppleScript(safeMessage);
+ const script = `display notification "${escapedMessage}" with title "${escapedTitle}" sound name ""`;
+ await spawnSafe('/usr/bin/osascript', ['-e', script]);
+ } catch (error) {
+ console.error("Notification display error:", error);
+ }
}
}
diff --git a/Releases/v3.0/.claude/hooks/README.md b/Releases/v3.0/.claude/hooks/README.md
index 1bfe7e61..fbcc6bed 100755
--- a/Releases/v3.0/.claude/hooks/README.md
+++ b/Releases/v3.0/.claude/hooks/README.md
@@ -50,15 +50,14 @@ Hooks are TypeScript scripts that execute at specific lifecycle events in Claude
│ UserPromptSubmit ──┬──► RatingCapture (algo reminder + ratings) │
│ ├──► AutoWorkCreation (work directory setup) │
│ ├──► UpdateTabTitle (tab + voice announcement) │
-│ ├──► SessionAutoName (session naming) │
-│ └──► SessionReactivator (algorithm state) │
+│ └──► SessionAutoName (session naming) │
│ │
│ PreToolUse ──┬──► SecurityValidator (Bash/Edit/Write/Read) │
│ ├──► SetQuestionTab (AskUserQuestion) │
│ ├──► AgentExecutionGuard (Task) │
│ └──► SkillGuard (Skill) │
│ │
-│ PostToolUse ──┬──► CriteriaTracker (all tools — phase + criteria) │
+│ PostToolUse ──┬──► AlgorithmTracker (phase + criteria tracking) │
│ └──► QuestionAnswered (AskUserQuestion) │
│ │
│ Stop ──► StopOrchestrator ──┬──► VoiceNotification │
@@ -136,7 +135,6 @@ interface StopPayload extends BasePayload {
| `AutoWorkCreation.hook.ts` | Create/update work directories | No | `MEMORY/STATE/current-work.json` |
| `UpdateTabTitle.hook.ts` | Set tab title + voice announcement | No | Inference API, Voice Server |
| `SessionAutoName.hook.ts` | Name session on first prompt | No | Inference API, `session-names.json` |
-| `SessionReactivator.hook.ts` | Reactivate algorithm state on new prompt | No | `lib/algorithm-state.ts` |
### PreToolUse Hooks
@@ -151,7 +149,7 @@ interface StopPayload extends BasePayload {
| Hook | Purpose | Blocking | Dependencies |
|------|---------|----------|--------------|
-| `CriteriaTracker.hook.ts` | Real-time phase tracking + ISC criteria tracking | No | `lib/algorithm-state.ts` |
+| `AlgorithmTracker.hook.ts` | Real-time phase tracking + ISC criteria tracking | No | `lib/algorithm-state.ts` |
| `QuestionAnswered.hook.ts` | Reset tab state after question answered | No | Kitty terminal |
### Stop Hooks
diff --git a/Releases/v3.0/.claude/skills/PAI/Components/Algorithm/v1.6.0.md b/Releases/v3.0/.claude/skills/PAI/Components/Algorithm/v1.6.0.md
index 23dc45ec..4a628029 100644
--- a/Releases/v3.0/.claude/skills/PAI/Components/Algorithm/v1.6.0.md
+++ b/Releases/v3.0/.claude/skills/PAI/Components/Algorithm/v1.6.0.md
@@ -14,7 +14,7 @@
🗒️ TASK: [8 word description]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the PAI Algorithm Observe phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the PAI Algorithm Observe phase"}'`
━━━ 👁️ OBSERVE ━━━ 1/7
@@ -184,7 +184,7 @@ For each extracted constraint [EX-N], state which ISC criterion covers it:
**⚡ GATE IS NOW OPEN — All tools are available from THINK onward.**
[VERBATIM - Execute exactly as written, do not modify (Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Think phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Think phase"}'`
━━━ 🧠 THINK ━━━ 2/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -222,7 +222,7 @@ For each [CRITICAL] ISC criterion and anti-criterion:
[Verification method categories: CLI (commands), Test (test runner), Static (type check/lint), Browser (screenshot), Grep (pattern match), Read (file inspection), Custom (human judgment — interactive only)]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Plan phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Plan phase"}'`
━━━ 📋 PLAN ━━━ 3/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -308,7 +308,7 @@ ELSE:
[Finalize approach and declare execution strategy]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Build phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Build phase"}'`
━━━ 🔨 BUILD ━━━ 4/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -335,7 +335,7 @@ After creating each artifact, immediately check all [CRITICAL] anti-criteria aga
📝 **ISC MUTATIONS:** [ADDED: ... | MODIFIED: ... | REMOVED: ... | None]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Execute phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Execute phase"}'`
━━━ ⚡ EXECUTE ━━━ 5/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -348,7 +348,7 @@ After creating each artifact, immediately check all [CRITICAL] anti-criteria aga
📝 **ISC MUTATIONS:** [ADDED: ... | MODIFIED: ... | REMOVED: ... | None]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Verify phase.", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Verify phase."}'`
━━━ ✅ VERIFY ━━━ 6/7 (THE CULMINATION)
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -397,7 +397,7 @@ For EACH criterion in the list:
[INVOKE TaskList to show final verification state - NO manual tables]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Learn phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Learn phase"}'`
━━━ 📚 LEARN ━━━ 7/7
⏱️ FINAL TIME: [Total: Xs | Budget: Ys | WITHIN / OVER by Zs]
diff --git a/Releases/v3.0/.claude/skills/PAI/SKILL.md b/Releases/v3.0/.claude/skills/PAI/SKILL.md
index 6d765557..72ce3e1e 100755
--- a/Releases/v3.0/.claude/skills/PAI/SKILL.md
+++ b/Releases/v3.0/.claude/skills/PAI/SKILL.md
@@ -53,7 +53,7 @@ The CapabilityRecommender hook uses AI inference to classify depth. Its classifi
🗒️ TASK: [8 word description]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the PAI Algorithm Observe phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the PAI Algorithm Observe phase"}'`
━━━ 👁️ OBSERVE ━━━ 1/7
@@ -223,7 +223,7 @@ For each extracted constraint [EX-N], state which ISC criterion covers it:
**⚡ GATE IS NOW OPEN — All tools are available from THINK onward.**
[VERBATIM - Execute exactly as written, do not modify (Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Think phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Think phase"}'`
━━━ 🧠 THINK ━━━ 2/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -261,7 +261,7 @@ For each [CRITICAL] ISC criterion and anti-criterion:
[Verification method categories: CLI (commands), Test (test runner), Static (type check/lint), Browser (screenshot), Grep (pattern match), Read (file inspection), Custom (human judgment — interactive only)]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Plan phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Plan phase"}'`
━━━ 📋 PLAN ━━━ 3/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -347,7 +347,7 @@ ELSE:
[Finalize approach and declare execution strategy]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Build phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Build phase"}'`
━━━ 🔨 BUILD ━━━ 4/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -374,7 +374,7 @@ After creating each artifact, immediately check all [CRITICAL] anti-criteria aga
📝 **ISC MUTATIONS:** [ADDED: ... | MODIFIED: ... | REMOVED: ... | None]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Execute phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Execute phase"}'`
━━━ ⚡ EXECUTE ━━━ 5/7
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -387,7 +387,7 @@ After creating each artifact, immediately check all [CRITICAL] anti-criteria aga
📝 **ISC MUTATIONS:** [ADDED: ... | MODIFIED: ... | REMOVED: ... | None]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Verify phase.", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Verify phase."}'`
━━━ ✅ VERIFY ━━━ 6/7 (THE CULMINATION)
🚫 **STOP. This phase is SEPARATE. Never combine with adjacent phases. Never use combined numbering (e.g., "4-5/7").**
@@ -436,7 +436,7 @@ For EACH criterion in the list:
[INVOKE TaskList to show final verification state - NO manual tables]
[VERBATIM - Execute exactly as written, do not modify(Background agents ignore)]
-`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Learn phase", "voice_id": "fTtv3eikoepIosk8dTZ5"}'`
+`curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Entering the Learn phase"}'`
━━━ 📚 LEARN ━━━ 7/7
⏱️ FINAL TIME: [Total: Xs | Budget: Ys | WITHIN / OVER by Zs]