๐ก Client / Frontend static/ ยท templates/ โ served by Flask
๐ฅ๏ธ Single-Page App
static/app.js
~13k lines ยท workflows, Visual Designer, agents, connectors, admin
โ๏ธ PWA Shell
static/sw.js ยท manifest.json
Service worker cache cw-v9 ยท offline shell
๐จ Styling
static/style.css ยท themes.css
Dark/light themes ยท icons/ ยท logo.svg
๐ Jinja Shells
templates/*.html
2 server-rendered entry pages
โผ HTTPS ยท ingress โ app.brainzbytes.com โผ
๐ง Application Core the controller โ everything routes through here
app.py
Flask ยท gunicorn ยท port 5080
12,620 lines ยท 246 routes
agent 23
workflows 20
connectors 18
visual-designer 15
user/auth/groups 24
indexes 11
sources 10
designer 10
config 9
plugin-library 8
workspaces 8
engines 6
cluster 5
sim 4
+ pages 27
โผ delegates by domain โผ
๐งฉ Core Domain Modules top-level *.py โ focused responsibilities
๐ค AI / Agent
agent.py ยท sim_mode.py
Agent loop, tool-calling ยท sim/offline mode
1,654565
โก Workflows
workflow_engine.py ยท scheduler.py
step engine ยท interpolation ยท cron scheduler
661184
๐ Plugins / Connectors
connector_catalog ยท plugin_codegen
plugin_builder ยท plugin_resolver
Catalog, codegen, build & resolve plugins
1,77980872060
๐ RAG / Ingest
ingestor.py ยท source_validator.py
Crawl, chunk, embed & validate sources
580220
โผ
๐ Infrastructure Clients the only modules that talk to Azure
โ๏ธ Azure Clients
azure_clients.py
Cosmos ยท AI Search ยท OpenAI ยท workload identity
319
๐ Vault Client
vault_client.py
User-scoped credentials in Key Vault
366
๐ Bootstrap
launch.py ยท config.json
Local entrypoint & runtime config
39
โผ persists / reads โผ
๐๏ธ Azure Data & AI Services always-on โ external to the container
๐ช Cosmos DB
cw-cosmos-brainzbytes ยท db: cerebro
workflows ยท runs ยท designs ยท plugins ยท audit
๐ AI Search
cw-search-brainzbytes
RAG vector + keyword index
๐ง Azure OpenAI
devpilotx-openai ยท gpt-5-chat
Chat + embeddings deployments
๐ Key Vault ยท ACR
kv-brainzbytes ยท brainzbytes.azurecr.io
Secrets ยท container images
โโโโโโโโโโ separate control plane โโโโโโโโโโ
๐ก๏ธ Governance Platform platform/ โ MCP engine control plane
โ๏ธ MCP Engine Operator
platform/mcpengine_operator/
K8s operator + admission webhook ยท CRDs
operator.pyvalidator.pycrds/
๐ Policy Engine
platform/policy_engine/
Rules, audit, identity ยท hard-block guardrails
engine.pyrules.pyaudit.py
๐ Cross-Engine
platform/cross_engine/
Multi-engine orchestration & handoffs
invoker.pyresolver.pyworkflows.yaml
๐ Eval Harness
platform/eval_harness/
Per-engine eval cards ยท graduation ยท auto-pause
cards/identity/webhook_receiver/
โผ governs โผ
๐ง MCP Engines engines/ โ per-vertical runtime, declared in AGENTS.md
๐งฑ Engine Base
engines/mcp-engine-base/
Shared MCP runtime (server.py + Dockerfile)
๐ณ Vertical Services
engines/credit-card-service ยท email-service
Example per-vertical engine implementations
๐ 8 Declared Engines
AGENTS.md registry
sre ยท code ยท sfi ยท specs ยท dependency ยท pipeline ยท release ยท glue
โโโโโโโโโโ packaging & deploy โโโโโโโโโโ
๐ฆ Build ยท Deploy ยท Infra packaging onto AKS
๐ณ Docker
Dockerfile (+ workbench, code-server)
Builds cerebro-app image via ACR Tasks
โ Helm Charts
helm/
cerebro-app ยท mcp-engine ยท code-server ยท jupyterhub ยท monitoring ยท workbench
๐ Pipelines
pipelines/
azure-pipelines.yaml (CI/CD id 7) ยท resource-control.yaml (id 8)
๐๏ธ Terraform ยท Docs
terraform/ ยท docs/ ยท notebooks/
1.3 GB IaC ยท architecture pages ยท guides