Ghost.AI

Docs · 8 min read

Architecture

Layers, data model and how the agent pipeline is wired.

Part 1

Layers

UI (App Router, shadcn/ui, framer-motion) calls API route handlers, which validate with Zod and call services backed by Drizzle and libSQL.

Part 2

Data model

Three tables: projects, tasks and gitlogs. Tasks and gitlogs reference a project by id.

Part 3

Agent pipeline

Architect fans out to Backend and Frontend, which feed DevOps and QA, then Security and finally the Reviewer. Docs runs alongside.

Part 4

Contracts

src/lib/contracts.ts is the single source of truth for types and Zod schemas shared by UI and API.

Part 5

Demo mode

Without a database the app falls back to mock data so the static GitHub Pages demo always works.

Next

Keep reading

See the crew work on your own brief

Open the live dashboard, describe a SaaS idea and watch eight agents build it.