Domdhi logoDOMDHI.OS

BUILDS

Pick a project. Explore what it does and its recorded activity.

LOCAL GUI

Domdhi Cockpit

A local web cockpit for AI-assisted development. Watch an agent-driven project's lifecycle, backlog, agent runs and memory in one dashboard, like a restaurant where you can see into the kitchen.

README

Domdhi.Cockpit

CI

A Visual Development Cockpit — a local web GUI + SDK runtime engine layered on top of the Domdhi.Agents .claude/ template system. "A restaurant where you can see into the kitchen."

What It Does

The Cockpit runs locally at localhost:3000 and provides a visual interface for the AI-assisted development lifecycle managed by the .claude/ system. Five interactive panels:

  • Lifecycle Dashboard — Phase tracking, quick stats, next action cards
  • Document Flow Graph — ReactFlow visualization of document dependencies
  • Interactive Backlog — Epic/story management with drag-and-drop prioritization
  • Agent Cockpit — Live agent execution monitoring, flow graphs, execution history
  • Memory Browser — Pattern storage with confidence levels, CRUD, and search

Tech Stack

Layer Technology
Frontend React Router 7, Vite 7, Hono, React 19, ReactFlow 12, shadcn/ui, Tailwind 4
Runtime TypeScript, Claude Agent SDK 0.2.42
Database SQLite (better-sqlite3 + sqlite-vec + FTS5)
Cloud Sync domdhi.os API (Cloudflare Workers + D1), Supabase JWT auth

Architecture

Modular monolith — monorepo with npm workspaces:

packages/
├── types/       # @domdhi/types — shared TypeScript types + Zod schemas
├── runtime/     # @domdhi/runtime — SDK engine, memory, sessions, sync
└── gui/         # @domdhi/gui — React Router 7 + Vite 7 + Hono dashboard (local-only)

.claude/         # Domdhi.Agents template system (agents, commands, skills)
docs/            # Generated planning docs, backlog, architecture

Deployment Model

The Cockpit is local-only — it runs on localhost:3000 and never deploys to the cloud.

Cloud features (remote project management, backlog editing, command queuing) are provided by domdhi.os, a separate React Router 7 app on Cloudflare Workers. The Cockpit syncs data bidirectionally with domdhi.os via its API:

  • Push: Execution records, parsed definitions, project state → POST /api/cockpit/sync/push
  • Pull: Pending edits, pending commands ← GET /api/cockpit/sync/pull
  • Auth: Supabase JWT (owner role)
  • Cloud DB: Cloudflare D1 (SQLite-compatible), accessed as a binding on domdhi.os

The domdhi.os platform is built and running. See HANDOFF_domdhi-os.md for the cross-project sync specification.

Quick Start

# Install dependencies
npm install

# Start development server (watches the Cockpit's own repo by default)
npm run dev         # Vite on localhost:3000 + Hono API on localhost:3001

Setting up a new project

The .supra/ directory contains the full SupraCoder agent system (34 agents, 19 skills, all commands and hooks). Run the installer pointed at your new project:

node .supra/installers/claude-code-installer.js --root /path/to/your/project

This copies agents, commands, skills, hooks, and config into the target project's .claude/ directory, sets up git hooks, and registers the hook system. Then:

  1. Edit .claude/supracoder.yaml — set your name, personality, active modules
  2. Run node .claude/core/scaffold.js to create the docs/ structure
  3. Open the project in Claude Code and run /init-project to walk through planning phases

To update an existing install without losing customizations (personalized agents, config):

node .supra/installers/claude-code-installer.js --root /path/to/your/project --sync

See .supra/INSTALL.md for the full setup guide.

Pointing the Cockpit at your project

Set COCKPIT_PROJECT_ROOT to the absolute path of your .claude/-enabled project:

# Linux / macOS
COCKPIT_PROJECT_ROOT=/path/to/your/project npm run dev

# Windows (PowerShell)
$env:COCKPIT_PROJECT_ROOT="C:\Users\you\Repos\YourProject"; npm run dev

The Cockpit will parse the project's agents, commands, skills, docs, and backlog automatically.

Build & Test

npm run build       # Vite build + tsc compile
npm test            # Vitest unit + integration tests (6528 passing)
npm run test:e2e    # Playwright end-to-end tests
npm run lint        # ESLint + Prettier
npm run typecheck   # tsc --noEmit across all packages

AI Development Workflow

The .claude/ directory provides a complete AI-assisted development lifecycle. See CLAUDE.md for full details.

/prime           # Load project context at session start
/dev-story       # Implement next story from backlog
/do              # Execute TODO checklist tasks with agent delegation
/end-session     # Save session context for continuation

Current State

  • v1: Complete — 22 epics, 84 stories
  • v2: Complete — 38 epics, 106 stories, 6528 tests passing, GUI migrated to React Router 7 + Vite 7 + Hono

License

MIT