Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
fix(hooks): stop interpolating $INPUT so Grok runs inbox autosync (#905)
Aurora Capitala96aefff82d4
diff --git a/claude-ops/CHANGELOG.md b/claude-ops/CHANGELOG.mdindex 277533de..4a27db4b 100644--- a/claude-ops/CHANGELOG.md+++ b/claude-ops/CHANGELOG.md@@ -1,5 +1,10 @@## Unreleased+- fix(hooks): UserPromptSubmit inbox autosync no longer interpolates `$INPUT`.+ Grok treats `$VAR` in a hook command as a required env var and skips the+ hook when it is unset. The script already reads the event JSON from stdin.+ Guard: `tests/test-hooks.sh` now flags `$INPUT` the same way as `$TOOL_INPUT`.+- fix(daemon): write `daemon-health.json` with builtin `printf` + `mv`, not`cat >file <<EOF`. Under launchd stdin is `/dev/null`, so bash's 16KiBheredoc pipe never drains and the first health write deadlocks — emptydiff --git a/claude-ops/hooks/hooks.json b/claude-ops/hooks/hooks.jsonindex 3172cc60..a3797ad6 100644--- a/claude-ops/hooks/hooks.json+++ b/claude-ops/hooks/hooks.json@@ -10,7 +10,7 @@},{"type": "command",- "command": "INPUT=$(cat); (printf %s \"$INPUT\" | bash ${CLAUDE_PLUGIN_ROOT}/bin/ops-inbox-autosync >/dev/null 2>&1 &); exit 0",+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/bin/ops-inbox-autosync >/dev/null 2>&1","timeout": 2,"async": true}diff --git a/claude-ops/tests/test-hooks.sh b/claude-ops/tests/test-hooks.shindex ff763c76..c1c99ba5 100755--- a/claude-ops/tests/test-hooks.sh+++ b/claude-ops/tests/test-hooks.sh@@ -127,7 +127,7 @@ fiecho ""echo "Checking command interpolations..."if command -v jq &>/dev/null; then- bad=$(printf '%s\n' "$commands" | grep -E '\$\{?(TOOL_INPUT|TOOL_RESULT|USER_PROMPT)\}?' || true)+ bad=$(printf '%s\n' "$commands" | grep -E '\$\{?(TOOL_INPUT|TOOL_RESULT|USER_PROMPT|INPUT)\}?' || true)if [[ -n "$bad" ]]; thenerr "command interpolates Claude-only payload var (Grok skips the hook): $bad"else