Skip to content

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

fix: replace ${PAI_DIR} with ~/.claude in settings.json

Daniel Miesslerb49778d1b0a0
diff --git a/.claude/settings.json b/.claude/settings.json
index a30aece9..a7d055ab 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -4,7 +4,6 @@
"DA": "PAI",
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000"
},
- "_comment_PAI_DIR": "PAI_DIR is not needed - hooks default to ~/.claude automatically. Only set PAI_DIR if you need a custom location (use absolute path like /Users/yourname/.claude)",
"permissions": {
"allow": [
"Bash",
@@ -68,7 +67,7 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type PreToolUse"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type PreToolUse"
}
]
}
@@ -79,11 +78,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-tool-output.ts"
+ "command": "~/.claude/hooks/capture-tool-output.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type PostToolUse"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type PostToolUse"
}
]
}
@@ -93,11 +92,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-session-summary.ts"
+ "command": "~/.claude/hooks/capture-session-summary.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type SessionEnd"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type SessionEnd"
}
]
}
@@ -107,11 +106,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/update-tab-titles.ts"
+ "command": "~/.claude/hooks/update-tab-titles.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type UserPromptSubmit"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type UserPromptSubmit"
}
]
}
@@ -121,15 +120,15 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/load-core-context.ts"
+ "command": "~/.claude/hooks/load-core-context.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/initialize-pai-session.ts"
+ "command": "~/.claude/hooks/initialize-pai-session.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type SessionStart"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type SessionStart"
}
]
}
@@ -139,11 +138,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/stop-hook.ts"
+ "command": "~/.claude/hooks/stop-hook.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type Stop"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type Stop"
}
]
}
@@ -153,11 +152,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/subagent-stop-hook.ts"
+ "command": "~/.claude/hooks/subagent-stop-hook.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type SubagentStop"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type SubagentStop"
}
]
}
@@ -168,11 +167,11 @@
"hooks": [
{
"type": "command",
- "command": "${PAI_DIR}/hooks/context-compression-hook.ts"
+ "command": "~/.claude/hooks/context-compression-hook.ts"
},
{
"type": "command",
- "command": "${PAI_DIR}/hooks/capture-all-events.ts --event-type PreCompact"
+ "command": "~/.claude/hooks/capture-all-events.ts --event-type PreCompact"
}
]
}
@@ -180,7 +179,7 @@
},
"statusLine": {
"type": "command",
- "command": "bash ${PAI_DIR}/statusline-command.sh"
+ "command": "bash ~/.claude/statusline-command.sh"
},
"enabledPlugins": {
"browser-automation@browser-tools": true
diff --git a/.claude/voice-server/QUICKSTART.md b/.claude/voice-server/QUICKSTART.md
index cf5d94d8..bc358f15 100644
--- a/.claude/voice-server/QUICKSTART.md
+++ b/.claude/voice-server/QUICKSTART.md
@@ -42,7 +42,7 @@ Replace `your_api_key_here` with your actual API key from Step 2.
## Step 4: Install the Voice Server
```bash
-cd ${PAI_DIR}/voice-server
+cd ~/.claude/voice-server
./install.sh
```
@@ -100,7 +100,7 @@ Get visual status in your macOS menu bar:
brew install --cask swiftbar
# Install the menu bar indicator
-cd ${PAI_DIR}/voice-server/menubar
+cd ~/.claude/voice-server/menubar
./install-menubar.sh
```
@@ -139,7 +139,7 @@ tail -f ~/.claude/voice-server/logs/voice-server.log
Kill any existing process and restart:
```bash
lsof -ti:8888 | xargs kill -9
-cd ${PAI_DIR}/voice-server && ./restart.sh
+cd ~/.claude/voice-server && ./restart.sh
```
### "Invalid API key"
diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md
index 676f1d85..b53fdf57 100644
--- a/docs/QUICKSTART.md
+++ b/docs/QUICKSTART.md
@@ -172,20 +172,15 @@ cat ~/.claude/settings.json | grep SessionStart
read ~/.claude/skills/CORE/SKILL.md
```
-### Hooks Fail with "$HOME/.claude/..." Error
+### Hooks Not Running
-If you see errors like:
-```
-/bin/sh: $HOME/.claude/hooks/capture-all-events.ts: No such file or directory
+Hooks require Bun to be installed and in your PATH. Verify:
+```bash
+which bun
+# Should show path like /Users/yourname/.bun/bin/bun
```
-**Solution:** PAI_DIR environment variable isn't being expanded. The hooks default to `~/.claude` automatically, so you don't need PAI_DIR at all.
-
-If you previously set PAI_DIR and are having issues:
-1. Remove `PAI_DIR` from `~/.claude/settings.json` env section
-2. OR set it to an absolute path: `"PAI_DIR": "/Users/yourname/.claude"`
-
-The hooks will automatically use `~/.claude` if PAI_DIR isn't set.
+If Bun isn't found, reinstall it and restart your terminal.
### Voice Server Not Working