Architecture
Design Principles
- Markdown-first — all configuration is human-readable markdown or YAML
- Vendor-neutral — no tool is the source of truth; the root files are
- Zero dependencies — no runtime, no package manager, no build step
- Non-destructive — installers never overwrite, adapters never conflict
- Progressive complexity — start with
AGENTS.md, add orchestrator later - Safety-first — all write operations require explicit developer approval
Layer Architecture
┌──────────────────────────────────────┐
│ Human Layer │
│ README.md CONTRIBUTING.md docs/ │
├──────────────────────────────────────┤
│ Layer 1: Source of Truth │
│ AGENTS.md MEMORY.md TASKS.md │
│ RUNBOOK.md │
├──────────────────────────────────────┤
│ Layer 2: AI Operating Layer │
│ .ai/config.yaml │
│ .ai/agents/ .ai/context/ │
│ .ai/prompts/ .ai/skills/ │
│ .ai/checks/ .ai/templates/ │
│ .ai/models/ .ai/schema/ │
├──────────────────────────────────────┤
│ Layer 3: Adapter Layer │
│ adapters/codex/ │
│ adapters/antigravity/ │
│ adapters/cursor/ │
│ adapters/claude/ │
│ adapters/gemini/ │
│ adapters/vscode/ │
├──────────────────────────────────────┤
│ Layer 4: Intelligence Layer │
│ .ai/intelligence/ (memory, handoff)│
│ .ai/registries/ (workflows, │
│ capabilities, tools, sources, │
│ trusted-keys) │
│ .ai/registry-cache/ (cached remote) │
│ .ai/proposals/ (improvements) │
│ .ai/policies/ (safety, registry│
│ governance gates) │
├──────────────────────────────────────┤
│ Layer 5: CLI Dashboard & Plugins │
│ dashboard / ui (TUI Command Center) │
│ plugin list/show/validate/install │
│ catalog list/show/recommend/install │
│ registry list/add/sync/status/verify│
│ /keygen/lock/trust │
│ onboard / adapter sync │
└──────────────────────────────────────┘Data Flow
- User edits root markdown files (
AGENTS.md, etc.) - Adapters read from root files and translate to tool-native format
- AI agents read their adapter file + root files
- Agents write results back to
TASKS.md,MEMORY.md, and session logs - Orchestrator coordinates multi-agent workflows via session logs
- Memory engine indexes codebase state into hash-compressed summaries
- Feedback loop captures developer corrections and compiles learning rules
- Proposal engine drafts improvements, validates safety gates, and applies approved changes
- Handoff compiler generates token-compressed session context for agent transfers
File Ownership
| File | Owner | Who Reads | Who Writes |
|---|---|---|---|
AGENTS.md | Human | All agents | Human |
MEMORY.md | Shared | All agents | Human + agents |
TASKS.md | Shared | All agents | Human + agents |
RUNBOOK.md | Human | All agents | Human |
.ai/config.yaml | Human | System | Human |
.ai/session-logs/*.md | Agents | Next agent | Current agent |
.ai/intelligence/memory.* | System | All agents | CLI (memory build) |
.ai/intelligence/handoff.md | System | Next agent | CLI (handoff build) |
.ai/intelligence/feedback-log.jsonl | System | CLI | CLI (feedback add) |
.ai/proposals/*.md | System | Human + CLI | CLI (improve propose) |
.ai/registries/*.yaml | System | CLI | CLI (init / registry add) |
.ai/policies/*.yaml | Human | CLI | Human |
.ai/registry-cache/ | System | CLI | CLI (registry sync) |
adapters/*/ | Community | Specific tool | Maintainers |
Security Considerations
- Never store secrets in any multimodel-dev-os file
- Handoff logs may contain sensitive context — gitignored by default
- Adapter config files should not contain API keys or tokens
- Use
.envfiles (gitignored) for secrets, referenced inRUNBOOK.md - Memory indexes, feedback logs, and proposals are gitignored by default
- The proposal
applycommand enforces 12 safety gates including path boundary checks
