- Clone the repo
- Copy
.env.exampleto.env.localand add your API keys - Install dependencies:
pnpm install - Install Python CAD engine:
pip3 install build123d - Run:
pnpm dev
Read docs/architecture.md for the full technical architecture.
The key principle: agents are specialized and observable. Each agent has one job, logs its work, and passes structured data to the next.
- TypeScript strict mode
- Tailwind CSS for styling (no CSS modules)
- Server components by default,
'use client'only when needed - API routes in
app/api/— each is a self-contained module - Zustand for client state — single store in
lib/store.ts
- Add the model config to
lib/ai-clients.ts - Add the agent step to
app/api/generate/route.ts(emit SSE events) - Add the agent card to
components/parametric/agent-monitor.tsx - Update types in
lib/types.tsif needed
- Add the op to the
DesignNode.opunion type inlib/types.ts - Add it to the Tree Builder's allowed ops list in
app/api/generate/route.ts - Add Build123d example code to the Code Generator's system prompt
- Update scoring heuristics in
lib/scoring.tsif needed
- Add the family to the DIR schema in
app/api/analyze-image/route.ts - Add the family name mapping in
dirToPrompt() - Add the family to the VLM prompt's enum list
- Document it in
docs/dir-pipeline.md