Write โข Debug โข Explain โข Optimize โ all through natural conversation with the
Xiaomi MiMo-V2.5-Pro (309B MoE, 100K context) โ the #1 open-source model globally.
Features โข Tech Stack โข Quick Start โข Architecture โข API โข Screenshots โข Milestones โข Contributing
CodeMind is a full-stack AI programming assistant that connects developers with the cutting-edge Xiaomi MiMo-V2.5-Pro model through an elegant, modern web interface. Built as part of the MiMo Orbit 100T Token Creator Incentive Program, CodeMind demonstrates the full potential of open-source AI in software development.
| Challenge | CodeMind Solution |
|---|---|
| Context switching between editor and AI chat | Integrated chat + code panel in one interface |
| Generic AI assistants with no code focus | Purpose-built for programming with 14 language modes |
| Complex setup requirements | One-command start: pip install && python run.py |
| Limited context windows | Full 100K token native support from MiMo-V2.5-Pro |
| No streaming feedback | Real-time SSE streaming for instant responses |
| Feature | Description |
|---|---|
| ๐ฌ Intelligent Chat | Conversational code generation with context awareness |
| ๐ Code Explanation | Detailed breakdown of complex code in plain language |
| ๐ Code Review | AI-powered review spotting bugs, security issues, and optimizations |
| โก Code Optimization | Performance analysis with concrete improvement suggestions |
| ๐ Multi-Language | Supports Python, JS, TS, Java, C++, C#, Go, Rust, Ruby, Swift, Kotlin, SQL, and more |
- Dark/Light Theme โ Eye-friendly dark mode with elegant glassmorphism, toggle to light theme
- Streaming Responses โ Real-time token-by-token output with zero latency perception
- Smart Suggestions โ One-click prompt chips for common programming tasks
- Conversation Management โ Clear history, context-aware follow-ups
- Responsive Design โ Perfectly optimized for desktop and tablet
- Xiaomi MiMo API โ Direct integration with MiMo-V2.5-Pro's chat completion and streaming endpoints
- OpenAPI Compatible โ Fully documented API at
/docs(auto-generated by FastAPI) - RESTful Design โ Clean, predictable API endpoints with Pydantic validation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CodeMind โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Frontend โ Backend โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โข HTML5 โ โข Python 3.11+ โ
โ โข CSS3 (Glassmorphism) โ โข FastAPI (Async) โ
โ โข Vanilla JS (ES6+) โ โข Uvicorn (ASGI Server) โ
โ โข Google Fonts โ โข httpx (Async HTTP Client) โ
โ โข Responsive Design โ โข Pydantic (Data Validation) โ
โ โข Dark/Light Theme โ โข SSE (Server-Sent Events) โ
โโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ Xiaomi MiMo API โ
โ MiMo-V2.5-Pro โ
โ (309B MoE) โ
โโโโโโโโโโโโโโโโโโโโ
- FastAPI โ Async-native, automatic OpenAPI docs, best-in-class performance
- Vanilla JS โ Zero dependencies, lightning-fast load times, full control
- Glassmorphism CSS โ Modern aesthetic that screams quality and polish
- SSE Streaming โ Lighter than WebSockets for one-way AI responses, native browser support
- Python 3.11 or later
- pip (Python package manager)
- A MiMo API key from the Orbit 100T Plan
git clone https://github.com/YOUR_USERNAME/codemind.git
cd codemind
pip install -r requirements.txtcp .env.example .env
# Edit .env and add your MiMo API key:
# MIMO_API_KEY=sk-your-key-here๐ก Get your free API key at 100t.xiaomimimo.com โ part of the MiMo Orbit 100 Trillion Token Program.
python run.pyYour CodeMind instance is now running at http://localhost:8000 ๐
Open your browser, type a prompt like "Write a Python function to parse JSON from an API response", and watch CodeMind generate production-ready code in real-time.
โโโโโโโโโโโโโโโโโโโ
โ Browser โ
โ (HTML/CSS/JS) โ
โโโโโโโโโโฌโโโโโโโโโ
โ
HTTP / SSE
โ
โโโโโโโโโโผโโโโโโโโโ
โ FastAPI Server โ
โ (async Python) โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโผโโโโโโโโโ
โ MiMo API Clientโ
โ (httpx Async) โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโผโโโโโโโโโ
โ Xiaomi MiMo API โ
โ MiMo-V2.5-Pro โ
โ (309B MoE Model) โ
โโโโโโโโโโโโโโโโโโโ
- User types a programming question in the chat interface
- Frontend sends the message via POST to
/api/chatwithstream: true - FastAPI constructs a system prompt + user message and forwards to the MiMo API
- MiMo API streams tokens back through Server-Sent Events
- Frontend renders each token in real-time with full Markdown + syntax highlighting
| Decision | Rationale |
|---|---|
| Async everywhere | Non-blocking I/O for concurrent request handling and streaming |
| Server-Sent Events | Lighter than WebSockets, native browser EventSource support, auto-reconnect |
| Separate frontend/backend | Clean separation of concerns, easy to swap either layer |
| Pydantic validation | Type-safe API contracts with automatic error messages |
| No frontend framework | Zero build step, instant loading, maximum performance |
All endpoints are automatically documented at http://localhost:8000/docs (Swagger UI).
| Method | Endpoint | Description |
|---|---|---|
GET |
/ |
Serves the frontend application |
GET |
/api/health |
Health check + MiMo API status |
POST |
/api/chat |
Chat completion (supports streaming) |
POST |
/api/explain |
Explain a piece of code |
POST |
/api/review |
Review code for bugs and improvements |
GET |
/api/models |
List available MiMo models |
import httpx
import json
response = httpx.post(
"http://localhost:8000/api/chat",
json={
"messages": [
{"role": "user", "content": "Write a binary search in Python"}
],
"stream": True,
"temperature": 0.7,
"max_tokens": 4096,
},
)
for line in response.iter_lines():
if line.startswith("data: ") and line != "data: [DONE]":
chunk = json.loads(line[6:])
print(chunk["content"], end="")Screenshots will be added after deployment. The application features:
| View | Description |
|---|---|
| Home | Elegant dark-themed welcome screen with suggestion chips |
| Chat | Real-time streaming code generation with syntax-highlighted output |
| Code Review | Detailed AI-powered code analysis with actionable suggestions |
| Dark/Light | Toggle between eye-friendly dark mode and clean light mode |
This project was built as part of the Xiaomi MiMo Orbit 100T Token Creator Incentive Program.
gantt
title CodeMind Development Timeline
dateFormat YYYY-MM-DD
section Phase 1
Project Planning & Design :2026-05-20, 2d
Backend Development :2026-05-22, 2d
Frontend Development :2026-05-23, 2d
section Phase 2
MiMo API Integration :2026-05-24, 1d
Testing & Polish :2026-05-24, 1d
GitHub Launch :2026-05-25, 1d
- ๐ฏ Target: Highest tier of the MiMo Orbit 100T Incentive Program
- ๐ Scope: Global developers seeking an open-source AI coding companion
- ๐ฎ Future: Extend to VSCode extension, CLI tool, and team collaboration features
codemind/
โโโ backend/
โ โโโ __init__.py
โ โโโ config.py # Environment & API configuration
โ โโโ main.py # FastAPI application & endpoints
โ โโโ mimoclient.py # MiMo API client (sync + streaming)
โโโ frontend/
โ โโโ index.html # Main SPA application
โ โโโ css/
โ โ โโโ style.css # Glassmorphism UI with dark/light themes
โ โโโ js/
โ โโโ app.js # Frontend logic, streaming, Markdown render
โโโ .env.example # Environment template
โโโ .gitignore
โโโ README.md # โ You are here
โโโ requirements.txt # Python dependencies
โโโ run.py # Development server entry point
Contributions are what make the open-source community an amazing place to learn and create. Any contributions you make are greatly appreciated!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Xiaomi MiMo Team โ For creating the world-class MiMo-V2.5-Pro model and the Orbit 100T Token Incentive Program
- ็ฝ็ฆ่ โ For leading the MiMo-V2.5 series development
- Open Source Community โ For making AI accessible to all
Made with โค๏ธ for the MiMo Orbit 100T Token Creator Incentive Program
Powered by Xiaomi MiMo-V2.5-Pro ยท 309B MoE ยท 100K Context ยท MIT Licensed
CodeMind โ ๅบไบๅฐ็ฑณ MiMo-V2.5-Pro ๆจกๅ็ AI ็ผ็จๅฉๆ
CodeMind ๆฏไธๆฌพๅ จๆ AI ็ผ็จๅฉๆ๏ผ้่ฟไผ้ ็็ฐไปฃๅ็้ข๏ผๅฐๅผๅ่ ไธๅ จ็้กถ็บงๅผๆบๆจกๅ ๅฐ็ฑณ MiMo-V2.5-Pro๏ผ3090ไบฟๅๆฐ MoE ๆถๆ๏ผ่ฟๆฅ่ตทๆฅใๆฌ้กน็ฎไฝไธบ ๅฐ็ฑณ MiMo Orbit ็พไธไบฟ Token ๅ้ ่ ๆฟๅฑ่ฎกๅ ็ๅ่ตไฝๅ๏ผๅ ๅๅฑ็คบไบๅผๆบ AI ๅจ่ฝฏไปถๅผๅไธญ็ๅทจๅคงๆฝๅใ
- ๐ฌ ๆบ่ฝๅฏน่ฏ โ ่ช็ถ่ฏญ่จ็ๆ็ไบง็บงไปฃ็
- ๐ ไปฃ็ ่งฃ้ โ ๆทฑๅ ฅๆต ๅบๅฐ่งฃๆๅคๆไปฃ็ ้ป่พ
- ๐ ไปฃ็ ๅฎกๆฅ โ AI ้ฉฑๅจ็ Bug ๆฃๆตๅไผๅๅปบ่ฎฎ
- โก ๆง่ฝไผๅ โ ้ๅฏนๆง็ไปฃ็ ๆง่ฝๅๆ
git clone https://github.com/YOUR_USERNAME/codemind.git
cd codemind
pip install -r requirements.txt
# ็ผ่พ .env ๆไปถ๏ผๅกซๅ
ฅไฝ ็ MiMo API Key
python run.py่ฎฟ้ฎ http://localhost:8000 ๅณๅฏๅผๅงไฝฟ็จ๏ผ
๐ก ๅจ 100t.xiaomimimo.com ็ณ่ฏทๅ ่ดน API Key๏ผๅไธ็พไธไบฟ Token ๆฟๅฑ่ฎกๅ๏ผ