Authoritative directory map and file routing table for Dimo (v0.5.2+). Read this file first to locate the exact documentation relevant to a task and to know where new documentation belongs.
Every documentation file in the repository has one canonical home. Follow these rules when reading, creating, moving, or deleting docs.
| Directory / Scope | Canonical Purpose | Naming Standard | Rules & Exclusions |
|---|---|---|---|
/ (Repository Root) |
Cross-cutting top-level charters (AGENTS.md, CLAUDE.md, CONTEXT.md, DESIGN.md, PRODUCT.md, README*.md, THIRD_PARTY_NOTICES.md) |
UPPER_SNAKE.md (root charters only) |
Do not add feature specs, plans, or subsystem guides to the repo root. |
docs/ |
Index (INDEX.md), human hub (README.md), and system architecture (architecture.md) |
INDEX.md, README.md, kebab-case.md |
Keep root of docs/ minimal; place subsystem docs in their typed subdirectories. |
docs/adr/ |
Permanent Architectural Decision Records (currently 78 active ADRs, 0001–0092) |
NNNN-kebab-case.md (4-digit unique prefix + ASCII lowercase) |
Every file begins with YAML frontmatter (status: accepted, date, title, scope). When a decision changes, edit in place or replace cleanly—never stack Amendment / 状态注记 logs. |
docs/specs/ |
Active cross-cutting normative technical specifications | kebab-case.md |
Current-state contracts only. Delete or merge specs once retired. |
docs/plugins/ |
Plugin Platform v4 documentation (user guide, developer guide, package spec, SDK/CLI, architecture, official catalog, generated bindings) | kebab-case.md (README.md allowed as hub) |
contract-bindings.md is generated by node scripts/plugin-contract-report.mjs—never hand-edit. |
docs/guides/ |
Operational, deployment, companion client, and troubleshooting runbooks | kebab-case.md |
Current operational procedures only; no historical debugging diaries or issue transcripts. |
docs/agents/ |
Repository-local agent automation conventions (issue-tracker.md, triage-labels.md) |
kebab-case.md |
Referenced by .agents/skills/. Keep strictly scoped to issue/triage workflows. |
docs/protocol/v1/ |
Versioned Remote Protocol v1 README.md, OpenAPI, JSON Schema, and client models |
Generated (README.md, openapi.json, schema.json, generated/**) |
Generated directory checked by pnpm run remote-protocol-schema:check—never hand-edit. |
docs/security/ |
Supply-chain and dependency license audit policies | kebab-case.md |
Normative security/license policy only. |
docs/third-party/ |
Clean-room third-party adoption records and upstream license texts | kebab-case.md, licenses/* |
codeg-adoption.md and licenses/Apache-2.0.txt are verified by scripts/check-third-party-adoption.test.js. |
docs/release/ |
Versioned release notes (X.Y.Z.md) consumed by GitHub Release workflows |
X.Y.Z.md |
Historical release artifacts; CI reads docs/release/${RELEASE_TAG#v}.md. |
docs/readme/ |
Static SVG architecture diagrams embedded in root READMEs | kebab-case.svg |
Visual assets only. |
| Package / Subtree READMEs | Entry points co-located with standalone packages (frontend/CLAUDE.md, npx-cli/README.md, packages/*/README.md) |
README.md or CLAUDE.md |
Keep concise; link back to docs/ instead of duplicating specs. |
What does NOT belong in
docs/: Completed implementation plans, scratch todos, per-wave QA audits, temporary migration checklists, screenshot dumps, or personal environment paths. Once a feature ships, fold its durable rules intoCONTEXT.md,docs/architecture.md, an ADR, or a spec, and delete the ephemeral plan.
Read only the smallest set of files matching your task:
| File | Purpose |
|---|---|
AGENTS.md |
Mandatory contributor & coding-agent bootstrap, workspace map, build/test commands, style & doc hygiene rules. |
CLAUDE.md |
Claude Code quick-entry pointer delegating to AGENTS.md plus local .scratch/ issue tracking reminders. |
CONTEXT.md |
Ubiquitous Language glossary across all product and technical domains. |
PRODUCT.md |
Product charter, positioning, target users, anti-references, and product principles. |
DESIGN.md |
Frontend visual design single source of truth (macOS Tahoe opaque chrome/content tokens, palettes, radii, typography). |
README.md / README.zh-CN.md |
Public repository overview (EN / ZH-CN), architecture highlights, and quick start. |
THIRD_PARTY_NOTICES.md |
Third-party open-source license attributions and vendored notices. |
frontend/CLAUDE.md |
Frontend workbench conventions (React 19, Dockview, Spatial Canvas, styling tokens, state stores, tests). |
docs/INDEX.md |
This AI & engineering documentation router. |
docs/README.md |
Human-readable documentation hub. |
docs/architecture.md |
End-to-end system architecture, Single-Seam Host, Dual-Stage Workbench, SQLite projection, Pulse, and 26-crate map. |
| File | Purpose |
|---|---|
docs/specs/agent-driver-engine.md |
Normative Agent Driver Engine v2.0 spec (dedicated engine adapters, ACP fallback, session lifecycle, error taxonomy). |
docs/specs/context-menu-surfaces.md |
Unified right-click context menu contract across Workbench surfaces. |
docs/specs/cross-agent-continuation.md |
Deterministic cross-agent handoff, binding generations, history segments, and replay semantics. |
docs/specs/prepared-acp-session-controls.md |
Connect-time prepared ACP session controls (mode, model, config options) before first turn. |
docs/specs/pulse-automation-engine.md |
Pulse event bus, event catalog, timers, rules, outbox, and dual-primitive (Session + Bot) workflow engine spec. |
| File | Purpose |
|---|---|
docs/plugins/README.md |
Plugin Platform v4 documentation entry point. |
docs/plugins/user-guide.md |
Installing, enabling, configuring, updating, and removing plugins via UI and dimo plugin CLI. |
docs/plugins/developer-guide.md |
End-to-end plugin authoring guide (@dimoai/plugin-sdk, Python/Rust Workers, live --dev linking). |
docs/plugins/package-v4.md |
Normative .dimo-plugin/plugin.json v4 manifest, README.md frontmatter, contents/, and root config.json spec. |
docs/plugins/sdk-and-cli.md |
@dimoai/plugin-sdk v2.0.0 subpath exports and dimo-plugin CLI command reference. |
docs/plugins/platform-architecture.md |
Plugin Kernel internals: Activation Generations, Runtime locks, full-trust workers/apps, remote execution seam. |
docs/plugins/official-plugins.md |
Catalog of the 15 official full-trust v4 plugins in plugins/*. |
docs/plugins/contract-bindings.md |
Generated contract matrix of all 23 contribution kinds (L0–L3) and Host API bindings. |
| File | Purpose |
|---|---|
docs/guides/headless-server.md |
Deploying and operating dimo-server, dimoai CLI (serve, list, install), Docker, TLS, and upgrades. |
docs/guides/companion-apps.md |
Paired remote clients, pairing invitations, durable WS attach/fold, and native iOS (mobile/ios) & Android (mobile/android) apps. |
docs/guides/agent-troubleshooting.md |
Diagnostic playbooks for agent installation, authentication, authorization, tools, and collaboration failures. |
| File / Directory | Purpose |
|---|---|
docs/agents/issue-tracker.md |
Local .scratch/ markdown issue tracker convention for agent workflows. |
docs/agents/triage-labels.md |
Standard issue triage labels and severity definitions. |
docs/protocol/v1/README.md |
Remote Protocol v1 overview (/api/v1/capabilities, /api/v1/commands/{command}, /api/v1/ws) + generated openapi.json, schema.json, and TS/Swift/Kotlin models. |
docs/security/dependency-license-audit.md |
Dependency license allowlist gate (pnpm run dependency:licenses) and supply-chain audit rules. |
docs/third-party/codeg-adoption.md |
Clean-room Codeg adoption provenance record (verified by scripts/check-third-party-adoption.test.js). |
docs/release/ |
Versioned release notes (0.1.2.md – 0.5.3.md) used by release CI pipelines. |
npx-cli/README.md |
dimoai npm CLI package usage and distribution guide. |
packages/plugin-cli/README.md |
@dimoai/plugin-cli (dimo-plugin) author CLI README. |
packages/dimo-workflow-mcp/README.md |
Standalone Workflow MCP server package README. |
packages/pulse-sdk/README.md |
TypeScript SDK README for emitting/subscribing to Pulse automation events. |
All active ADRs carry status: accepted. Gaps in numbering correspond to retired/deleted ADRs whose decisions are superseded by current architecture.
0033— SharedApplicationCoreand versioned remote transport0054— Host family distribution (dimo-server, Electron Desktop, CLI) and client surfaces0059— Host identity and Reachability-based pairing invitations0061— Host local safety and performance baseline0070— SSH-provisioned and managed remotedimo-server0073— Single-source release asset naming forinstall.sh,install.ps1, andnpx0078— Single Host seam:HostCommandRegistryandHostEventBus0080— Windows Desktop memory attribution and performance budget0090— Electron thin desktop shell anddimo-server --desktopsidecar architecture
0001— Crash recovery: restore context only, never replay in-flight turns0003— Dedicatedcrates/conversationsdomain crate0005— Session fork copies events up to fork point and forks agent context by capability0006— Workspace-less conversations with nullableworkspace_idand scratch dir0044— Conversation control plane: durable inputs, in-flight steering, parent-child links0058— Session auxiliary capability honesty (protocol facts only, never guess or zero-fill)0071— Conversation turn integrity: cancel, recovery replay, connection isolation, terminal reachability0074— Structured turn failure taxonomy and user-visible recovery state0075— Usage accounting anchored onconversation_eventswith vendor logs as supplementary breakdown0081— Connect-time session bind; prompts never lazily create underlying agent sessions0089— Conversation binding generations, history segments, and deterministic cross-agent continuation0091— SQLite single-authority conversation projection and dual-pool concurrency
0002— SingleAgentKindidentity enum incrates/api-types0010— Local Agent Runtime topology: dedicated native engines first, native/adapter ACP fallback0012— Agent installation and authentication are independent lifecycles0013— Agent membership is independent of installation status and Registry availability0014— Built-in agents are permanent members; user-added agents are removable0015— Uninstall and remove are distinct operations0016— Agent installations are version-locked with user-confirmed upgrades0017— Binary integrity uses two trust levels (expected hash vs. trust-on-first-use)0019— Offline Registry cache is read-only for browsing0020— Built-in and external agents share one universal product pipeline0022— Agent native configuration files are authoritative for local persistent settings0023— ACP session options act only as validated new-session default preferences0025— Agent identity is distinct from Registry catalog entry0026— Bounded, resource-aware concurrency and locks for agent installs0027— Deterministic agent distribution selection persisted in install lock0028— Agent version evidence may be incomplete but never conflicting0029— Agent updates do not permanently pin conversations to old versions0034— Evidence-driven Agent management, hardened ACP Registry, andauth/status0035— ACP v2 dual-protocol adapter and Session Item semantic core0036— User-declared ACP agents reuse the version-locked installation pipeline0037— Built-in agent whitelisted account actions, native configs, and ecosystem management0060— Agent installs target and bind strictly to the user environment0072— Qoder first-class agent integration and unified ACP launch-argument resolution0083— Kiro, Auggie, TRAE, Command Code, and ZCode via ACP compatibility pipeline0086— OMP integrated as a native ACP built-in agent0087— Dedicated native Agent engine adapters first; ACP as compatibility fallback
0063— Structured per-agent Model Provider presets (CC Switch as import source only)0064— Unified agent auth modes: official subscription, official API, third-party provider0079— Provider catalog templates are secret-free form presets, not import sources0085— ModelRouter is a webview-layer provider source; Host stays account-agnostic0088— Built-in provider presets live in Host; plugins may only append
0031— Async multi-agent delegation and&Agentmentions0032— Automations replay versioned turn launch specs into real conversations and runs0045— Durable DAG workflows orchestrate real conversations and turns0049— Workflow source artifacts (*.dimo-workflow.json) and portable automation specs0050— Interactive workflow debug runs and inspectable step conversations0052— Shared Workflow Studio and Workflow Creator plugin0053— Agent Step native session config reuse, text handoff, and confirmation projections0092— Pulse event-driven automation engine and dual-primitive (Session + Bot) workflows
0046— Full-stack Plugin Package, atomic Activation Generations, and versioned SDK0047— Product-centric Plugin Package, contents, and root config model0048— Full-trust plugin execution model0051— Host-managed plugin-scoped MCP runtimes0055— Official product MCP distribution with Host and layered activation0066— Plugin marketplace, single-path authoring toolchain, and session-activation honesty0069— Everything is a Plugin: shell contribution points, Host provider seam, zero-privilege official plugins0077— Office plugin:officecliskill provenance and view-driven preview lifecycle
0039— Astryx component primitives for chat composer, messages, and tool activity0042— Conversations are first-class Dockview panels0065— Composer@reference panel and new-session&delegation availability0068— Workspace default surfaces, activity view, and desktop notifications0076— Three-pane merge conflict editor: conflicts are workspace facts, resolutions write workspace only
0004— IM channel secrets stored in0600~/.dimo/.env0041— Native Kotlin + Jetpack Compose Android Companion (mobile/android)0056— Chat channels and remote access product closed loop0062— Chat channels execute the full coding loop on Host0084— Native Swift + SwiftUI iOS Companion (mobile/ios)
- Edit in place as current truth: When behavior or architecture changes, update the existing document directly. Never append "originally X, updated to Y" blocks,
Amendmentsections, or> 状态注记revision banners. - Delete retired docs cleanly: Remove obsolete specs, completed plans, and fully superseded ADRs instead of leaving tombstones that confuse readers.
- Keep history concise: Preserve design rationale and trade-offs, not sprint diaries, PR checklists, or step-by-step debugging logs.
- Update this index: Whenever adding, renaming, moving, or deleting a document, update
docs/INDEX.mdin the same change. - Respect generated files: Regenerate
shared/types.ts(pnpm run generate-types),docs/protocol/v1/(pnpm run remote-protocol-schema:check), anddocs/plugins/contract-bindings.md(node scripts/plugin-contract-report.mjs) via scripts rather than hand-editing.