Domain Architecture
Status: Production (6 active domains)
Overview
Section titled βOverviewβThe agent system is organized into life domains, each with its own configuration, personality (SOUL.md), state files, automation scripts, and specialist agents. A CEO orchestrator aggregates all domains into an executive summary.
Domain Inventory
Section titled βDomain Inventoryβ| Domain | Color | Status | Key Integrations |
|---|---|---|---|
| Family | Amber #F59E0B | Active | Skylight, Google Calendar, Google Sheets |
| School | Blue #3B82F6 | Active | Canvas LMS, ChromaDB RAG, Plaud/Whisper |
| Work | Teal #14B8A6 | Active | Gmail, LinkedIn |
| Consulting | Purple #8B5CF6 | Active | Gmail, CRM contacts |
| Growth | Emerald #10B981 | Active | Brave Search, X API, docs site |
| AI Foundry | Rose #F43F5E | New | Curriculum tracking, Google Docs |
Directory Structure (per domain)
Section titled βDirectory Structure (per domain)βdomains/{domain-name}/βββ config.yaml # Domain configurationβββ SOUL.md # Personality, values, communication styleβββ CLAUDE.md # Auto-generated session instructionsβββ state/β βββ report.md # Latest heartbeat reportβ βββ tasks.yaml # Active tasksβ βββ {specific}.yaml # e.g., grades.yaml, pipeline.yamlβββ memory/β βββ {domain}-profile.md # Accumulated knowledgeβββ scripts/ βββ *.sh # Automation scriptsconfig.yaml Schema
Section titled βconfig.yaml Schemaβname: "Domain Name"slug: domain-slugcolor: "#HexColor"icon: "emoji"owner: "owner-name"status: active | paused | archivedpriority: 1-5
tools: # MCP servers this domain uses - google-calendar - canvas-lms
specialists: # Sub-agents - name: "Agent Name" role: "description" trigger: "cron or event"
schedules: # Cron jobs - name: "Daily Sync" cron: "0 7 * * *" script: "scripts/sync.sh"
dashboards: - name: "Main Dashboard" url: "/domain-slug"CEO Orchestration
Section titled βCEO OrchestrationβAggregation Flow
Section titled βAggregation FlowβDomain heartbeats (4-6h intervals) βββ Each domain runs domain-heartbeat.sh β updates state/report.md β βΌceo-aggregate.sh (nightly) βββ Reads all domain reports β executive-summary.md β βΌdomain-sync.sh (every 15 min) βββ Reads all configs + reports β state/domains.json β βΌNerve Center v5 /api/domains βββ Serves to dashboardScripts
Section titled βScriptsβ| Script | Schedule | Purpose |
|---|---|---|
| domain-heartbeat.sh | 4-6h | LLM-powered domain check-in |
| ceo-aggregate.sh | Nightly | Executive summary compilation |
| domain-sync.sh | Every 15 min | Lightweight JSON state generation |
| create-domain.sh | On demand | Bootstrap new domain from template |
Shared Services
Section titled βShared ServicesβCEO-level teams callable by any domain:
- dev-team β code generation, debugging, deployment
- presentation-agent β deck building (Deck Architect)
- research-agent β deep research via multi-model pipeline
- design-agent β UI/UX design decisions
Adding a New Domain
Section titled βAdding a New Domainβ- Run
create-domain.sh {slug}to bootstrap directory structure - Edit
config.yamlwith domain-specific settings - Write
SOUL.mdwith personality and values - Create initial state files
- Add automation scripts
- Register in project registry
- Add route to Nerve Center dashboard
- Run
domain-sync.shto propagate