Skip to content

Latest commit

 

History

History
232 lines (188 loc) · 26.6 KB

INDEX.md

File metadata and controls

232 lines (188 loc) · 26.6 KB

Dimo Documentation Index (AI & Engineering Router)

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.


1. Directory Taxonomy & Placement Rules

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 into CONTEXT.md, docs/architecture.md, an ADR, or a spec, and delete the ephemeral plan.


2. Task-Based Context Routing

Read only the smallest set of files matching your task:

If your task touches... Read these files first
Any task (mandatory baseline) CONTEXT.md, docs/architecture.md
Desktop shell / Electron / <webview> / Sidecar ADR-0090, ADR-0054, ADR-0078, ADR-0080
Host Command Registry / Event Bus / Remote Protocol docs/protocol/v1/README.md, ADR-0033, ADR-0059, ADR-0078
Conversations / SQLite Projection / Turns / Handoff ADR-0091, ADR-0001, ADR-0003, ADR-0044, ADR-0071, ADR-0081, ADR-0089, docs/specs/cross-agent-continuation.md
Agent Engines / ACP / Registry / Install / Auth docs/specs/agent-driver-engine.md, docs/specs/prepared-acp-session-controls.md, ADR-0087, ADR-0010, ADR-0034, ADR-0060, ADR-0064
Model Providers & Presets ADR-0063, ADR-0079, ADR-0085, ADR-0088
Pulse Event Automation & Workflows (DAG) docs/specs/pulse-automation-engine.md, ADR-0092, ADR-0045, ADR-0049, ADR-0050, ADR-0053
Plugins, Plugin SDK/CLI, MCP Runtimes docs/plugins/README.md, docs/plugins/package-v4.md, docs/plugins/platform-architecture.md, docs/plugins/contract-bindings.md, ADR-0046, ADR-0048, ADR-0069
Frontend UI / Styling / Dockview / Composer DESIGN.md, frontend/CLAUDE.md, docs/specs/context-menu-surfaces.md, ADR-0039, ADR-0042, ADR-0065, ADR-0068
IM Channels, Companion Apps & Headless Deploy docs/guides/headless-server.md, docs/guides/companion-apps.md, ADR-0004, ADR-0041, ADR-0056, ADR-0062, ADR-0070, ADR-0084
Debugging Agent / Collaboration Failures docs/guides/agent-troubleshooting.md, ADR-0058, ADR-0074
Security, Licensing & Third-Party Attribution docs/security/dependency-license-audit.md, docs/third-party/codeg-adoption.md, THIRD_PARTY_NOTICES.md

3. Complete File Catalog

Root & Core Charter Documents

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.

Active Technical Specifications (docs/specs/)

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.

Plugin Platform v4 (docs/plugins/)

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.

Operational & Troubleshooting Guides (docs/guides/)

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.

Repository Automation, Protocol, Security, Third-Party & Releases

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.

4. Architectural Decision Records (docs/adr/ — 78 Active ADRs)

All active ADRs carry status: accepted. Gaps in numbering correspond to retired/deleted ADRs whose decisions are superseded by current architecture.

Host, Desktop Shell & Transport Seam

  • 0033 — Shared ApplicationCore and versioned remote transport
  • 0054 — Host family distribution (dimo-server, Electron Desktop, CLI) and client surfaces
  • 0059 — Host identity and Reachability-based pairing invitations
  • 0061 — Host local safety and performance baseline
  • 0070 — SSH-provisioned and managed remote dimo-server
  • 0073 — Single-source release asset naming for install.sh, install.ps1, and npx
  • 0078 — Single Host seam: HostCommandRegistry and HostEventBus
  • 0080 — Windows Desktop memory attribution and performance budget
  • 0090 — Electron thin desktop shell and dimo-server --desktop sidecar architecture

Conversations, Persistence & Turn Integrity

  • 0001 — Crash recovery: restore context only, never replay in-flight turns
  • 0003 — Dedicated crates/conversations domain crate
  • 0005 — Session fork copies events up to fork point and forks agent context by capability
  • 0006 — Workspace-less conversations with nullable workspace_id and scratch dir
  • 0044 — Conversation control plane: durable inputs, in-flight steering, parent-child links
  • 0058 — Session auxiliary capability honesty (protocol facts only, never guess or zero-fill)
  • 0071 — Conversation turn integrity: cancel, recovery replay, connection isolation, terminal reachability
  • 0074 — Structured turn failure taxonomy and user-visible recovery state
  • 0075 — Usage accounting anchored on conversation_events with vendor logs as supplementary breakdown
  • 0081 — Connect-time session bind; prompts never lazily create underlying agent sessions
  • 0089 — Conversation binding generations, history segments, and deterministic cross-agent continuation
  • 0091 — SQLite single-authority conversation projection and dual-pool concurrency

Agent Runtime, Lifecycle & ACP Compatibility

  • 0002 — Single AgentKind identity enum in crates/api-types
  • 0010 — Local Agent Runtime topology: dedicated native engines first, native/adapter ACP fallback
  • 0012 — Agent installation and authentication are independent lifecycles
  • 0013 — Agent membership is independent of installation status and Registry availability
  • 0014 — Built-in agents are permanent members; user-added agents are removable
  • 0015 — Uninstall and remove are distinct operations
  • 0016 — Agent installations are version-locked with user-confirmed upgrades
  • 0017 — Binary integrity uses two trust levels (expected hash vs. trust-on-first-use)
  • 0019 — Offline Registry cache is read-only for browsing
  • 0020 — Built-in and external agents share one universal product pipeline
  • 0022 — Agent native configuration files are authoritative for local persistent settings
  • 0023 — ACP session options act only as validated new-session default preferences
  • 0025 — Agent identity is distinct from Registry catalog entry
  • 0026 — Bounded, resource-aware concurrency and locks for agent installs
  • 0027 — Deterministic agent distribution selection persisted in install lock
  • 0028 — Agent version evidence may be incomplete but never conflicting
  • 0029 — Agent updates do not permanently pin conversations to old versions
  • 0034 — Evidence-driven Agent management, hardened ACP Registry, and auth/status
  • 0035 — ACP v2 dual-protocol adapter and Session Item semantic core
  • 0036 — User-declared ACP agents reuse the version-locked installation pipeline
  • 0037 — Built-in agent whitelisted account actions, native configs, and ecosystem management
  • 0060 — Agent installs target and bind strictly to the user environment
  • 0072 — Qoder first-class agent integration and unified ACP launch-argument resolution
  • 0083 — Kiro, Auggie, TRAE, Command Code, and ZCode via ACP compatibility pipeline
  • 0086 — OMP integrated as a native ACP built-in agent
  • 0087 — Dedicated native Agent engine adapters first; ACP as compatibility fallback

Model Providers & Authentication

  • 0063 — Structured per-agent Model Provider presets (CC Switch as import source only)
  • 0064 — Unified agent auth modes: official subscription, official API, third-party provider
  • 0079 — Provider catalog templates are secret-free form presets, not import sources
  • 0085 — ModelRouter is a webview-layer provider source; Host stays account-agnostic
  • 0088 — Built-in provider presets live in Host; plugins may only append

Collaboration, Delegation, Pulse Automation & Workflows

  • 0031 — Async multi-agent delegation and &Agent mentions
  • 0032 — Automations replay versioned turn launch specs into real conversations and runs
  • 0045 — Durable DAG workflows orchestrate real conversations and turns
  • 0049 — Workflow source artifacts (*.dimo-workflow.json) and portable automation specs
  • 0050 — Interactive workflow debug runs and inspectable step conversations
  • 0052 — Shared Workflow Studio and Workflow Creator plugin
  • 0053 — Agent Step native session config reuse, text handoff, and confirmation projections
  • 0092 — Pulse event-driven automation engine and dual-primitive (Session + Bot) workflows

Plugin Platform & MCP Runtimes

  • 0046 — Full-stack Plugin Package, atomic Activation Generations, and versioned SDK
  • 0047 — Product-centric Plugin Package, contents, and root config model
  • 0048 — Full-trust plugin execution model
  • 0051 — Host-managed plugin-scoped MCP runtimes
  • 0055 — Official product MCP distribution with Host and layered activation
  • 0066 — Plugin marketplace, single-path authoring toolchain, and session-activation honesty
  • 0069 — Everything is a Plugin: shell contribution points, Host provider seam, zero-privilege official plugins
  • 0077 — Office plugin: officecli skill provenance and view-driven preview lifecycle

Frontend Workbench, Editor & Visual Surfaces

  • 0039 — Astryx component primitives for chat composer, messages, and tool activity
  • 0042 — Conversations are first-class Dockview panels
  • 0065 — Composer @ reference panel and new-session & delegation availability
  • 0068 — Workspace default surfaces, activity view, and desktop notifications
  • 0076 — Three-pane merge conflict editor: conflicts are workspace facts, resolutions write workspace only

Chat Channels & Native Mobile Companions

  • 0004 — IM channel secrets stored in 0600 ~/.dimo/.env
  • 0041 — Native Kotlin + Jetpack Compose Android Companion (mobile/android)
  • 0056 — Chat channels and remote access product closed loop
  • 0062 — Chat channels execute the full coding loop on Host
  • 0084 — Native Swift + SwiftUI iOS Companion (mobile/ios)

5. Evergreen Maintenance Rules

  1. Edit in place as current truth: When behavior or architecture changes, update the existing document directly. Never append "originally X, updated to Y" blocks, Amendment sections, or > 状态注记 revision banners.
  2. Delete retired docs cleanly: Remove obsolete specs, completed plans, and fully superseded ADRs instead of leaving tombstones that confuse readers.
  3. Keep history concise: Preserve design rationale and trade-offs, not sprint diaries, PR checklists, or step-by-step debugging logs.
  4. Update this index: Whenever adding, renaming, moving, or deleting a document, update docs/INDEX.md in the same change.
  5. Respect generated files: Regenerate shared/types.ts (pnpm run generate-types), docs/protocol/v1/ (pnpm run remote-protocol-schema:check), and docs/plugins/contract-bindings.md (node scripts/plugin-contract-report.mjs) via scripts rather than hand-editing.