Skip to content

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.

fix: cross-platform tail + statusLine edge cases (sentry/blocksorg/devin)

auroracapitalf9562d320f9e
diff --git a/claude-ops/bin/ops-no-rm-rf-anchor b/claude-ops/bin/ops-no-rm-rf-anchor
index 04045c29..9031dbbc 100755
--- a/claude-ops/bin/ops-no-rm-rf-anchor
+++ b/claude-ops/bin/ops-no-rm-rf-anchor
@@ -29,8 +29,19 @@ except Exception:
pass
' "$INPUT" 2>/dev/null || true)
# Bash-only fallback when python3 is unavailable or fails.
+ # Safety: the regex below stops at the first "\"" inside a JSON string, so it
+ # may TRUNCATE a value like `rm -rf \"build out\" /` to `rm -rf \`, hiding
+ # the dangerous `/` anchor from downstream grep checks. To preserve the
+ # fail-closed invariant (when in doubt, scan the raw INPUT, which still
+ # contains every dangerous substring), only swap CMD when the parsed value
+ # is well-formed: non-empty AND not a truncation indicator (no trailing
+ # backslash) AND not obviously shorter than the raw input's command region.
if [[ -z "$parsed" ]]; then
parsed=$(echo "$INPUT" | sed -n 's/.*"command"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
+ # Reject truncated extractions: trailing `\` means we cut on an escaped quote.
+ if [[ "$parsed" == *\\ ]]; then
+ parsed=""
+ fi
fi
[[ -n "$parsed" ]] && CMD="$parsed"
fi
diff --git a/claude-ops/skills/ops-recap/SKILL.md b/claude-ops/skills/ops-recap/SKILL.md
index 650653ea..53f1d01c 100644
--- a/claude-ops/skills/ops-recap/SKILL.md
+++ b/claude-ops/skills/ops-recap/SKILL.md
@@ -88,10 +88,13 @@ else
fi
SETTINGS="$HOME/.claude/settings.json"
+statusline_check_skipped=0
if ! command -v jq >/dev/null 2>&1; then
- echo "○ Claude Code statusLine — cannot check (jq not installed)"
+ echo "○ Claude Code statusLine — cannot check (jq not installed; install via 'brew install jq' or your distro's package manager)"
+ statusline_check_skipped=1
elif [ ! -f "$SETTINGS" ]; then
- echo "○ Claude Code statusLine — no ~/.claude/settings.json found"
+ echo "○ Claude Code statusLine — no ~/.claude/settings.json found (run Claude Code at least once, or run /ops:recap configure to create one)"
+ statusline_check_skipped=1
else
sl_cmd=$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null)
if echo "$sl_cmd" | grep -q claude-recap-digest; then
@@ -102,8 +105,15 @@ else
fi
fi
+# Only warn "no display surface active" when we actually verified both surfaces.
+# If statusline check was skipped due to missing prerequisites, statusline_wired
+# being 0 is uninformative — surface that explicitly instead of misleading text.
if [ "$tmux_wired" -eq 0 ] && [ "$statusline_wired" -eq 0 ]; then
- echo " → no display surface active. Daemon still produces /tmp/claude-recap-digest (useful for /ops:recap tail)."
+ if [ "$statusline_check_skipped" -eq 1 ]; then
+ echo " → tmux not wired; statusLine status unknown (prerequisite missing — see above). Daemon still produces /tmp/claude-recap-digest (useful for /ops:recap tail)."
+ else
+ echo " → no display surface active. Daemon still produces /tmp/claude-recap-digest (useful for /ops:recap tail)."
+ fi
fi
```