affiliatepreneurs-os/doctor
knowledge core

Doctor

pillar health — live roster + runs + SOP coverage
SALESFINANCESCLIENTSMARKETINGTECHCOMMUNICATIONS
80/ 100 health
doctor — okno agent runs yet
hybrid search verifiedsupabase reachable
AGENTS · 7980HEALTH / 100GBRAIN V0.41BRAIN-STORE · 79 PAGESZEROENTROPY · EMBEDDINGSSUPABASE · 1240 PAGES · PAUSED
Storage layers
gbrain CLI
v0.41 · gbrain CLI · doctor --fast
LIVE
brain-store/
/app/data/brain-store · markdown knowledge
79 pages
ZeroEntropy
hybrid-search embeddings · key in ~/.config/knowledge
LIVE
Supabase Second Brain
Remote vector store · status from live doctor check
LIVE
doctor — health 80/100all green
Operational dependency audit27 live checks

A connector is only operationally important when a used agent depends on it. Unused optional connectors are reported for setup, but do not block the system.

G-Brain
gbrain ok · health 80/100 · 79 local pages in brain-store
LLM (Smart Cascade)
Set AI_GATEWAY_API_KEY or OPENAI_API_KEY / OPENROUTER_API_KEY in .env.local to enable agent chat.
Royal MCP
ROYAL_MCP_URL and ROYAL_MCP_API_KEY are required.
Google
Authorize one Google account to connect Google services.
WhatsApp
ChatStorage.sqlite not found. Is the WhatsApp (or WhatsApp Business) desktop app installed and signed in?
Zernio (Social)
ZERNIO_API_KEY not found in env, ~/.config/social/.env, or knowledge/.env.agents.
Beehiiv (Email List)
Set BEEHIIV_API_KEY + BEEHIIV_PUBLICATION_ID in .env.local.
ManyChat (IG DMs)
Set MANYCHAT_API_KEY in .env.local (ManyChat → Settings → API).
Attio (CRM)
ATTIO_API_KEY not found in env or ~/.config/mcp.json mcpServers.
WebinarJam
Set WEBINARJAM_API_KEY in .env.local to pull Launchpad Cohort webinar registrants & attendees.
Trakyo
Revenue attribution (content → calls → payments) for Launchpad Cohort. Set TRAKYO_API_KEY once Trakyo exposes an API.
Meta Ads
Paid-funnel attribution (ad → opt-in → purchase) for Vantage + Launchpad Cohort. Set META_ADS_ACCESS_TOKEN to wire the Meta Ads MCP.
GoHighLevel
Launchpad Cohort pipeline (owner@example.com). Set GHL_API_KEY (Private Integration token) + GHL_LOCATION_ID in .env.local.
Viator
Set VIATOR_API_KEY and VIATOR_PARTNER_ID
Arcads (UGC Ads)
ARCADS_BASIC_AUTH not found in env.
21st.dev (Magic UI)
TWENTYFIRST_API_KEY, 21ST_DEV_KEY, or API_KEY_21ST required for Magic UI component platform
Wispr Flow
flow.sqlite not found — is Wispr Flow installed?
Local Stack
0/9 up — · down: command-center, remotion, ollama, openclaw, tmux, whisper, ffmpeg, higgsfield, gh
Notes Vault
Vault not found at /root/Documents/Notes Vault — set OBSIDIAN_VAULT to override.
Miro
MIRO_ACCESS_TOKEN not found in env or knowledge/.env.agents.
WordPress
Missing WORDPRESS_URL, WORDPRESS_USERNAME, or WORDPRESS_APP_PASSWORD
Elementor
WordPress connection required - configure WORDPRESS_* environment variables
Email Inboxes
No inboxes configured. Set INBOX_1_HOST / _USER / _PASS (up to 4 slots) in .env.local.
Calendar
No Google inboxes configured — calendars reuse the INBOX_* Gmail app passwords.
Slack
Set SLACK_BOT_TOKEN (xoxb-…) in .env.local. Needs channels:read, channels:history, users:read scopes.
Payment Processors
None of 6 processors configured. Start with STRIPE_SECRET_KEY in .env.local.
Notion
Set NOTION_API_KEY (internal integration secret) in .env.local and share target pages with it.
No agent runs recorded yet; readiness is configured, not proven by execution.
Pipeline79 pages on disk
1

Markdown brain-store

/app/data/brain-store
79 pages on disk, plain .md files — the source of truth. gbrain sync walks the git repo and pushes changed pages up.
  • agents79
sync · import→
2

gbrain CLI

chunk · embed · route — the engine between disk and database
80/ 100 health
  • markdown-store — 79 pages available
putgetquerysearchsyncimportexportdoctor
embed · upsert→
3

Supabase Postgres + pgvector

"Second Brain" · ZeroEntropy embeddings
79
pages · on disk
—
chunks · not reported

Each page is split into chunks; every chunk gets a ZeroEntropy embedding stored in a vector column. Postgres holds both the text (tsvector) and the vectors, so one database answers keyword and semantic queries.

Free tier pauses on idle — when hybrid queries fail, unpause from the Supabase dashboard. The brain-store on disk keeps working regardless.

Query path

What happens when an agent calls gbrain query — hybrid retrieval with an honest fallback.

Question
Natural-language query from you or an agent run.
expand→
Query expansion
The CLI rewrites the question into search variants (skip with --no-expand).
fan out→
Keyword search
Postgres tsvector full-text match over chunk text.
Vector search
pgvector nearest-neighbor over ZeroEntropy embeddings.
merge→
RRF fusion
Reciprocal-rank fusion merges both result lists into one ranking.
answer→
Ranked snippets
Top pages with snippets, returned to the agent.
Fallback: local grep
If Supabase is paused or unreachable, affiliatepreneurs os greps the markdown brain-store directly — fewer smarts, zero downtime.