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(paths): stop resolving four helpers through ~/Projects, which exists on no install (#881)

Aurora Capital8dbef4b583dc
diff --git a/claude-ops/bin/ops-post-session-cleanup b/claude-ops/bin/ops-post-session-cleanup
index 5f809fa8..c6e7e64c 100755
--- a/claude-ops/bin/ops-post-session-cleanup
+++ b/claude-ops/bin/ops-post-session-cleanup
@@ -5,7 +5,29 @@ set -euo pipefail
# Clean temp bridge files (formerly wacli temp files)
rm -f /tmp/wacli-sync-probe-*.log /tmp/wacli-bootstrap-*.log 2>/dev/null || true
-# Clean stale agent worktrees older than 2 hours
-find "$HOME/Projects/claude-ops/.worktrees" -maxdepth 1 -type d -mmin +120 -exec rm -rf {} \; 2>/dev/null || true
+# Clean stale agent worktrees older than 2 hours.
+# Check every known checkout root — a hardcoded ~/Projects path silently
+# cleans nothing on installs that live elsewhere.
+#
+# Do not infer staleness from the worktree ROOT mtime: an active session can
+# keep writing files below the root while the directory inode stays old, and
+# `find -type d -mmin +120` on the root would then rm -rf an in-use checkout.
+# Require BOTH: the worktree HEAD is older than 2h AND no file inside has
+# been touched in 2h. `find -print -quit` is GNU-only, so we stop after the
+# first match with a subshell break instead.
+for _root in "$HOME/Developer/repos/claude-ops" "$HOME/Developer/active/claude-ops" "$HOME/Projects/claude-ops"; do
+ [ -d "$_root/.worktrees" ] || continue
+ find "$_root/.worktrees" -maxdepth 1 -mindepth 1 -type d | while IFS= read -r _wt; do
+ # Linked worktrees store $_wt/.git as a gitfile, not a directory, so
+ # `find $_wt/.git -name HEAD` never matches. Resolve HEAD through git.
+ _head=$(git -C "$_wt" rev-parse --git-path HEAD 2>/dev/null) || continue
+ [ -f "$_head" ] || continue
+ _head_old=$(find "$_head" -maxdepth 0 -mmin +120 2>/dev/null | head -1)
+ [ -n "$_head_old" ] || continue
+ _recent=$(find "$_wt" -type f -mmin -120 2>/dev/null | head -1)
+ [ -z "$_recent" ] || continue
+ rm -rf "$_wt"
+ done
+done
exit 0
diff --git a/claude-ops/bin/ops-update b/claude-ops/bin/ops-update
index e277820f..b6c09b7f 100755
--- a/claude-ops/bin/ops-update
+++ b/claude-ops/bin/ops-update
@@ -238,7 +238,7 @@ if [[ "$LOCALSYNC" -eq 0 ]]; then
say " ${c_dim}(skipped: --no-localsync)${c_rst}"
else
localrepo=""
- for d in "$HOME"/Projects/claude-ops-marketplace "$HOME"/Projects/claude-ops "$HOME"/Projects/*/claude-ops "$HOME"/Projects/claude-ops/claude-ops; do
+ for d in "$HOME"/Developer/repos/claude-ops/claude-ops "$HOME"/external-skills/claude-ops "$HOME"/Projects/claude-ops-marketplace "$HOME"/Projects/claude-ops "$HOME"/Projects/*/claude-ops "$HOME"/Projects/claude-ops/claude-ops; do
case "$d" in *"/.worktrees/"*) continue ;; esac
[[ -f "$d/.claude-plugin/marketplace.json" ]] || continue
git -C "$d" rev-parse --git-dir >/dev/null 2>&1 || continue
diff --git a/claude-ops/scripts/agent-dash/control.mjs b/claude-ops/scripts/agent-dash/control.mjs
index d56c2db7..5a6595e5 100644
--- a/claude-ops/scripts/agent-dash/control.mjs
+++ b/claude-ops/scripts/agent-dash/control.mjs
@@ -5,8 +5,9 @@
import { spawnSync, execFileSync } from 'node:child_process';
import { homedir } from 'node:os';
-import { appendFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
-import { join, dirname } from 'node:path';
+import { appendFileSync, existsSync, mkdirSync, readFileSync, statSync } from 'node:fs';
+import { join, dirname, resolve as pathResolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
const HOME = homedir();
const ARCHIVE_LOG = join(HOME, '.claude', 'state', 'agent-archive.jsonl');
@@ -30,7 +31,28 @@ function fraSshHost() {
}
return FRA_HOSTS[0];
}
-const OPS_BG = process.env.OPS_BG_BIN || `${HOME}/Projects/claude-ops/claude-ops/bin/ops-bg`;
+function resolveOpsBg() {
+ if (process.env.OPS_BG_BIN) return process.env.OPS_BG_BIN;
+ // Sibling of this file is the authoritative answer: control.mjs ships at
+ // <root>/scripts/agent-dash/control.mjs, so ops-bg is <root>/bin/ops-bg.
+ const candidates = [
+ pathResolve(dirname(fileURLToPath(import.meta.url)), '..', '..', 'bin', 'ops-bg'),
+ `${HOME}/Developer/repos/claude-ops/claude-ops/bin/ops-bg`,
+ `${HOME}/external-skills/claude-ops/bin/ops-bg`,
+ `${HOME}/.claude/plugins/marketplaces/ops-marketplace/claude-ops/bin/ops-bg`,
+ `${HOME}/Projects/claude-ops/claude-ops/bin/ops-bg`,
+ ];
+ for (const c of candidates) {
+ try {
+ const st = statSync(c);
+ if (st.isFile() && st.mode & 0o111) return c;
+ } catch {
+ // missing path — keep looking
+ }
+ }
+ return candidates[0];
+}
+const OPS_BG = resolveOpsBg();
export function findAgent(snapshot, idOrName) {
const q = String(idOrName);
diff --git a/claude-ops/skills/ops-release/SKILL.md b/claude-ops/skills/ops-release/SKILL.md
index eb581623..6d15d0f4 100644
--- a/claude-ops/skills/ops-release/SKILL.md
+++ b/claude-ops/skills/ops-release/SKILL.md
@@ -36,7 +36,7 @@ Resolve it first:
```bash
RELEASE=""
-for d in ~/Projects/claude-ops-workspace/claude-ops ~/Projects/claude-ops/claude-ops "$HOME"/Projects/*/claude-ops; do
+for d in ~/Developer/repos/claude-ops ~/Projects/claude-ops-workspace/claude-ops ~/Projects/claude-ops/claude-ops "$HOME"/Projects/*/claude-ops; do
if [ -f "$d/.claude-plugin/marketplace.json" ] && [ -x "$d/claude-ops/bin/ops-release" ]; then
RELEASE="$d/claude-ops/bin/ops-release"; REPO="$d"; break
fi
diff --git a/claude-ops/skills/ops-ship/SKILL.md b/claude-ops/skills/ops-ship/SKILL.md
index 1434fe63..8e44b0f9 100644
--- a/claude-ops/skills/ops-ship/SKILL.md
+++ b/claude-ops/skills/ops-ship/SKILL.md
@@ -44,7 +44,7 @@ Run the copy inside a git checkout of the repo:
```bash
SHIP=""
-for d in ~/Projects/claude-ops-workspace/claude-ops ~/Projects/claude-ops/claude-ops "$HOME"/Projects/*/claude-ops; do
+for d in ~/Developer/repos/claude-ops ~/Projects/claude-ops-workspace/claude-ops ~/Projects/claude-ops/claude-ops "$HOME"/Projects/*/claude-ops; do
if [ -f "$d/.claude-plugin/marketplace.json" ] && [ -x "$d/claude-ops/bin/ops-ship" ]; then
SHIP="$d/claude-ops/bin/ops-ship"; break
fi