v5.0.0: settings.json HTTP hooks call :31337 unconditionally — every Skill/Agent invocation fails on installs where Pulse is not running
Summary
The default settings.json ships PreToolUse HTTP hooks routed to localhost:31337/hooks/skill-guard and /agent-guard. These fire unconditionally on every Skill and Agent tool invocation.
On any install where the Pulse daemon is not running (Linux installs with no working service path per #1185, fresh installs missing package.json per #1129/#1139, ELOOP per #1186, missing Pulse Assistant module per #1173), these hooks return Connection refused and the tool error surfaces in the user's session. Voice notifications hit the same dead port and silently no-op.
The compounding effect: a fresh Linux user can't easily install Pulse, but every Skill/Agent call still demands Pulse be up.
Reproduce
Confirm the hooks ship to all installs:
gh api repos/danielmiessler/Personal_AI_Infrastructure/contents/Releases/v5.0.0/.claude/settings.json \
--jq '.content' | base64 -d | grep -B1 -A3 "skill-guard\|agent-guard\|31337"
# "type": "http",
# "url": "http://localhost:31337/hooks/skill-guard"
# "type": "http",
# "url": "http://localhost:31337/hooks/agent-guard"
# "allowedHttpHookUrls": ["http://localhost:31337/hooks/*"]
Confirm Pulse is unreachable on a Linux install:
$ ss -tlnp | grep 31337
# (empty — no listener)
$ ls ~/.claude/PAI/Pulse 2>&1
ls: cannot access '/home/USER/.claude/PAI/Pulse': No such file or directory
$ curl -v -m 2 -X POST http://localhost:31337/hooks/skill-guard \
-H 'Content-Type: application/json' -d '{}'
* Trying [::1]:31337...
* connect to ::1 port 31337 from ::1 port 48276 failed: Connection refused
* Trying 127.0.0.1:31337...
* connect to 127.0.0.1 port 31337 from 127.0.0.1 port 50174 failed: Connection refused
curl: (7) Failed to connect to localhost port 31337 after 0 ms: Could not connect to server
Result in an active Claude Code session: every Skill(...) and Agent(...) call emits a hook execution error to the user before the tool runs.
Voice notification path has the same exposure
PAI/ALGORITHM/v6.3.0.md mandates voice announcements via curl http://localhost:31337/notify at every Algorithm entry and phase transition. Same failure mode — silent no-op when Pulse is offline. Users perceive a "broken voice" rather than a missing daemon.
Why this isn't covered by #1185 / #1186 / #1129 / #1146
Those issues all describe Pulse install failures. This one describes the consumer side: even after Pulse install lands (or alongside the fix), there's a design question about whether the tool path should hard-depend on Pulse at all. A Linux user blocked on #1185 today cannot use Skill or Agent without first solving an unrelated systemd-unit problem.
Suggested fixes (in increasing scope)
-
Local-binary fallback for guard hooks. Ship
hooks/SkillGuard.hook.tsandhooks/AgentGuard.hook.tsas command-typed hooks. TheyPOST :31337opportunistically (fetchwith short timeout, errors swallowed) but their main logic runs locally. Removes the runtime Pulse dependency from the tool path. -
Soft-fail HTTP hooks. A
requireSuccess: falseflag (or equivalent) insettings.jsonso connection-refused hook responses don't surface. Requires upstream Claude Code change — out of scope here but worth tracking. -
Gate registration on Pulse health. Install script writes the HTTP hook lines only after a successful
curl :31337/health. Brittle (Pulse may stop later) but unblocks new installs.
Option 1 is the lowest blast radius and matches the existing PAI pattern (most hooks are local TypeScript already).
Environment
- PAI: v4.0.3 (settings.json sourced from v5.0.0 template — same skill-guard/agent-guard HTTP entries)
- Claude Code: 2.x
- Platform: Linux (Arch)
- Pulse: not installed (no Linux service install path per #1185)
Related: #1185, #1186, #1129, #1139, #1146, #1173, #1180
Hey @eccentricnode, thanks for raising this, and sorry it sat for a while.
We're changing how LifeOS ships. Instead of cloning a full ~/.claude directory and running it as a complete system, LifeOS is becoming a skill you install through an agentic installer. The installer hands integration to your own AI, which reads your actual machine (your OS, your paths, your harness) and wires the hooks and system prompt in where they belong.
That's aimed right at what you hit here. The old "one directory, one layout, hope it matches your setup" approach is exactly what broke for so many people, and the new model should handle it far better because your AI does the integration per machine instead of us guessing.
So we're closing this in prep for that release. If it still bites you once the skill-based version is out, reopen or file a fresh one and we'll jump on it. Appreciate you taking the time.