System Architecture
Barbarian Agent Agency — Infrastructure Overview · April 2026
Hardware
Local Server SERVER
- All runtime workloads
- Docker: Postgres, FastAPI, n8n, Flask
- Cloudflare Tunnel (zero inbound exposure)
- Dedicated on-premise infrastructure
Laptop — MRC_XPS_2025 LAPTOP
- All code repos + development
- Cloudflare Pages Deploy via Wrangler
- Claude Code sessions
- No Python, no Docker
Infrastructure
Docker (Server)
- barbarian_db — Postgres
- barbarian_api — FastAPI
- barbarian_n8n — n8n
- barbarian_webhooks — Flask
FastAPI
- Port 8000, tunneled via Cloudflare
- Portfolio simulate, prices,
- returns, securities, treasury
- Intel scalers API (Phase 2)
Postgres
- barbarian schema, 19+ tables
- 1.46M+ price history rows
- 227 securities
- Equities, fixed income, crypto,
- commodities, volatility, FX
n8n (19 workflows)
- 5 BAA Queue runners
- 5 Scout intel pipelines
- 2 Hermes health + audit
- Analyst + Coach Brief
- 4 legacy Barbarian-*
Cloudflare
- 5 Pages sites
- 1 Worker
- Tunnel → data.riskdimensions.io
- DNS for all domains
GitHub
- riskdimensions org
- 4 repos
- rd-memory → auto-pull server
- riskdimensions-site → CF Pages
Connectivity — Three Ways In
Local LAN 192.168.1.x
- Home network direct access
- Zero auth, zero latency
- Daily development path
Tailnet Mesh LIVE 4/22
- Private WireGuard mesh
- Tailnet riskdimensions.io (100.x.x.x)
- Laptop + server + phone
- RDP / psql / SMB / webhooks from anywhere
- Zero inbound ports
Public Tunnel CF TUNNEL
- data.riskdimensions.io
- Outbound-only from server
- Fronts FastAPI for Scorecard, PA,
- future RD Data API clients
- Zero inbound ports
Products
The Scorecard ↗
Proprietary risk dashboard. React + Cloudflare Worker proxying FastAPI data.
global-scorecard.riskdimensions.io
Portfolio Analyzer ↗
Multi-asset tear sheets, BTC optimizer, correlation analysis.
portfolio.riskdimensions.io
Company Website ↗
Brand + marketing. GitHub → Cloudflare auto-deploy.
riskdimensions.io
Substack + NBP Podcast ↗
The Macro Case for Bitcoin. Co-hosted with Bill.
markrconnors.substack.com
AI Agents — Barbarian Agent Agency (BAA)
Coach LIVE
CEO. Mark's thinking partner. Strategy, synthesis, drafting. Powered by Claude.
External Events Curator: PENDING
Pass 2 scorer with calibration loop — validates taxonomy, scores 1–5 against Mark's frameworks, writes Mark View editorial line at score ≥4.
Hermes LIVE
COO. System health monitoring — weekly digest Mon 6:45 AM ET. Agent coordination, workflow audit, sync log tracking.
Clerk LIVE
Scribe. Email ingestion, classification, CRM. Tiered triage output. Hot-intent bridge to BAAEC pipeline live. Contacts pipeline: Postgres master → Notion CRM view.
Analyst LIVE
Emissary. Portfolio analytics, data pipelines, price feeds. Powers Scorecard. Haiku-based Pass 2 scorer live. Authors market_observations.ts.
Producer PENDING
Content production. Podcast, social, Substack support. Spec in progress.
BAA Queue LIVE
Approval inbox. Agent proposes → Mark approves → n8n executes → Postgres logs. Handlers: notion_update, git_commit, email_draft.
Intelligence Pipeline — The Compounding Moat
The power is not in any single agent or piece of code. It is in the orchestration — and in Mark's ongoing engagement that compounds it over time.
The Three-Pass Intel Loop LIVE
Memory Architecture — Compound Intelligence
Master Memory (rd-memory)
Institutional knowledge base. CLAUDE.md, agent specs, frameworks, first principles, brand assets. Loaded into every AI session automatically.
Agentic Memory
Session-by-session learning. Feedback, preferences, project state, and validated decisions written to persistent memory files. Compounds across every Claude Code session.
Organic Input
- Mark's decisions + feedback
- Session corrections + confirmations
- Architecture changes + new specs
- Coach synthesis + framework updates
External Input
- Scout: FMP news + 13-source RSS (every 4h)
- Clerk: email ingestion + classification
- Analyst: FMP price feeds (daily)
- Notion: CRM, todos, NBP intake