CodeBuddy is an autonomous AI-powered software engineer built with LangGraph, FastAPI, and a modern Next.js web interface styled with Tailwind CSS and shadcn/ui.
It functions as a multi-agent development team that converts natural language requests into complete, working software projects — file by file — using real engineering workflows.
- Planner Agent – Analyzes user prompts, establishes the technology stack, system specifications, and plans the target file tree architecture.
- Architect Agent – Decomposes the plan into sequential, dependency-ordered engineering tasks with explicit context carryover.
- Coder Agent – Tool-using agent that executes tasks, inspects the workspace, writes complete source files, and iteratively implements the full project.
- Visual Multi-Agent Pipeline: Real-time status cards tracking Planner ➔ Architect ➔ Coder with glowing progress indicators.
- Real-Time SSE Streaming: Live event stream delivering agent thoughts, file creation notices, and implementation steps.
- Plan & Tasks Inspector: Interactive tabs for app blueprints, feature checklists, and architect task breakdowns.
- Project Explorer & Code Viewer: Tree browser of
generated_projectfiles with file-type icons, line numbers, and copy-to-clipboard. - One-Click ZIP Export: Download your generated application directly from the web browser.
- Clean Workspace Reset: Wipe and start fresh projects directly from the UI.
Run both the FastAPI backend and Next.js frontend together with:
python run.pyThis automatically starts:
- 🌐 Next.js Web App: http://localhost:3000 (opens in your default browser)
- ⚡ FastAPI Backend: http://127.0.0.1:8000
- 📚 Interactive API Docs: http://127.0.0.1:8000/docs
- Python 3.10+ and uv
- Node.js 18+ and npm
- Groq API Key: Create an API key at console.groq.com/keys.
-
Create a virtual environment and activate it:
uv venv # On Windows: .venv\Scripts\activate # On macOS/Linux: source .venv/bin/activate
-
Install dependencies:
uv pip install -r requirements.txt
-
Configure your API key in
.env:GROQ_API_KEY=your_groq_api_key_here
-
Start the FastAPI backend server:
uvicorn api.main:app --reload --port 8000
FastAPI docs will be available at http://127.0.0.1:8000/docs.
-
Navigate to the
frontendfolder:cd frontend -
Install dependencies:
npm install
-
Start the Next.js development server:
npm run dev
-
Open http://localhost:3000 in your browser.
| Endpoint | Method | Description |
|---|---|---|
/api/health |
GET |
Health check & Groq configuration status |
/api/generate/stream |
POST |
Real-time Server-Sent Events (SSE) stream for agent workflow |
/api/generate |
POST |
Synchronous project generation fallback |
/api/project/files |
GET |
Lists all generated files in workspace |
/api/project/file?path=... |
GET |
Fetches code content of a generated file |
/api/project/download |
GET |
Downloads the generated project as a .zip archive |
/api/project/reset |
POST |
Clears the generated_project workspace folder |
- Create a modern, responsive Todo list application using HTML, CSS, and vanilla JavaScript with dark mode and localStorage persistence.
- Create a simple blog API in FastAPI with a SQLite database, CRUD endpoints for posts, and Pydantic schemas.
- Create an interactive calculator web application with calculation history and keyboard shortcuts.
- Build a markdown note-taking app in HTML, CSS, and JS with side-by-side preview and text export.
You can deploy CodeBuddy's Next.js web application to Vercel with zero configuration:
- Import the Project in Vercel Dashboard.
- Set Root Directory to
frontend. - Set the
NEXT_PUBLIC_API_URLenvironment variable pointing to your deployed FastAPI backend (e.g. on Render or Railway). - Click Deploy!
For detailed step-by-step instructions (including Docker and 1-click backend blueprints), see the Vercel Deployment Guide.
