How zila-kh/nd-dsh works
ND-DSH is a local-first AI work desktop and company operating platform. Its user workflow runs from the General or Coding workspace through ND-owned project, task, context, policy, and capability controls to a replaceable coding engine or other integration, with results surfaced in the desktop. The graph preserves major documented branches—organization orchestration, workflows and extensions, browser automation, provider routing, and coding tools—alongside sampled implementation layers. Some subsystem links reflect README-level architecture rather than inspected call sites; those are cited to the README.
Main entry points: App.tsx Desktop workspace UI · engine-session-router.ts Engine session router · main.rs ND Harness runtime · browser-controller.ts Built-in browser
Components 21
Desktop experience
- Desktop workspace UI
src/renderer/src/App.tsx
ND control plane
- Workspace state
src/main/workspace/workspace-service.ts - Context contracts
src/shared/nd-context.ts - Company orchestration
src/main/organization/orchestrator.ts - Task metrics
src/main/metrics/task-metrics.ts - Workflow templates
src/main/workflows/workflow-service.ts - Shared runtime contracts
src/shared/contracts.ts
Execution adapters
- Engine session router
src/main/engines/engine-session-router.ts - Coding engine catalog
src/shared/coding-engines.ts - ND Harness runtime
crates/nd-agent/src/main.rs - Provider routing
src/main/providers.ts
Work surfaces
- Built-in browser
src/main/browser/browser-controller.ts - Browser extensions
src/renderer/src/components/BrowserExtensionsManager.tsx - Git operations
src/main/git/git-service.ts - Project checks
src/main/qa/qa-service.ts - Design surface
src/main/design/design-service.ts
Integrations
- Browser Companion
extensions/browser-companion/service-worker.js - ND extensions / skills
src/main/extensions/extension-router.ts
Other components
- Users / teams
- Local files / OS
- External APIs / cloud
Connections 23
- Users / teams → Desktop workspace UI: use
- Desktop workspace UI → Workspace state: select workspace
- Desktop workspace UI → Company orchestration: manage company work
- Desktop workspace UI → Built-in browser: use browser
- Workspace state → Context contracts: provides context
- Company orchestration → Task metrics: track tasks
- Company orchestration → Engine session router: dispatch work
- Engine session router → ND Harness runtime: runs sessions
- Engine session router → Coding engine catalog: selects engine
src/main/engines/engine-session-router.ts - Engine session router → Workspace state: uses workspace
src/main/engines/engine-session-router.ts - Engine session router → Built-in browser: routes browser
src/main/engines/engine-session-router.ts - Engine session router → ND extensions / skills: routes tools
src/main/engines/engine-session-router.ts - ND Harness runtime → Provider routing: requests models
- ND Harness runtime → Local files / OS: acts on
- ND Harness runtime → External APIs / cloud: integrates
- Built-in browser → Browser extensions: hosts
- Built-in browser → Browser Companion: optional target
- Desktop workspace UI → Git operations: manage source
- Desktop workspace UI → Project checks: run checks
- Desktop workspace UI → Design surface: open design
- Desktop workspace UI → ND extensions / skills: invoke capabilities
- Desktop workspace UI → Workflow templates: use workflows
- Shared runtime contracts → Coding engine catalog: defines descriptors
src/shared/coding-engines.ts