Autonomous AI engineering pipeline that turns a product idea into a runnable Next.js + shadcn/ui codebase. Multi-agent LangGraph graph with PostgreSQL persistence.
Generated apps: Next.js 16 (App Router, React 19, TypeScript, Turbopack), Tailwind CSS 4, shadcn/ui v4
Pipeline: FastAPI + LangGraph, PostgreSQL (AsyncPostgresSaver), Context7 MCP for live docs
ellory-next/
├── apps/
│ ├── web/ # Next.js 16 UI (idea submission, SSE streaming, project timeline)
│ └── backend/ # FastAPI + LangGraph pipeline
│ ├── app/
│ │ ├── core/ # settings, logger, llm client, checkpointer
│ │ ├── graph/ # builder.py, state.py, nodes/, prompts/
│ │ ├── db/ # SQLAlchemy models + service layer
│ │ ├── routers/ # API endpoints
│ │ ├── services/ # GitHub + git integrations
│ │ └── tools/ # fs, shell, workspace, mcp tools
│ └── migrations/ # Alembic DB migrations
├── docker-compose.yml
└── turbo.json
- CEO — refines raw idea, scopes project
- Decision Engine (×3 max) — strategic/technical decisions (auth, persistence, etc.)
- Researcher — parallel Context7 queries for live stack docs
- Architect ↔ Critic (≥9/10 to pass, ×3 max) — architecture design + critique
- Planner — breaks architecture into ordered build phases
- GitHub Setup — creates repo (skipped if no
GITHUB_TOKEN) - Stack Researcher — pulls final package versions + config patterns
- Design Director — establishes visual design language
- Stack Bootstrapper — runs
create-next-app,shadcn init, vitest setup (no LLM) - Test Writer — writes failing tests before implementation
- Agentic Builder — ReAct agent implements each phase using shell + Context7
- Consistency Fixer —
tsc --noEmit+pnpm lintloop (≤3 passes) - Code Reviewer (≥8/10 to pass, ×3 max) — security, startup blockers, best practices
- Docs Writer — generates
README.md+AGENTS.mdin workspace - Product Manager — decides next feature; exits when all shipped
- Feature Test Writer / Feature Builder — TDD loop per feature → back to Consistency Fixer
- Node.js ≥ 18 + pnpm
- Python ≥ 3.12 + uv
- Docker
- LLM API key (OpenAI, Anthropic, or any LiteLLM-compatible provider)
- Context7 API key
docker compose up -dcp apps/backend/.env.example apps/backend/.envMinimum required vars:
LLM_MODEL and corresponding API key variable can be found at https://models.litellm.ai/
LLM_MODEL=
<MODEL_API_KEY>
CONTEXT7_API_KEY=ctx7sk-...Optional (enables GitHub repo creation):
GITHUB_TOKEN=ghp_...
GITHUB_OWNER=your-github-usernamecd apps/backend
uv sync
uv run uvicorn app.main:app --port 8000 --env-file .envcd apps/web
pnpm install
pnpm devOpen http://localhost:3000.
| Method | Endpoint | Description |
|---|---|---|
POST |
/generate |
Synchronous run |
POST |
/generate/stream |
SSE streaming (node completions, tool calls, logs) |
POST |
/projects/{id}/resume/stream |
Resume from last checkpoint |
GET |
/projects |
Project list |
GET |
/projects/{id} |
Project detail + artifacts |
GET |
/projects/{id}/features |
Feature list |
GET |
/projects/{id}/checkpoint |
Raw LangGraph checkpoint state |
- PostgreSQL — orchestration state: decisions, architecture, critic scores, revision counters, node progress
- Disk (
$WORKSPACE_ROOT/<project_id>/) — generated file contents (source of truth)