# CLAUDE.md — rateright-growth repo

This is the `rateright-growth` repo. It contains:

- `HQ-Vault/` — the Obsidian vault, single source of truth for the multi-agent team. **Read `HQ-Vault/_System/CLAUDE.md` first.**
- `scripts/` — server scripts (hunt, campaign, vault-verify, etc.)
- `src/`, `admin/` — Growth Engine CRM (Vite + React + Express + Supabase)
- `supabase/` — DB migrations
- `rivet/`, `harper/`, `cog/` — pre-2026-04-29 hibernation fleet artefacts. Mostly stale; trust live VPS state, not these docs.
- `the-50-dollar-app/` — separate sibling repo for the RateRight v2 platform (referenced via VPS, not nested here)

## Where to read first

If you're a Claude Code instance starting up:

1. **This file** — orientation only
2. **`HQ-Vault/_System/CLAUDE.md`** — global AI Team Protocol (lane rules, write protocol, commit format, append-only rule, hard rules)
3. **The `_Brain/CLAUDE.md` for the project folder you're working in:**
   - `HQ-Vault/10_RateRight/_Brain/CLAUDE.md` for RateRight platform / hunt / growth
   - `HQ-Vault/11_OpsMan_LFCS/_Brain/CLAUDE.md` for Hermes / OpsMan / VPS ops
   - `HQ-Vault/12_SiteOps/_Brain/CLAUDE.md` for site-specific ops
4. **The project folder's `_Brain/_Log.md`** (full file — append-only one-liners) and recent `_AgentLog/` entries

## VPS

- IP: `134.199.153.159`
- SSH: `ssh root@134.199.153.159`
- Repo path on VPS: `/home/ccuser/rateright-growth`
- Two-way auto-sync: `*/30 * * * * scripts/auto-sync.sh` does `git pull --rebase` + `git add -A` + `git commit -m "auto-sync: ..."` + `git push`. Excludes `.env`, `*.env`, `secrets.json`.

## What changed (2026-05-01)

- The 8-agent fleet (Rivet, Builder, Susan, Harper, Sentinel, Radar, Herald, Cog) was hibernated 2026-04-29. **`rivet/SYSTEM.md` and similar fleet docs are stale** — historical reference only.
- Survivors on the VPS: `hermes-gateway`, `clawdbot-opsman`, `rivet-voice` (systemd) + PM2 hunt fleet + growth-engine.
- The previous repo-level `CLAUDE.md` is archived at `HQ-Vault/_Archive/CC-VPS-CLAUDE-pre-hibernation.md`.

## Hard rules

- Never commit secrets (`.env`, API keys, full bot tokens) — `auto-sync.sh` excludes the obvious files but assume the rule, not the script.
- Never edit `vault/` (the off-limits CC-VPS Obsidian vault — different operator).
- Per `HQ-Vault/_System/CLAUDE.md`: append-only on daily notes, `_Log.md`, and `_AgentLog/`. No deletions; move to `_Archive/`. Read-before-edit.
