The operating system behind Prime Network, Prime Automation Solutions, content,
trading, government opportunity scanning, and autonomous customer delivery.
Event-driven. LLM-routed. Self-correcting — with a real safety layer, not magic autonomy.
One operator · four-node fleet · one event bus · one LLM gateway
The Closed Loop DETECT → LEARNEvery signal becomes an action. Every action becomes a measurement. Every miss becomes a fix.
One feedback loop, end to end
Nothing in the system is fire-and-forget. Each step emits an event, and the next step listens for it. When a step fails, the safety layer catches it before the operator ever sees it — or escalates if it can't.
DETECT
→
PUBLISH EVENT
→
ROUTE
→
EXECUTE
→
REVIEW
→
DEPLOY
→
MONITOR
→
RECOVER
→
LEARN
DETECT Government Scanner finds a new federal opportunity matching a tracked NAICS / vendor profile.
ROUTE PrimeRouter picks the right workflow, injects project context, queues a Claude executor.
EXECUTE Claude drafts an outreach email, capability statement, or teaming note.
REVIEW PrimeDash surfaces the draft for status — or for operator approval if the workflow demands it.
DEPLOY SES / Apollo sends or queues the outreach.
MONITOR A reply, bounce, or deadline change comes back through the Email Reactor.
RECOVER If the response is a fail signal, the immune system either auto-fixes (Echo notifier) or escalates to #echo-dev.
LEARN DevPulse updates state — the next workflow run starts smarter.
Control Plane COREThe four systems that make everything else possible.
🔌
PrimeBus
LIVE
The event nervous system. NATS JetStream backbone connecting scanners, the website pipeline, email reactor, PrimeRouter, rollback & review agents, Discord, and PrimeDash. Every meaningful state change in the empire publishes here.
LLM gateway and execution router. Handles queue-based Claude execution, project context injection, token ceilings (30M / 5h with self-correcting 429 backoff), retry behavior, JSONL + OTEL dual usage tracking, and workflow dispatch. Every Claude-powered service in the fleet runs through it.
The command center. Submits and tracks workflow runs across the fleet. Row-click detail modal, opt-in SES notify (5 verified From identities), text-peek button, clean status column. Surfaces runs that need operator input (replies, approvals) instead of failing them silently. WAN access via Cloudflare Tunnel + Access once V1 soaks clean.
SHOWS
run statusoperator-input questionsrecent reviewssystem health
SQLiteSES notify116 tests
🧠
DevPulse MCP
LIVE
The memory and state layer. MCP server that gives Claude an up-to-date picture of every project: inventory, git state, GAMEPLANs, Docker / cron health, recent activity. Summarizes GAMEPLANs every 4 hours, regenerates the master /opt/GAMEPLAN.md, tracks weekly metrics. Without this, every Claude session starts cold.
/opt/claude-memoryMCPevery 4h/morning-ops
Input Layer SCANNERS & SOURCESAnything that turns the outside world into a tracked event.
🏛️
Government Scanner
ACTIVE
Finds government contract opportunities, tracks primes, identifies vendor-entry and demand-creator contacts, and turns opportunities into outreach and workflow events. Tier-1 mega-prime pivot lane shipped in prime_tracker.py — 5 primes seeded, Apollo ingest, portal tracker. SDVOSB / VOSB outreach templates corrected.
Scans business websites for obvious failures — outdated sites, bad mobile experience, missing CTAs, broken trust signals. Findings become sales opportunities for PAS web/automation work. Each flagged site becomes an event the outreach layer can consume.
FEEDS OUT
→ PAS lead pipeline→ Apollo outreach campaigns→ PrimeBus events
scan-then-pitchmobile-firstCTA audit
📇
Business Scanner / Apollo Lead Engine
ACTIVE
Lead acquisition layer for PAS. Pulls and account-enriches prospects, routes them into outreach campaigns, and records response signals so future runs prioritize what's working. PrimeProspector SMB batch 1 sent 2026-04-23; 14-day follow-up cron live on Echo.
FEEDS OUT
→ SES outreach→ Twenty CRM→ PrimeDash queue
Apollo.ioPrimeProspector14-day follow-upSES
📥
Email Reactor (inbound)
LIVE
The inbound side of the customer loop. SES → webhook → classifier → PrimeBus event. The execution side of this same service appears in the Execution Layer below as part of the Autonomous Website Factory.
Stripe checkout.session.completed webhook is the most important inbound event the system has — it kicks off the entire Autonomous Website Factory loop in roughly 15 seconds.
StripeFastAPIwebhook
📈
TradingView / Market Feeds
LIVE
Pine Script alerts fire webhooks into PrimeTrader. Plus yfinance, FRED, Alpha Vantage, Coinbase live prices for scanners and the daily market update bot.
TradingViewyfinanceFREDAlpha VantageCoinbase
📺
YouTube / Content Feeds
LIVE
Daily scrapes of crypto / market channels via the YouTube Data API. Source material for the YouTubeShorts pipeline (commentary → TTS → B-roll → render).
YouTube Data API8AM daily
Execution Layer DOERSWorkers that consume events and turn them into output.
🏭
Autonomous Website Factory
LIVE
The closed-loop customer delivery engine. Stripe payment → Gitea repo / subdomain / vhost provision → SES welcome → customer reply → Claude edits → feature branch / PR / Gandalf review / fast-forward deploy → SES "your updates are live" email → PrimeBus audit event. 43-second reactor loop. First customer: Finish Line Truck Parking (5★ Google review).
Execution arm of the Government Scanner input. Drafts capability statements, teaming notes, and outreach against tracked primes. Pivoted 2026-04-23 to Tier-1 mega-prime federal subcontracting lane.
prime_tracker.py5 primes seededApollo ingest
🎬
YouTubeShorts Pipeline
DAILY
Fully autonomous video factory. Channel scrapes → Claude commentary → ElevenLabs TTS → Pexels B-roll → renders 45s videos → uploads to YouTube + TikTok + Discord. Every 3rd video is a product promo.
8AM daily cronElevenLabsPexelsClaude Sonnet
🐦
Twitter Bot (@primex001)
ACTIVE
Automated presence engine. 2 original tweets/day, 1 weekly thread, 10-14 proactive replies/day, product promo rotation. Unfollows non-mutuals weekly. Reply-guy mode reopened 2026-04-22 with a staged human-in-loop gate.
Twitter API v27 daily windows
🎧
Build or Be Replaced Podcast
LIVE
Weekly podcast on AI, automation & building autonomous businesses. Fueled by ScanBrief intelligence briefings repurposed into episodes. Distributed via the143.com. Feeds the BOBR Discord community → PAS discovery funnel.
Multi-asset trading system. TradingView Pine Scripts fire webhooks → Claude AI enrichment → Coinbase execution → Discord trade cards. Plus an hourly scanner across 109 tickers. Canonical repo: Futures_Trade_Bot.git.
primenetwork.me/webhookCCXTPine Scripthourly cron
🔄
ProjectUpgrader
WEEKLY
Self-improving system. Reviews 2 projects per week (5-week rotation) through CEO, Product, and Startup Operator lenses. Updates each project's GAMEPLAN.md with strategic recommendations — which then get picked up on the next code change.
Sun 10AM cron3 review lenses
Immune System / Safety Layer HONEST AUTONOMYWhat catches bad deploys, broken health checks, stuck sessions, and missing context — or escalates when it can't.
🛡️
code reviewer / Gandalf
LIVE
Codex-backed reviewer scoring every push 0-10 against architecture and security rules. Diff → verdict in roughly 30 seconds.
TRIGGERED BY
git push to any watched repo
FAILURE MODE
score < 7 blocks mergedispatches Echo notifier for auto-fix
CodexPrimeBus{sha}~1..{sha}
📢
Echo notifier
LIVE
When Gandalf rejects a push, Echo notifier SSHs to Echo and dispatches Claude to auto-fix — rate-limited, with a verify-push guard so "Fix OK" can't lie about a commit that never landed.
TRIGGERED BY
review.failed event from Gandalf
FAILURE MODE
max 3 auto-fix attemptsthen escalate to Discord #echo-dev
Watches deploy-complete events for failure signals (health check fail, post-deploy error spike) and rolls the prod tree back to the last green commit. Emits rollback.complete for the audit trail.
TRIGGERED BY
deploy.complete + failed health check
FAILURE MODE
cannot fast-forward back => Discord alert + manual override path
PrimeBus consumergit reset --hard origin/<branch>
🗄️
PrimeRestorer
LIVE
Nightly off-host backups to S3. Tracks staged secrets (load-bearing .env paths, e.g. Twenty CRM) so a restore brings the service back, not a husk. Doesn't catch every kind of failure — but it's the last line.
TRIGGERED BY
nightly cron
FAILURE MODE
backup-write fail => Discord alert
S3env-backup staging
🌳
prod-tree-guardrail
LIVE
Hourly systemd timer on Neo. Scans /var/www/* for dirty trees that would silently block git pull --ff-only on the next deploy and posts a Discord alert. Phase 1 of Echo-as-dev-source. It does not auto-correct — it tells you so you can act.
FAILURE MODE
missed dirty file => deploy silently blocks; reviewed by next pipeline pass
hourly timerDiscord alertconfig.yaml exclusions
❤️
Health Checks
LIVE
primerouter-health.timer on Neo runs every 5 minutes. Uptime Kuma watches every public surface from Morpheus. Node Exporter + Grafana on the LAN. Discord is the alert channel of record.
Uptime KumaGrafanaNode Exporter
🔑
Manual Override Path
MANUAL REVIEW REQUIRED
Every autonomous loop has a kill switch. Gandalf can be disabled via DISABLE_* env vars in PrimeBus. Echo notifier auto-fix can be turned off the same way. Auto-merger can be paused. PrimeRouter has a reset_slot CLI for stuck Anthropic sessions. Autonomy is opt-in, not assumed.
PrimeBus .envDISABLE_*reset_slot
Revenue Subsystems ONE OF MANYBooks, content, and trading — one subsystem under the broader autonomous OS, not the whole story.
subsystem
The Revenue Flywheel
A specific loop inside the larger system: write → create → distribute → monetize → analyze → reinvest. It's how the content / trading / books pillars feed each other.
Portfolio analysis engine. Paste positions → 6 AI agents (Macro Strategist, Risk Manager, Portfolio Manager, Quant, Execution Optimizer, Engineer) → action plan with dollar figures. Web UI at primenetwork.me/rebalancer.
FastAPI142 tests
📊
Daily Market Update Bot
DAILY
Daily market updates to the Bespoke Investments Discord. BTC, SPX, QQQ, IWM, Gold, Oil via yfinance. Posts formatted market cards weekdays at 10:05 AM.
yfinance10:05 AM M-F
Websites (/var/www) 16+ DOMAINS
inkengine.ai
AI Book Writing Studio — primary SaaS product
primenetwork.me
System map + dashboard — webhooks, rebalancer, stats
erikandersonbook.com
Freedom Blueprint book site + lead magnet
primeautomationsolutions.com
B2B consulting — web dev, automation, AI
scanbrief.dev
Government opportunity briefs / scanning product
humanrail.dev
HumanRail product site + MCP server endpoint
humanrail.com
HumanRail marketing / redirect
erdtreeforge.com
Elden Ring build planner + leaderboards
primecryptronics.com
Prime Cryptronics LLC corporate site
bespokeinvestmentsgroup.com
Investment community + Discord hub
bluepeteraudio.com
Audio production / Blue Peter brand
primeassetsinc.com
Prime Assets Inc corporate site
freedomstack.io
FreedomStack card game landing page
primefi.net
FreedomStack playable game (primefi.net/play)
routehuman.com
HumanRail alternate domain
travelingentrepreneur.org
Traveling entrepreneur brand / blog
External Services 30+ INTEGRATIONS
Anthropic Claude API
Stripe Payments
Coinbase (CCXT)
AWS SES
Amazon KDP
YouTube Data API
ElevenLabs TTS
Pexels API
TikTok API
Twitter/X API v2
Discord (8+ webhooks)
TradingView
yfinance
FRED API
Alpha Vantage
Apollo.io
SAM.gov
Twenty CRM
Dev.to API
Cloudflare
Twilio
Lob (Direct Mail)
Lightning Network
Strike API
Supabase
Whisper (Mac M3)
Nginx
Docker
Gitea (private)
NATS JetStream
Server Topology 4 MACHINES
Neo (Bob-1)
Execution & control plane
Hosts the production service tree
Hosts every public website behind Nginx
Runs the event bus and the LLM gateway
Runs the command UI and memory layer
Runs the safety-layer timers
Runs the daily / weekly automation schedule
Morpheus (Bob-2 / Homer + Bob-5 / Gandalf)
Supporting infrastructure
Internal source-of-truth git host
Monitoring & uptime hub
Central observability collector
Internal CRM stack
Containerized infra services
Gandalf code reviewer (Codex-backed)
Bill (Bob-3 / Mac M3 Max)
Local AI & media workstation
Audio transcription for InkEngine
Heavy AI inference / local LLM host
iOS builds · TestFlight
Echo (Bob-4)
Dev / QA mirror of Neo
Full mirror of the production service tree
Origin of every code change in the system
Pre-commit hook blocks direct main/master commits
Daily auto-commit cron, routed through the pipeline
ProjectUpgrader deep review (Sun 10AM)DevPulse weekly metrics (Sun 8AM)Twitter track + coach (Sun 7PM / 8PM)ScanBrief source health (Sun 8AM)PrimeRebalancer quarterly reminderPrimeDistro cleanup (1st, every 2 months)
The Insight
The system is not a pile of cron jobs. It's an event-driven OS for one operator.
Inputs (scanners, customer events, market feeds) become events on PrimeBus.
Events get picked up by PrimeRouter, which spawns the right Claude session with the right project context and a real token budget.
Workers do the work. The safety layer (Gandalf, Echo notifier, RollbackAgent, PrimeRestorer, prod-tree-guardrail, health checks) catches the misses
— or escalates to #echo-dev when it can't.
PrimeDash shows what's happening, what needs operator input, and what just shipped.
DevPulse MCP remembers everything so the next run starts smarter.
One person. Four machines. 22 domains. 69 cron jobs. 30+ integrations.
Books, content, trading, government opportunities, and customer websites all run on the same backbone.
Autonomy is opt-in — every loop has a kill switch, every escalation has a human path.