It shows **how to build a “Replit‑AI‑in‑a‑box”** – a full‑stack web app where a user writes a natural‑language request (e.g. *“Create a todo‑list app with login, SQLite, and a dark theme”*) and a **multi‑agent AI system**:
1. **Planner Agent** – turns the request into a task graph.
2. **Code‑Gen Agent** – writes files (frontend + backend).
3. **Test Agent** – creates & runs unit / integration tests.
4. **Deploy Agent** – builds a Docker image and pushes it to a preview URL.
All agents communicate **asynchronously** over **RabbitMQ**, keep **project‑wide state** in **PostgreSQL + Redis**, and use a **vector store (Pinecone‑compatible)** for **RAG** (retrieval‑augmented generation).
The stack is deliberately **polyglot** (the “right tool for the right layer”) and follows the **design principles** you enumerated earlier (decoupling, state‑ful memory, built‑in validation, observability, etc.).
---
## 1️⃣ High‑Level Architecture
```
┌───────────────────────┐
│ Browser (Re…