Modern, intelligent UI for DeepCode - AI-powered code generation platform.
- Backend: FastAPI (Python)
- Frontend: React 18 + TypeScript + Vite
- Styling: Tailwind CSS + shadcn/ui
- State Management: Zustand
- Real-time Communication: WebSocket
- Workflow Visualization: React Flow
- Code Display: Monaco Editor
- Real-time Streaming Output - Watch code generation in real-time, like ChatGPT
- Smart Context Awareness - Remembers conversation history, provides intelligent suggestions
- Adaptive Interface - Layout adjusts based on task type
- Visual Workflow - Draggable flow-chart style task visualization
- Clean, modern design inspired by Notion/Linear
- Light theme with blue accent colors
- Inter font for text, JetBrains Mono for code
new_ui/
├── backend/ # FastAPI Backend
│ ├── main.py # Entry point
│ ├── config.py # Configuration
│ ├── api/
│ │ ├── routes/ # REST API endpoints
│ │ └── websockets/ # WebSocket handlers
│ ├── services/ # Business logic
│ └── models/ # Pydantic models
│
├── frontend/ # React Frontend
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # Page components
│ │ ├── hooks/ # Custom hooks
│ │ ├── stores/ # Zustand stores
│ │ ├── services/ # API client
│ │ └── types/ # TypeScript types
│ ├── package.json
│ └── vite.config.ts
│
└── scripts/
├── start_dev.sh # Development startup
└── build.sh # Production build
- Python 3.10+
- Node.js 18+
- npm or yarn
- Start both backend and frontend:
cd new_ui
chmod +x scripts/start_dev.sh
./scripts/start_dev.sh- Or start separately:
Backend:
cd new_ui/backend
pip install -r requirements.txt # First time only
uvicorn main:app --reload --port 8000Frontend:
cd new_ui/frontend
npm install # First time only
npm run dev- Access the application:
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
cd new_ui
chmod +x scripts/build.sh
./scripts/build.sh| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/workflows/paper-to-code |
Start paper-to-code workflow |
| POST | /api/v1/workflows/chat-planning |
Start chat-based planning |
| GET | /api/v1/workflows/status/{task_id} |
Get workflow status |
| POST | /api/v1/requirements/questions |
Generate guiding questions |
| POST | /api/v1/requirements/summarize |
Summarize requirements |
| POST | /api/v1/files/upload |
Upload file |
| GET | /api/v1/config/settings |
Get settings |
| Endpoint | Description |
|---|---|
/ws/workflow/{task_id} |
Real-time workflow progress |
/ws/code-stream/{task_id} |
Streaming code output |
/ws/logs/{session_id} |
Live log streaming |
The new UI reads configuration from the existing DeepCode config files:
mcp_agent.config.yaml- LLM provider, models, MCP server settingsmcp_agent.secrets.yaml- API keys
The new UI integrates with existing DeepCode components:
workflows/agent_orchestration_engine.py- Core workflow executionworkflows/agents/- Specialized agentsutils/llm_utils.py- LLM provider management
- Chrome (recommended)
- Firefox
- Safari
- Edge
MIT License - see main DeepCode license.