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(ops-ar): batch mode docs, ogg/aac inbox search, version sync, agent-teams simplification (#550)
Aurora Capital24612558a1c5
diff --git a/claude-ops/agents/ar-producer.md b/claude-ops/agents/ar-producer.mdindex a08b0b72..5f8c230b 100644--- a/claude-ops/agents/ar-producer.md+++ b/claude-ops/agents/ar-producer.md@@ -15,7 +15,7 @@ The audio-ar MCP tools are your ears-on-the-meters. The user trusts data + taste1. **Resolve the file.** You'll get a local path or a URL/Dropbox/YouTube link as input.- Local file → use directly.- - URL → `mkdir -p ~/.claude/jobs/ops-ar/tmp/` and download there with `curl -sL -o <file> "<url>"` (append `&dl=1` for Dropbox); for YouTube use `yt-dlp -x --audio-format mp3` if available.+ - URL → `mkdir -p ~/.claude/jobs/ops-ar/tmp/` and download there with `curl -sL -o <file> "<url>"` (for Dropbox: append `?dl=1`, or `&dl=1` if the URL already has query parameters); for YouTube use `yt-dlp -x --audio-format mp3` if available.2. **Run the analysis — ALWAYS the full pass.** Prefer `full_ar_report(path, deep=True)` for the one-shot: it now returns technical analysis, **waveform + full-spectrum spectrogram PNG paths**, **per-stem analysis** (each AI-separated stem analyzed on its own), the isolated-vocal topline, and CLAP. Then go deeper as needed with `analyze_track`, `mood_score`, `render_visuals`, `analyze_stems`, `separate_stems`. If Cyanite/Music.ai keys are live and a call is worth a slot, use `cyanite_analyze` for pro tags (free tier = 5/mo — spend only when it adds real signal).**ALWAYS do these two things — they're mandatory, not optional:**diff --git a/claude-ops/bin/ops-autofix b/claude-ops/bin/ops-autofixindex f2d6282c..a9b68579 100755--- a/claude-ops/bin/ops-autofix+++ b/claude-ops/bin/ops-autofix@@ -102,7 +102,16 @@ fix_bridge_fts() {# (wa-bridge-keepalive.sh, wa-inbox-fresh.sh, whatsapp-bridge-up.sh) back off for# 180s and don't pile on. whatsmeow can't re-fetch phone-sent messages on# reconnect, so coordinated restarts prevent dropping the user's own sends.- systemctl --user restart whatsapp-bridge.service 2>/dev/null || true+ if $IS_MACOS; then+ TARGET="gui/$(id -u)/com.${USER}.whatsapp-bridge"+ if ! launchctl kickstart -k "$TARGET" 2>/dev/null; then+ PLIST="$HOME/Library/LaunchAgents/com.${USER}.whatsapp-bridge.plist"+ [ -f "$PLIST" ] && launchctl load -w "$PLIST" 2>/dev/null || true+ launchctl kickstart -k "$TARGET" 2>/dev/null || true+ fi+ else+ systemctl --user restart whatsapp-bridge.service 2>/dev/null || true+ fidate +%s > "$HOME/.claude/.once.whatsapp-bridge-restart.last" 2>/dev/null || truelog_fix "bridge-fts: rebuilt bridge binary with -tags sqlite_fts5 (was missing fts5 module)"elsediff --git a/claude-ops/bin/ops-resume b/claude-ops/bin/ops-resumeindex 9cea90da..a1bb7b84 100755--- a/claude-ops/bin/ops-resume+++ b/claude-ops/bin/ops-resume@@ -112,7 +112,9 @@ if ! pgrep -x ghostty >/dev/null 2>&1; thenopen -a Ghosttysleep 1.2fi-osascript -e 'tell application "Ghostty" to activate' >/dev/null 2>&1 || true+if [ "$(uname -s)" = "Darwin" ]; then+ osascript -e 'tell application "Ghostty" to activate' >/dev/null 2>&1 || true+fisleep 0.3# Escape a string for an AppleScript double-quoted literal.@@ -123,7 +125,8 @@ for line in "${selected[@]}"; doIFS=$'\t' read -r mtime sid cwd <<< "$line"cmd="cd \"$cwd\" && claude --resume $sid"cmd_esc="$(esc "$cmd")"- osascript <<APPLESCRIPT+ if [ "$(uname -s)" = "Darwin" ]; then+ osascript <<APPLESCRIPTtell application "Ghostty" to activatedelay 0.25tell application "System Events"@@ -134,6 +137,7 @@ tell application "System Events"key code 36end tellAPPLESCRIPT+ fiopened=$(( opened + 1 ))sleep 0.5donediff --git a/claude-ops/skills/ops-ar/SKILL.md b/claude-ops/skills/ops-ar/SKILL.mdindex 7fc6c912..91e0adef 100644--- a/claude-ops/skills/ops-ar/SKILL.md+++ b/claude-ops/skills/ops-ar/SKILL.md@@ -18,22 +18,6 @@ effort: high# /ops:ops-ar — A&R Command-## Agent Teams support--If `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is set, use **Agent Teams** when A&R'ing a batch or a full inbox sweep — one ar-producer teammate per track, in waves of ≤2 (stem separation is CPU-heavy; check `nproc`/`uptime` first), coordinating in real time. This enables:-- Teammates share cross-track context (a recurring mix flaw or reference act spotted on track 1 informs the verdict on track 3)-- You can steer mid-sweep: "rank the dance-pop demos first, hold the ballads"-- Each verdict card streams back as its track finishes, so you assemble the ranked summary as results land--**Team setup** (only when flag is enabled, batch/inbox mode):-```-TeamCreate("ar-panel")-Agent(team_name="ar-panel", name="ar-[track-slug]", ...)-```-Steer with `SendMessage` / `broadcast`.--If the flag is NOT set, fall back to standard fire-and-forget subagents (one ar-producer Agent per track, in waves of ≤2).-A&R the given record(s) like a pop/dance-hit label owner + master producer. The deliverable is always the full A&R card per track:**VERDICT (hit/10 + sign / develop / pass) → WHAT'S WORKING → WHAT'S HOLDING IT BACK → THE PLAN (producer moves) → REFERENCE & POSITIONING → NEXT.**@@ -70,7 +54,7 @@ A&R multiple local paths or URLs in one invocation:### 3. Inbox sweep — `/ops:ops-ar inbox [from <sender> ...]`Pull every demo/song from the user's Gmail inbox and A&R them all:1. **Find demos:** `gog gmail search 'has:attachment (filename:mp3 OR filename:wav OR filename:m4a OR filename:aiff OR filename:flac OR filename:ogg OR filename:aac)'` (add `from:` filters if senders given). Confirm scope with the user if the set is large (>10 threads).-2. **Download attachments to disk** without flooding context: per thread, `gog gmail thread get <tid> -j` → message ids from `.thread.messages[]` (`{downloaded, thread: {messages: [...]}}` envelope — NOT top-level `messages`; see `/ops-inbox` gog JSON shapes table) → `gog gmail raw <mid> -j` piped to `jq` for audio parts (filename + attachmentId) → `gog gmail attachment <mid> <aid> --out <dir>/<label>__<file>`. Also grep text parts for external links (postal.music, disco.ac, wetransfer, dropbox) — flag link-only demos that need a login as NOT ANALYZED and tell the user to request a file re-send.+2. **Download attachments to disk** without flooding context: per thread, `gog gmail thread get <tid> -j` → message ids from `thread.messages[].id` (envelope `{downloaded, thread: {messages: [...]}}` — NOT top-level `messages`) → `gog gmail raw <mid> -j` piped to `jq` for audio parts (filename + attachmentId) → `gog gmail attachment <mid> <aid> --out <dir>/<label>__<file>`. Also grep text parts for external links (postal.music, disco.ac, wetransfer, dropbox) — flag link-only demos that need a login as NOT ANALYZED and tell the user to request a file re-send.3. **Dedupe** by md5 (forwarded demos repeat across threads).4. **Analyze per track** — spawn **ar-producer** (Opus) per deduped demo, in waves of ≤2 (stem separation is CPU-heavy; check `nproc`/`uptime` first). Same subagent MCP rule as single-track mode (include the full `ToolSearch select:mcp__audio-ar__...` list). Relay each agent's full A&R card back verbatim.5. **Summarize** — compile a ranked verdict table from the per-track cards.@@ -94,3 +78,18 @@ Pull every demo/song from the user's Gmail inbox and A&R them all:## FallbackIf `mcp__audio-ar__*` is unavailable, run the stack directly via Bash from `$AUDIO_AR_HOME` (`venv/bin/python analyze.py <file>`, `clap_score.py`, `transcribe.py`, `pro_apis.py`). Never fabricate analysis — if nothing ran, say so.++## Agent Teams support++If `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is set, use **Agent Teams** when dispatching multiple ar-producer agents in batch or inbox-sweep mode. This enables:+- Agents share partial findings in real time (e.g., one agent finds a stem issue → others adjust their verdict framing accordingly)+- You can steer mid-sweep: "prioritize the demo from sender X first"+- Progress is visible per track as agents report back++**Team setup** (only when flag is enabled, batch/inbox dispatch phase):+```+TeamCreate("ar-batch")+Agent(team_name="ar-batch", name="ar-[track-slug]", ...)+```++If the flag is NOT set, use standard parallel subagents (fire-and-forget, waves of ≤2).