Status: Production Phase β’ Architecture: Fractal switchboard (MOS) with 6-layer contract stack
Domicile demotes prompts beneath contracts, jurisdiction, and governed execution. Contracts > Prompts. The system learns while you sleep.
New to Domicile? Read these in order:
- VISION.md - What Domicile is and why it exists
- QUICK_START.md - Get running in 5 minutes
- SESSION_START.md - Agent session template
- ARCHITECTURE.md - Full technical architecture
All governance documents are in governance/ β these are non-negotiable invariants, not suggestions:
- governance/DOMICILE_MIRROR.md - Core Domicile invariants (SAFE, Context, Awareness, Exit)
- governance/MCP_ADMISSION_CONTRACT.md - MCP server admission requirements
- governance/OPEN_NOTEBOOK_MCP_AFFORDANCES.md - Open Notebook world affordances (exactly 11)
- governance/OPEN_NOTEBOOK_MCP_DESIGN.md - Open Notebook implementation specification
These files define what Domicile is, not what it aspires to be. They are normative, enforceable, and verifiable.
Domicile is the platform where:
- Humans contribute: Architecture, contracts, governance rules
- AI contributes: Execution within contracts, learning from outcomes
- System ensures: Neither party fails the other
- Humans can't perfectly articulate intent in natural language
- LLMs over-interpret or misinterpret instructions
- Neither party can trust the outcome
Every interaction is a contract (typed Zod schema), not a prompt. The policy engine governs execution. The Circadian loop learns overnight from decisions vs. outcomes.
- Agent Ecosystem Loop:
domicile/docs/agent-ecosystem.tsexplains how the monorepo maps to Foundation, Monetization, Resilience, and Observability divisions. - Semantic Refiner:
domicile/docs/ecosystem-semantic-refiner.tsdefines theIntentManifest, metabolic states, and Circadian pulses that the MCP/CLI pass around. - Agent Codex:
docs/concepts/agent-codex.mdlists every UPS (UnitβPerβSkill) persona with the rules that keep them in sync.
Domicile does not execute actions directly.
All execution occurs inside admitted jurisdictionsβexternal worlds that satisfy Domicile's admission contracts.
Currently supported:
- MCP-admitted worlds (Model Context Protocol)
MCP binds contracts to current reality by:
- enumerating available actions at session start
- exposing inspectable world state
- preventing implicit or invented execution paths
If something cannot be done, it is because it does not exist in the current worldβnot because the system "said no."
See governance/MCP_ADMISSION_CONTRACT.md.
domicile_live/
βββ packages/
β βββ core # Layer 2: orchestrator, policy engine, agent registry
β βββ agents # Layer 3: domain agents (financial, research, etc.)
β βββ contracts # Layer 4: schemas + task contracts
β βββ covenant # Layer 2 governance (trust, voice moat, oracles)
β βββ interface # Layer 1 (MCP server, CLI, HTTP entrypoints)
β βββ data # Layer 4 data plane (Pinecone client, trainpacks)
β βββ observability # Layer 5 telemetry dashboard + perf metrics
βββ docs/ # Architecture + Codex references
βββ scripts/ # Reset/start/stop helpers
βββ examples/ # Usage examples
cd ~/domicile_live
pnpm install # install workspaces
pnpm build # compile every package
pnpm test # run VitestCopy .env.example and configure:
cp .env.example .env
# Edit .env with your API keysRequired variables documented in .env.example.
export OPENAI_API_KEY=sk-...
# Start the MCP server
pnpm run mcp:start -w @domicile/interface
# In another terminal, run demos
pnpm run demo:real-estateThe domicile CLI provides contract-driven execution at the command line:
If a command cannot execute, Domicile will explain what has changed since your last session and why.
# Configure MOS connection (one-time setup)
cp .env.example .env
# Edit .env - add SUPABASE_URL and SUPABASE_ANON_KEY
# Check status
pnpm domicile status
# Test MOS connectivity
pnpm domicile test
# Execute natural language intents
pnpm domicile "optimize my social media posting schedule"
pnpm domicile "analyze real estate market trends in Austin"
# List available systems
pnpm domicile systems
# Show routing plan without executing
pnpm domicile --dry-run "generate financial report for Q4 2025"
# Set budget constraint
pnpm domicile --budget 2.0 "comprehensive market analysis"The CLI connects to the deployed MOS on Supabase, routes your intent through constitutional routing, and executes contracts with governance.
| Traditional Prompting | Domicile |
|---|---|
| Fragile text instructions | Typed contracts validated with Zod |
| Agent self-preference | Covenant trust scores + policy barriers |
| Manual auditing | Ledger + observability dashboard |
| Static systems | Circadian loop proposes improvements off-hours |
- Circadian Loop: Day = human + AI collaboration. Night = dream about decisions vs. outcomes. Dawn = new mutual understanding.
- Governance: Circuit breakers, quarantine modes, and rollback ledgers ensure agents cannot skip the policy gate.
- Memory: Pinecone-backed knowledge graph, trainpack builder, and ROI vectors keep monetization loops contextual.
- Observability: Monitoring dashboard streaming SSE health data at
http://localhost:3001.
The autonomous engine is deployed and running on Supabase:
- Production URL:
https://rnarigclezfhlzrqueiq.supabase.co - Architecture: Fractal switchboard routing requests across products (DispoAI, CA-CAO, TARS)
- Learning: Dream cycles review executions vs. outcomes at 3 AM
- Governance: Constitutional router validates all requests
See AUTONOMOUS_ENGINE_MAP.md for integration details.
VISION.mdβ North star: what Domicile is and whyARCHITECTURE.mdβ Full six-layer blueprintSESSION_START.mdβ Template for agent sessionsCIRCADIAN_LOG.mdβ Learning reflectionsAGENTS.mdβ Agent definitions and rolesdocs/concepts/agent-codex.mdβ UPS personas + governancedomicile/CIRCADIAN_PHILOSOPHY.mdβ Learning modeldomicile/docs/agent-ecosystem.tsβ Narrative + semantic payloadsdomicile/docs/ecosystem-semantic-refiner.tsβ Intent manifests and metabolic states
pnpm build # build all workspaces
pnpm run mcp:start -w @domicile/interface # start MCP server
pnpm run demo:real-estate # run documented demo
CI=1 pnpm test # CI-friendly vitest runDomicile is the collaboration surface where:
- Software understands what you mean the first time because contracts encode it
- Every failed attempt becomes a training signal the system reflects on overnight
- Agents evolve safely because Covenant refuses to ship anything with resilience score < 80
It's not just another SDKβit's a governed ecosystem that learns while you sleep.
See CONTRIBUTING.md for guidelines.
See LICENSE for details.
See SECURITY.md for vulnerability reporting.
"The platform that dreams about its decisions vs. outcomes, learning to understand you better while you sleep."