NOTEDASHBOARD
filipdopita-tech

codex-ai-control-plane

Codex + Claude Code AI control plane — ofs dispatcher, router, monitor, security audit, Obsidian dashboard, mobile dispatch via Hermes. OneFlow stack.

OneFlow AI Ekosystém — Filip Dopita

Solo-founder AI control plane: Mac (8GB) + 2× VPS + telefon + Obsidian, orchestrované přes Claude Code (orchestrator) a Codex (impl agent). Single entry point: ofs.

Snapshot 2026-05-04: 292 skills · 96 agents · 69 hooks · 14 MCPs · WireGuard mesh · Mutagen sync · 20+ launchd/cron jobs.


Pro kolegu — kde začít (5-min orientace)

  1. Architektura na jeden pohled: ECOSYSTEM-DIAGRAM.md — ASCII layered view (harness → infra → knowledge → externí touchpoints).
  2. Operating manual pro Codex agenta: AGENTS.md — 4 sacred rules + handoff contract + verify gate.
  3. Nejnovější closure (jak vypadá "hotová" wave): AI-CONTROL-PLANE-CLOSURE-2026-05-04.md.
  4. Patterns worth stealing — viz sekce dole.
  5. Live entry point: ofs status → 1 příkaz, full snapshot.

TL;DR (denní použití)

ofs status            # full snapshot (Mac, VPS, sync, queue, CLIs)
ofs route "task"      # auto routing — lean Codex / full Codex / Claude review / strategy
ofs delegate "task"   # přímo do Codexu (impl v souborech)
ofs review "task"     # Claude review/risk gate
ofs verify <path>     # anti-halucinace gate (real git diff vs claims)
ofs data-os audit     # Claude Code scraping/ads/data-growth capability audit
ofs data-os init run  # založí auditovatelný data/ads/scraping run folder
ofs data-os remote "task"
                      # sync ekosystému → Flash VPS → phone/VPS-first data task
ofs security-assess ai-control-plane/security/profiles/<target>.env
                      # autorizovaný read-only web security baseline
ofs mac               # Mac RAM/swap/CPU detail
ofs vps               # VPS Flash health
ofs handoffs          # poslední Codex/Claude handoffs (audit trail)
ofs logs              # ofs audit log
ofs help              # všechny commands

Architektura

Filip
  ├─> Mac (8GB RAM, terminal + Claude Code)
  ├─> Telefon (Telegram dispatch — vyžaduje Hermes Agent up)
  └─> Browser → Obsidian dashboard (Vault-OS-Hub)
        │
        ▼
   `ofs` dispatcher (single entry point)
        │
   ai-control-plane router (route-task.sh)
        │
   ┌────┴───────────────────┐
 Codex CLI            Claude CLI
 (impl, repo)         (review, strategy, long context)
        │
   Mutagen + WireGuard + SSH
        │
   VPS Flash (12GB, 24/7, 10.77.0.1)
   ├ Conductor (file-based task queue + workers)
   ├ Hermes Agent (multi-platform gateway: Telegram/Discord/Slack/WA)
   ├ Paseo (agent UI, WG-only :6767)
   ├ Dovecot + Postfix (oneflow.cz mailbox)
   ├ Caddy + scrapers + ntfy.oneflow.cz
   ├ jobs-cz-system (reverse-recruiter scraper, daily 06:30)
   └ Cron heavy work + Prometheus/Grafana/Loki

   Alfa VPS (CZ IP relay, SMTP backup, Wedos legacy)

4 core mantras (immutable)

  1. Výsledek > Proces — měřitelný outcome, ne plán
  2. 0 halucinací — verify-before-claim, [VERIFIED]/[LIKELY]/[GUESS]/[UNCERTAIN]
  3. Token efficiency — VPS-first, model tier (Haiku → Sonnet → Opus)
  4. Security-first — secrets v env files (sops+age), audit log, no RCE surface

Komponenty (co kde běží)

AI Control Plane (ai-control-plane/scripts/)

SkriptÚčel
ofs.shSingle entry point dispatcher
route-task.shSofistikovaný router se scoringem (auto / lean Codex / full Codex / Claude)
delegate-to-codex.shClaude → Codex bridge s verify gate (AI_BRIDGE_VERIFY=0 to disable)
ask-claude-review.shRisk gate review (read-only)
ask-claude-strategy.shStrategy/architecture (no edit)
verify-codex-result.shAnti-halucinace — real git diff vs claimed changes
resource-monitor.shMac+VPS+queue load (5min cron → JSONL)
usage-tracker.shAnthropic+OpenAI consumption (daily 09:00)
obsidian-dashboard.shAuto-update Ecosystem-Status.md (15min)
security-audit.shWeekly defense-in-depth scan (Sat 03:30)
update-extended.shMCP+Codex+npm+brew (manual nebo weekly)
update-core.shgcloud+brew+VS Code ext (Sat 04:15)
doctor.shFull diagnostic
codex-bridge-smoke.shDaily smoke test (launchd 10:15)
mcp-process-audit.shMCP runaway process detection
oneflow-dnssec-watch.shWatches oneflow.cz DS propagation after Wedos KEYSET submit
cloudflare-publish-sister-dmarc.shDMARC/SPF/DNSSEC ops pro 6 sister domén

Sub-projects (volitelné, samostatné READMEs)

PathCo to je
jobs-cz-system/Reverse-recruiter pipeline. Scraper jobs.cz + prace.cz + StartupJobs → warm-signal scoring → leads.csv. Daily 06:30.
research-briefings/YYYY-MM-DD/data-growth-*Mac-side Data Growth OS run folders: raw/clean/evidence/report/source-ledger/verification pro scraping, ads intel a lead-gen běhy.
VPS /root/data-growth-runs/runs/YYYY-MM-DD/data-growth-*Flash-side remote-first run folders pro phone/VPS odbavení bez Mac RAM bottlenecku.
research-briefings/Strukturované deep-research briefy (industry, competitors, ecosystem audit).
ai-control-plane/Plán, runbooky, recovery docs, optimization specs.

VPS-side komponenty (NE v repu, jen reference)

KomponentLokaceÚčel
ConductorVPS /opt/conductor/File-based task queue, free-LLM workers (OpenRouter)
Hermes AgentVPS /usr/local/bin/hermesMulti-platform gateway (Telegram/Discord/Slack/WA/Email)
PaseoVPS :6767 (WG-only)Agent UI
jobs-cz-systemVPS /root/jobs-cz/Live scraper (storage_state, Playwright)
Prometheus + Grafana + LokiVPSObservability stack (7 alerts, 9-panel dashboard)
Postfix + DovecotVPS Flashdopita@oneflow.cz mailbox + SMTP relay
health-probeVPS systemd timer7 health checks every 5 min → JSON → Loki

Cron / launchd schedule (Mac side)

JobFrequencyPurpose
com.filipdopita.resource-monitorevery 5 minMac+VPS metrics → JSONL
com.filipdopita.obsidian-dashboardevery 15 minAuto-update vault dashboard
com.filipdopita.usage-trackerdaily 09:00Cross-provider usage summary
com.filipdopita.claude-history-indexhourlyIndex Claude Code transcripts pro /recall
com.oneflow.codex-bridge-smokedaily 10:15End-to-end Codex bridge smoke test
cz.oneflow.oneflow-dnssec-watchevery 30 minWatch oneflow.cz DS propagation, ntfy once complete
com.oneflow.li-token-monitordailyLinkedIn OAuth refresh status
com.oneflow.daily-ekosystem-healthdaily7-dim health audit
cz.oneflow.ai-radar-dailydaily 03:35External tool radar + cross-ref
cz.oneflow.ai-radar-weeklyMon 08:00Weekly deep-effort radar (top-10 falsification)
cz.oneflow.weekly-retroSun 09:00Eval + retro batch
cz.oneflow.security-alertvariousSecurity findings → ntfy
com.oneflow.hibp-defensive-monitormonthlyHave-I-Been-Pwned own domains
com.oneflow.huashu-design-updateweeklyDesign system templates refresh
com.oneflow.backupdaily 04:00sops+age encrypted backup, rsync offsite
com.oneflow.tereza-hunter-monthlymonthlyOSINT cherry-pick refresh
com.oneflow.nextjs-dashboardvariousInternal dashboard build
com.oneflow.monologue-restartvariousMonologue agent watchdog
cz.oneflow.openspace-tunnelalways-onOpenSpace SSH tunnel keepalive
Mac cron obsidian syncevery 5/30 minmemory→vault, VPS→vault
Mac cron ecosystem_health_checkevery 10 minSelf-healing infra (WG, Mutagen, agents)

VPS-side má dalších ~15 timers (postfix exporter, jobs-cz refresh, backup, prom-textfile-collector atd.).


Recovery

VPS Flash down? → ai-control-plane/RECOVERY-VPS-FLASH.md (2-min UI klik na my.contabo.com).

Mac context corrupt po session crash? → CLAUDE-CODE-CONTEXT-REPAIR-2026-05-04.md.

Mac performance degraded? → perf-status.sh (dashboard), perf-tune.sh (apply known-good settings), perf-recovery.sh (SIGCONT freeze release). Detail v PERF-TUNING-2026-05-04.md.


Onboarding nového sezení

# 1. Verify install
which ofs                         # → ~/.local/bin/ofs

# 2. Quick health
ofs status                        # full snapshot (Mac+VPS+queue+CLIs)

# 3. If VPS down
cat ~/Desktop/Codex/ai-control-plane/RECOVERY-VPS-FLASH.md

# 4. Heavy task → VPS, light → Mac
ofs mac                           # check Mac load first
ofs route --here "your task"      # let router decide

# 5. Mobile (Hermes Agent on VPS)
ofs phone                         # Telegram bot info

Bezpečnost

  • Žádné hardcoded secrets — ~/.credentials/master.env (chmod 600) + sops+age (58 keys encrypted)
  • Bridge skripty bind 127.0.0.1 nebo WireGuard only
  • gitleaks pre-commit hook + GitHub secret-scanner
  • 5 critical defense hooks (autonomy-guard, gitleaks-guard, google-api-guard, hallucination-guard, completion-blocking-words-guard)
  • Anti-halucinace gate after every Codex delegation (verify-codex-result.sh)
  • ntfy fallback chain: VPS local → ntfy.oneflow.cz → macOS native
  • VPS SSH: key-only, fail2ban, UFW, WireGuard tunnel-only management
  • Audit trail: ~/.claude/logs/ofs.jsonl + handoffs/ folder
  • DMARC reject + adkim=s + aspf=s + MTA-STS enforce 7d + DNSSEC
  • Daily encrypted backup (sops+age, ~75MB), weekly restore drill, offsite rsync

Patterns worth stealing (pro tvůj vlastní setup)

Pokud chceš inspiraci pro vlastní AI control plane, mrkni primárně na:

  1. Single entry point dispatcher (ofs.sh) — místo 20 různých CLIs jeden router. Snižuje kognitivní zátěž a context switching.
  2. Anti-halucinace verify gate (verify-codex-result.sh) — po každém AI handoffu real git diff vs claimed changes. Eliminuje "AI tvrdí že hotovo, ale není".
  3. Cost-aware routing (route-task.sh) — auto rozhodne lean vs full mode podle scope. Šetří 50–80% nákladů.
  4. Handoff contract (AGENTS.md) — strukturovaný report (changed files, verification, confidence per claim, residual risk). Funguje pro Codex i Claude.
  5. Resource-aware delegation (resource-monitor.sh) — Mac 8GB má hranice. Auto-routing se vyhne stresing local kdykoli VPS up.
  6. Memory + recall cascadegrep MEMORY → memory-search MCP → Obsidian → graphiti. Kontextový recall přes 4 vrstvy bez halucinací.
  7. Falsification-first reasoning — pro high-stakes outputs steelman opozice před final response. ~/.claude/rules/anti-hallucination.md.
  8. Hard-stop zone — Claude se ptá JEN u 5 přesně definovaných zón (platby, odeslání zpráv, destrukce, FB login, strategie >100k Kč). Vše ostatní = autonomous.

Stav (k 2026-05-04)

  • AI control plane: production, daily smoke PASS, verify gate v2.1, DNSSEC KEYSET submitted and authoritative DS visible; remaining browser gates are external token/product decisions, not local defects.
  • jobs-cz-system: Phase 1+2+3 LIVE, 3 portály (jobs.cz + prace.cz + StartupJobs), warm-scoring, cross-portal dedup, daily 06:30.
  • Email infra: TOP state — DMARC reject, MTA-STS enforce, oneflow.cz DNSSEC KEYSET + authoritative DS at CZ.NIC; unregistered sister names are not applicable until purchased.
  • Backup + observability: 10/10 — sops+age, daily encrypted backup, Prometheus+Grafana+Loki, 14 oneflow_* metrics, weekly restore drill.
  • Performance tuning: bullet-proof — 6 env vars optimized, master scripts (perf-status/tune/recovery), Mac SIGSTOP-able heavy procs.
  • Codex bridge: verify gate v2.1 (HEAD direction tracking forward/rewound/diverged), eliminuje false-positive REVIEWs.

Dokumentace (interní pointers — pro Filipa)

  • Master blueprint: ~/.claude/projects/-Users-filipdopita-Desktop-Codex/memory/project_codex_bridge_overview_2026_05_02.md
  • Active rules: ~/.claude/rules/{anti-hallucination,completion-mandate,prompt-completeness,hard-stop-zone}.md
  • Knowledge router (lazy): ~/.claude/rules/knowledge-router.md
  • Workflow routing (auto-trigger skills): ~/.claude/rules/workflow-routing.md
  • Data Growth OS: ~/.claude/skills/data-growth-os/SKILL.md + ofs data-os audit
  • VPS infra: ~/.claude/projects/-Users-filipdopita/memory/infra_vps.md
  • Sync architecture: ~/.claude/projects/-Users-filipdopita/memory/reference_sync_architecture.md

Dopita

Related

How to Install

  1. Download the dashboard markdown file from GitHub
  2. Drop it into your vault (anywhere)
  3. Install the Homepage plugin and point it at the file
  4. Enable any listed CSS snippets for the intended look

Stats

Stars

0

Forks

0

Last updated 1mo ago

Categories