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(daemon): services work out of the box on fresh install
auroracapitalc67c071d175f
diff --git a/claude-ops/scripts/com.claude-ops.daemon.plist b/claude-ops/scripts/com.claude-ops.daemon.plistindex e0b0a1c1..aa587f19 100644--- a/claude-ops/scripts/com.claude-ops.daemon.plist+++ b/claude-ops/scripts/com.claude-ops.daemon.plist@@ -7,7 +7,7 @@<key>ProgramArguments</key><array>- <string>/bin/bash</string>+ <string>__BASH_PATH__</string><string>__DAEMON_SCRIPT_PATH__</string></array>@@ -32,6 +32,8 @@<string>/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin</string><key>HOME</key><string>__HOME__</string>+ <key>CLAUDE_PLUGIN_ROOT</key>+ <string>__PLUGIN_ROOT__</string></dict></dict></plist>diff --git a/claude-ops/scripts/com.claude-ops.wacli-keepalive.plist b/claude-ops/scripts/com.claude-ops.wacli-keepalive.plistindex 5ac3d8e1..0582737b 100644--- a/claude-ops/scripts/com.claude-ops.wacli-keepalive.plist+++ b/claude-ops/scripts/com.claude-ops.wacli-keepalive.plist@@ -7,7 +7,7 @@<key>ProgramArguments</key><array>- <string>/bin/bash</string>+ <string>__BASH_PATH__</string><string>__KEEPALIVE_SCRIPT_PATH__</string></array>diff --git a/claude-ops/scripts/daemon-services.default.json b/claude-ops/scripts/daemon-services.default.jsonindex b9875fe4..e60d85ce 100644--- a/claude-ops/scripts/daemon-services.default.json+++ b/claude-ops/scripts/daemon-services.default.json@@ -2,27 +2,27 @@"services": {"briefing-pre-warm": {"enabled": true,- "command": "__SCRIPTS_DIR__/../bin/ops-gather",+ "command": "${CLAUDE_PLUGIN_ROOT}/bin/ops-gather","cron": "*/2 * * * *","_note": "Pre-warms /ops:go briefing cache every 2 minutes. Runs immediately after daemon install so /ops:go is instant by the time setup finishes."},"wacli-sync": {"enabled": true,- "command": "__SCRIPTS_DIR__/wacli-keepalive.sh",+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/wacli-keepalive.sh","health_file": "~/.wacli/.health","restart_delay": 60,"max_restarts": 10},"memory-extractor": {"enabled": true,- "command": "__SCRIPTS_DIR__/ops-memory-extractor.sh",+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-memory-extractor.sh","health_file": "~/.claude/plugins/data/ops-ops-marketplace/memories/.health","restart_delay": 3600,"cron": "*/30 * * * *"},"fires-watcher": {"enabled": false,- "command": "__SCRIPTS_DIR__/ops-fires-watcher.sh",+ "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-fires-watcher.sh","health_file": "~/.claude/plugins/data/ops-ops-marketplace/fires-watcher.health","restart_delay": 60,"max_restarts": 20,diff --git a/claude-ops/scripts/ops-daemon.sh b/claude-ops/scripts/ops-daemon.shindex ce37f0d6..c8e71ebb 100755--- a/claude-ops/scripts/ops-daemon.sh+++ b/claude-ops/scripts/ops-daemon.sh@@ -135,6 +135,9 @@ start_service() {return 1fi+ # Expand env vars in command path (e.g. ${CLAUDE_PLUGIN_ROOT}/scripts/...)+ cmd=$(eval echo "$cmd")+log "START: launching $name — $cmd"# Export daemon identity so child scripts can detect they're managedexport OPS_DAEMON_PID=$$@@ -329,6 +332,9 @@ run_cron_service() {cmd=$(get_service_field "$name" "command")if [[ -z "$cmd" ]]; then return; fi+ # Expand env vars in command path+ cmd=$(eval echo "$cmd")+log "CRON: running $name"SERVICE_STATUS["$name"]="running"SERVICE_LAST_RUN["$name"]=$(date +%s)diff --git a/claude-ops/skills/setup/SKILL.md b/claude-ops/skills/setup/SKILL.mdindex 5d17e49e..116a0421 100644--- a/claude-ops/skills/setup/SKILL.md+++ b/claude-ops/skills/setup/SKILL.md@@ -322,8 +322,19 @@ DATA_DIR="${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplaLOG_DIR="$DATA_DIR/logs"mkdir -p "$LOG_DIR"+# Resolve bash 4+ (required for associative arrays in ops-daemon.sh).+# macOS ships bash 3; Homebrew installs bash 5 at /opt/homebrew/bin/bash.+BASH_PATH="/bin/bash"+if [[ -x /opt/homebrew/bin/bash ]]; then+ BASH_PATH="/opt/homebrew/bin/bash"+elif [[ -x /usr/local/bin/bash ]]; then+ BASH_PATH="/usr/local/bin/bash"+fi+# Generate plistsed -e "s|__DAEMON_SCRIPT_PATH__|$DAEMON_SCRIPT|g" \+ -e "s|__BASH_PATH__|$BASH_PATH|g" \+ -e "s|__PLUGIN_ROOT__|$PLUGIN_ROOT|g" \-e "s|__LOG_DIR__|$LOG_DIR|g" \-e "s|__HOME__|$HOME|g" \"$PLIST_TEMPLATE" > "$PLIST_DEST"@@ -883,7 +894,16 @@ PLIST_DEST="$HOME/Library/LaunchAgents/com.claude-ops.wacli-keepalive.plist"LOG_DIR="$HOME/.claude/plugins/data/ops-ops-marketplace/logs"mkdir -p "$LOG_DIR" "$HOME/Library/LaunchAgents"+# Resolve bash 4+ (same logic as daemon plist)+BASH_PATH="/bin/bash"+if [[ -x /opt/homebrew/bin/bash ]]; then+ BASH_PATH="/opt/homebrew/bin/bash"+elif [[ -x /usr/local/bin/bash ]]; then+ BASH_PATH="/usr/local/bin/bash"+fi+sed -e "s|__KEEPALIVE_SCRIPT_PATH__|$KEEPALIVE_SCRIPT|g" \+ -e "s|__BASH_PATH__|$BASH_PATH|g" \-e "s|__LOG_DIR__|$LOG_DIR|g" \-e "s|__HOME__|$HOME|g" \"$PLIST_TEMPLATE" > "$PLIST_DEST"@@ -2449,14 +2469,14 @@ fiecho "Services to enable: $SERVICES"```-Write daemon services config to `$DATA_DIR/daemon-services.json` — merge with the existing config from Step 2c, preserving `briefing-pre-warm` and `memory-extractor`, and enabling the new channel-dependent services. Each service entry should include:-- `briefing-pre-warm`: `{ "enabled": true, "cron": "*/2 * * * *" }` — pre-warms /ops:go cache (installed in 2c)-- `wacli-sync`: `{ "enabled": true, "interval": "continuous" }` — only if WhatsApp configured-- `memory-extractor`: `{ "enabled": true, "cron": "*/30 * * * *" }` — every 30 min (installed in 2c)-- `inbox-digest`: `{ "enabled": true, "cron": "0 */4 * * *" }` — every 4h-- `store-health`: `{ "enabled": true, "cron": "0 9 * * *" }` — daily 9am, only if ecom configured-- `competitor-intel`: `{ "enabled": true, "cron": "0 10 * * 1" }` — weekly Monday 10am-- `message-listener`: `{ "enabled": true, "interval": "continuous" }` — only if WhatsApp or Telegram configured+Write daemon services config to `$DATA_DIR/daemon-services.json` — merge with the existing config from Step 2c, preserving `briefing-pre-warm` and `memory-extractor`, and enabling the new channel-dependent services. **Every service MUST include a `command` field** — the daemon's `start_service()` skips any service without one. Use `${CLAUDE_PLUGIN_ROOT}` (resolved at runtime) for script paths. Each service entry should include:+- `briefing-pre-warm`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/bin/ops-gather", "cron": "*/2 * * * *" }` — pre-warms /ops:go cache (installed in 2c)+- `wacli-sync`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/wacli-keepalive.sh", "health_file": "~/.wacli/.health", "restart_delay": 60, "max_restarts": 10 }` — only if WhatsApp configured+- `memory-extractor`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-memory-extractor.sh", "health_file": "~/.claude/plugins/data/ops-ops-marketplace/memories/.health", "cron": "*/30 * * * *" }` — every 30 min (installed in 2c)+- `inbox-digest`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-cron-inbox-digest.sh", "cron": "0 */4 * * *" }` — every 4h+- `store-health`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-cron-store-health.sh", "cron": "0 9 * * *" }` — daily 9am, only if ecom configured+- `competitor-intel`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-cron-competitor-intel.sh", "cron": "0 10 * * 1" }` — weekly Monday 10am+- `message-listener`: `{ "enabled": true, "command": "${CLAUDE_PLUGIN_ROOT}/scripts/ops-message-listener.sh" }` — only if WhatsApp or Telegram configuredAfter rewriting the services config, do a quick health check (foreground, <2s), then background the reload: