Skip to content

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

fix: remove PAI_DIR from settings.json to avoid expansion issues

Daniel Miesslerb69a20b055e0
diff --git a/.claude/settings.json b/.claude/settings.json
index 6b7e7511..a30aece9 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -2,9 +2,9 @@
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"DA": "PAI",
- "PAI_DIR": "$HOME/.claude",
"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",
diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md
index 8f12a805..676f1d85 100644
--- a/docs/QUICKSTART.md
+++ b/docs/QUICKSTART.md
@@ -172,6 +172,21 @@ cat ~/.claude/settings.json | grep SessionStart
read ~/.claude/skills/CORE/SKILL.md
```
+### Hooks Fail with "$HOME/.claude/..." Error
+
+If you see errors like:
+```
+/bin/sh: $HOME/.claude/hooks/capture-all-events.ts: No such file or directory
+```
+
+**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.
+
### Voice Server Not Working
```bash